Bug 704478 - IDE disk with raw format image cannot be hot-plugged and hot-unplugged on Xen HVM
Summary: IDE disk with raw format image cannot be hot-plugged and hot-unplugged on Xe...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: virt-manager
Version: 5.7
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: rc
: ---
Assignee: Cole Robinson
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-13 09:58 UTC by mliu
Modified: 2011-07-12 23:55 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-12 23:55:24 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description mliu 2011-05-13 09:58:33 UTC
Description of problem:
IDE disk with raw format image cannot be hot-plugged and hot-unplugged on Xen HVM

Version-Release number of selected component (if applicable):
virt-manager-0.6.1-14.el5
xen-3.0.3-130.el5
kernel-xen-2.6.18-259.el5

How reproducible:
Always

Steps to Reproduce:
1. Create a raw format volume in storage : raw.img
2. Open a running guest, here is rhel5.6, run #modprobe acpiphp
3. On the Hardware tab, click "Add Hardware"
4. Select "Storage" and forward
5. Browse raw.img as File(disk image), Device type is "IDE disk", Forward and Finish

6. Select "hdb" in the Hardware tab, and click "Remove"
  
Actual results:
After step5, There is no error, and the disk "hdb" is listed in Hardware tab, but on the guest console, run #ls /dev/hd* or #fdisk -l , there is no "hdb" disk.

After step6, the "hdb" is still in the list. Reboot the guest, "hdb" is disappeared.  

Expected results:
After step 5, the disk "hdb" should be added successfully. 
After step 6, the disk "hdb" should be removed successfully. We don't need to reboot guest.


Additional info:
It work well on virsh command:

# virsh attach-disk rhel5.6 /var/lib/libvirt/images/raw.img  hdb --driver file
Disk attached successfully

# virsh detach-disk rhel5.6 hdb
Disk detached successfully

Comment 1 mliu 2011-05-13 10:00:07 UTC
cow format image have the same issue, but qcow2 and vmdk image can work well.

Comment 2 RHEL Program Management 2011-06-21 05:25:06 UTC
This request was evaluated by Red Hat Product Management for inclusion in Red Hat Enterprise Linux 5.7 and Red Hat does not plan to fix this issue the currently developed update.

Contact your manager or support representative in case you need to escalate this bug.

Comment 4 Cole Robinson 2011-07-12 23:55:24 UTC
I don't think IDE devices are supposed to be hotpluggable at all. There is already a bug filed about this with xen. If I'm incorrect, please reopen


Note You need to log in before you can comment on or make changes to this bug.