vvdestroy() gets the volumes from obj_attr_list["volume_list"]. In the current implementation, it doesn't include cloud-init config disk image and hence leave the image file undeleted.
Another bug related to config disk image is that it's placed under /var/lib/libvirt, instead of /var/lib/libvirt/images. See log below:
When user detaches a vm, PLM calls
lib/clouds/plm_cloud_ops.py:vmdestroy()
, which does the following:vvdestroy()
gets the volumes fromobj_attr_list["volume_list"]
. In the current implementation, it doesn't include cloud-init config disk image and hence leave the image file undeleted.Another bug related to config disk image is that it's placed under
/var/lib/libvirt
, instead of/var/lib/libvirt/images
. See log below:A slash is missing between
/var/lib/libvirt/images
andcb-centos-MYPLM-vm2-check.iso
in above command.