do not delete volumes from images pool

This commit is contained in:
ge 2024-05-17 00:04:27 +03:00
parent baa511f678
commit 197e272f3e

View File

@ -788,6 +788,12 @@ class Instance:
disk.source, disk.source,
) )
continue 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()) log.info('Delete volume: %s', volume.path())
volume.delete() volume.delete()
log.info('Undefine instance') log.info('Undefine instance')