Bug 963638
Summary: | virsh attach-device with --config should not take effect before reboot | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Hu Jianwei <jiahu> | |
Component: | libvirt | Assignee: | Peter Krempa <pkrempa> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Virtualization Bugs <virt-bugs> | |
Severity: | medium | Docs Contact: | ||
Priority: | medium | |||
Version: | 7.0 | CC: | acathrow, bili, dallan, dyuan, honzhang, mzhan, weizhan | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | libvirt-1.1.0-1.el7 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 963661 (view as bug list) | Environment: | ||
Last Closed: | 2014-06-13 10:05:12 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 963661 |
Description
Hu Jianwei
2013-05-16 10:03:20 UTC
Fixed upstream by: commit 33e300229cf30c6efc7411d3b5d45c2050129fc1 Author: Peter Krempa <pkrempa> Date: Tue May 28 11:07:33 2013 +0200 virsh-domain: Add --live, --config, --current logic to cmdAttachInterface Use the approach established in commit 69ce3ffa8d431e9810607c6e00b7cfcc481b491d to improve this function too. commit 37772499e050b7c9d3f136d8c2e07b67e8ff26d6 Author: Peter Krempa <pkrempa> Date: Tue May 28 11:07:33 2013 +0200 virsh-domain: Add --live, --config, --current logic to cmdAttachDisk Use the approach established in commit 69ce3ffa8d431e9810607c6e00b7cfcc481b491d to improve this function too. commit f81c95b31f1c1cc95cb7e52cf8af98cbd624e0c1 Author: Peter Krempa <pkrempa> Date: Tue May 28 11:07:33 2013 +0200 virsh-domain: Add --live, --config, --current logic to cmdAttachDevice Use the approach established in commit 69ce3ffa8d431e9810607c6e00b7cfcc481b491d to improve this function too. v1.0.6-5-g33e3002 This bug verified pass in libvirt-1.1.0-1.el7, steps as bug description. --config working fine: # virsh list --all Id Name State ---------------------------------------------------- 9 rhel7 running 2.Prepare a xml. # cat usb_bus.xml <hostdev mode='subsystem' type='usb' managed='yes'> <source> <address bus='1' device='9'/> </source> </hostdev> 3. In guest, to check the usb device. # lsusb Bus 001 Device 002: ID 08e6:4433 Gemplus GemPC433-Swap Bus 001 Device 003: ID 0409:55aa NEC Corp. Hub Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub 4. Attach usb device to the guest using attach-device with --config. # virsh attach-device rhel7 usb_bus.xml --config Device attached successfully 5. In guest, to check the usb device again. # lsusb Bus 001 Device 002: ID 08e6:4433 Gemplus GemPC433-Swap Bus 001 Device 003: ID 0409:55aa NEC Corp. Hub Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub There is no pluged usb to guest. 6. Destroy and restart the guest, and to check the usb device. # virsh destroy rhel7 Domain rhel7 destroyed # virsh start rhel7 Domain rhel7 started # lsusb Bus 001 Device 002: ID 08e6:4433 Gemplus GemPC433-Swap Bus 001 Device 003: ID 0409:55aa NEC Corp. Hub Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 004: ID 148f:3370 Ralink Technology, Corp. RT3370 Wireless Adapter After restart guest, there it is. Working well. Setting VERIFIED. This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request. |