[pve-devel] [PATCH v4 0/7] add purge option for VM/CT destroy

Christian Ebner c.ebner at proxmox.com
Tue Oct 15 13:00:18 CEST 2019


When destroying a VM/CT, we intentionally did not remove all related configs such
as backup or replication jobs.
The intention of this flag is to allow the removal of such configs on destroy.

This patch series implements this functionality and additionally moves the
cfs register code for vzdump.cron to pve-guest-common to avoid a cyclic
dependency.

Christian Ebner (2):
  vzdump: move registration of vzdump.cron from manager to guest-common
    to avoid cyclic dependency
  fix #1291: implement remove_vmid_from_backup_jobs

 Makefile             |   1 +
 PVE/VZDump/Common.pm | 391 +++++++++++++++++++++++++++++++++++++++++++
 PVE/VZDump/Plugin.pm |  46 +++++
 3 files changed, 438 insertions(+)
 create mode 100644 PVE/VZDump/Common.pm

Christian Ebner (1):
  gen vzdump: json_config_properties() moved from VZDump to
    VZDump::Common

 gen-vzdump.conf.5-opts.pl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Christian Ebner (2):
  vzdump: move code needed for cfs register of vzdump.cron to
    guest-common
  fix #1291: add purge checkbox to VM/CT destroy dialog

 PVE/API2/Backup.pm                 | 169 +----------------------
 PVE/API2/VZDump.pm                 |   5 +-
 PVE/VZDump.pm                      | 213 +----------------------------
 www/manager6/window/SafeDestroy.js |  12 ++
 4 files changed, 21 insertions(+), 378 deletions(-)

Christian Ebner (1):
  fix #1291: add option purge for destroy_vm api call

 src/PVE/API2/LXC.pm | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

Christian Ebner (1):
  fix #1291: add option purge for vm_destroy api call

 PVE/API2/Qemu.pm | 19 +++++++++++++++----
 1 file changed, 15 insertions(+), 4 deletions(-)

-- 
2.20.1




More information about the pve-devel mailing list