RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 918470 - It doesn't fail to resume a guest when the specified host USB device is not found
Summary: It doesn't fail to resume a guest when the specified host USB device is not f...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.4
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Osier Yang
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 963632
TreeView+ depends on / blocked
 
Reported: 2013-03-06 10:13 UTC by hongming
Modified: 2013-07-01 02:51 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 963632 (view as bug list)
Environment:
Last Closed: 2013-05-16 10:08:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description hongming 2013-03-06 10:13:33 UTC
Description of problem:
When resume a guest if the specified host USB device is not found , It doesn't fail (or drop) even startupPolicy='mandatory'


Version-Release number of selected component (if applicable):
libvirt-0.10.2-18.el6.x86_64 

How reproducible:
100% 

Steps to Reproduce:
1. Plug in a usb disk to host.

2. # virsh start rhel6.3
Domain rhel6.3 started

3. # virsh dumpxml rhel6.3
<domain>
......
<hostdev mode='subsystem' type='usb' managed='yes'>
<source startupPolicy='mandatory'>
<vendor id='0x0204'/>
<product id='0x6025'/>
<address bus='2' device='10'/>
</source>
<alias name='hostdev0'/>
</hostdev>
.......
</domain>


4. # virsh suspend rhel6.3
Domain rhel6.3 suspended

5. Pull out the usb disk from host


6. # virsh resume rhel6.3
Domain rhel6.3 resumed


7. # virsh dumpxml rhel6.3
<domain>
......
<hostdev mode='subsystem' type='usb' managed='yes'>
<source startupPolicy='mandatory'>
<vendor id='0x0204'/>
<product id='0x6025'/>
<address bus='2' device='10'/>
</source>
<alias name='hostdev0'/>
</hostdev>
.......
</domain> 
  
Actual results:
When resume a guest if the specified host USB device is not found , It doesn't fail (or drop) even startupPolicy='mandatory' 

Expected results:
It should be failed to resume the guest if the specified host USB device is not found .


Additional info:

Comment 1 Jiri Denemark 2013-05-16 10:08:17 UTC
This works as expected, virsh suspend and resume commands merely
stop/start guest CPUs. Your test is equivalent to pulling out the usb
disk while the domain is normally running. You probably wanted to run
virsh managedsave and virsh start commands.


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