Bug 705990

Summary: IDE disk with qcow2 format image can be hot-plugged and hot-unplugged on Xen HVM
Product: Red Hat Enterprise Linux 5 Reporter: mliu
Component: xenAssignee: Xen Maintainance List <xen-maint>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: high    
Version: 5.7CC: dyuan, mliu, mrezanin, mzhan, xen-maint
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-19 06:19:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description mliu 2011-05-19 06:09:15 UTC
Description of problem:
IDE disk with qcow2 and vmdk format image can 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-131.el5
kernel-xen-2.6.18-261.el5
libvirt-0.8.2-20.el5

How reproducible:
Always

Steps to Reproduce:
1. Create a qcow2 format volume in storage : qcow2.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 qcow2.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, the disk "hdb" is added
After step6, the "hdb" is removed

Expected results:
It should be available after next shutdown. 

Additional info:

Comment 1 mliu 2011-05-19 06:11:07 UTC
It can be reproduced when hot-pulg/hot-unplug IDE-CDROM

Comment 2 RHEL Program Management 2011-06-21 05:28:27 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:33:05 UTC
The bug is that it reports success, but should fail? Hmm, reassigning to xen.

Comment 5 Miroslav Rezanina 2011-07-18 08:34:24 UTC
What exactly is wrong here??? I see successful plug/unplug.

If you remove the disk, it won't survive shutdown because you remove it.

Comment 6 dyuan 2011-07-19 05:29:44 UTC
Hot-plug/unplug is not supported for IDE disk, so the expected result should be hot-plug/unplug failed with prompt such as "it will take effect after the guest shutdown..."

Comment 7 Miroslav Rezanina 2011-07-19 06:19:56 UTC
Yes, IDE does not support hotplug. However, in this case xen block driver is used for disk handling and mimic ide interface. 

As this is standard and expected behavior of xen virtual enviroment, closing as not a bug.