From 197e272f3e795d51b305424ba1b20a526a888a19 Mon Sep 17 00:00:00 2001 From: ge Date: Fri, 17 May 2024 00:04:27 +0300 Subject: [PATCH] do not delete volumes from images pool --- compute/instance/instance.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/compute/instance/instance.py b/compute/instance/instance.py index a0f8bc9..e51902e 100644 --- a/compute/instance/instance.py +++ b/compute/instance/instance.py @@ -788,6 +788,12 @@ class Instance: disk.source, ) continue + if volume.storagePoolLookupByVolume().name() == 'images': + log.info( + 'Volume %s skipped because it is from images pool', + volume.path(), + ) + continue log.info('Delete volume: %s', volume.path()) volume.delete() log.info('Undefine instance')