Skip to content

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

@ajaybso

Description

@ajaybso
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.


Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions