Red Hat Bugzilla – Bug 476093
detaching block devices malfunction if the device is in use by the guest.
Last modified: 2014-02-02 17:36:36 EST
Description of problem:
When detaching a device from a guest when the device is in use by the guest, xen detaches it nonetheless and removes it from the guest domain's info even though the device lives on the guest causing the subsequent block attach/detach commands to be in disarray.
Version-Release number of selected component (if applicable):
# rpm -qa | grep xen
Steps to Reproduce:
1. Install a guest, attach a device.
2. Go to the guest and format and mount the device
3. In dom0 detach the device. Both xm and virsh detaching operations return ok and the device is removed from the guest's disk list.
4. Go back to guest and do /proc/partitions
dom0 thinks that the device is detached from the guest and removes the device from the guest configuration even though the device is there in the guest.
detach operations should return error if the device is in use by the guest.
Well, returning error when xend is unable to detach the device is not possible but except showing this error message it works fine with patch for BZ #484110.
*** This bug has been marked as a duplicate of bug 484110 ***