mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
Due to OS/hypervisor/environmental configuration, detaching a disk/device using libvirt can be successful without updating the domain configuration (xml). This leads to reattachment failure as the device is blocked until the next reboot. This fixes a specific environment case by performing stop/start on the VM only in case of KVM, which will recreate a fresh domain config (xml) as KVM VMs have transient domain configs (xmls don't persist). Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>