oVirt / ovirt-ansible-collection

Ansible collection with official oVirt modules and roles
72 stars 89 forks source link

When a VM is being deleted attached extra disks also get deleted and does not show up as available disk in VM #746

Open ajaybso opened 2 months ago

ajaybso commented 2 months ago
SUMMARY

Disks created externally but attached to VM ( in addition to system disk) also gets deleted when vm is deleted by Ansible.

COMPONENT NAME
STEPS TO REPRODUCE

Create external disk. Attach the disk to VM using disk name to the VM being instantiated in same script after VM creation tasks is completed. Check the VM status , showing disk attached to the VM as specified. Log in to VM on console. do fdisk -l to see available disks. It only shows system disk though console displays vm has disk attached. Destroy the VM with ovirt_vms using absent state. VM is destroyed along with the attached disk. (Check in Storage -Disks in Ovirt console)

EXPECTED RESULTS

Non OS(data) attached disks should not be destroyed with VM deletion.

ACTUAL RESULTS

Disks disappear from Ovirt Disk console.