[pve-devel] [PATCH cluster/qemu-server/container 1/1] add prune_rrd_data to destroy with purge

Bennet Gallein me at bennetgallein.de
Mon Nov 4 19:32:23 CET 2024


Signed-off-by: Bennet Gallein <me at bennetgallein.de>
---
 src/PVE/API2/LXC.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm
index 213e518..6e953db 100644
--- a/src/PVE/API2/LXC.pm
+++ b/src/PVE/API2/LXC.pm
@@ -787,6 +787,7 @@ __PACKAGE__->register_method({
 	        print "purging CT $vmid from related configurations..\n";
 		PVE::ReplicationConfig::remove_vmid_jobs($vmid);
 		PVE::VZDump::Plugin::remove_vmid_from_backup_jobs($vmid);
+		PVE::RRD::purge_rrd_data("pve2-vm/$vmid");
 
 		if ($ha_managed) {
 		    PVE::HA::Config::delete_service_from_config("ct:$vmid");
-- 
2.39.5




More information about the pve-devel mailing list