[Bug 1190387] Re: attach-device of usb falsely declares device in use by other domain
This bug was fixed in the package libvirt - 0.9.8-2ubuntu17.15 --- libvirt (0.9.8-2ubuntu17.15) precise-proposed; urgency=low * update fix-for-parallel-port-passthrough-for-qemu: the xml for the new testcase was too modern and caused the test to fail by including new keywords. libvirt (0.9.8-2ubuntu17.14) precise-proposed; urgency=low * qemu-delete-usb-devices-on-stop and qemu-build-activeusbhostdevs-on-reconnect: ensure that we can re-use a usb device after another domain using the device has shut down. (LP: #1190387) Backported from upstream git. * cherrypick fix-for-parallel-port-passthrough-for-qemu from upstream (LP: #1203620) -- Serge HallynMon, 14 Oct 2013 10:32:22 -0500 ** Changed in: libvirt (Ubuntu Precise) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1190387 Title: attach-device of usb falsely declares device in use by other domain To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1190387/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1190387] Re: attach-device of usb falsely declares device in use by other domain
Fix confirmed in precise-proposed. ** Tags removed: verification-needed ** Tags added: verification-done -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1190387 Title: attach-device of usb falsely declares device in use by other domain To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1190387/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1190387] Re: attach-device of usb falsely declares device in use by other domain
There was a failure to build due to a failed testcase. Sorry, investigating. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1190387 Title: attach-device of usb falsely declares device in use by other domain To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1190387/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1190387] Re: attach-device of usb falsely declares device in use by other domain
Hello Bill, or anyone else affected, Accepted libvirt into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/libvirt/0.9.8-2ubuntu17.14 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users. If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision. Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance! ** Changed in: libvirt (Ubuntu Precise) Status: In Progress => Fix Committed ** Tags added: verification-needed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1190387 Title: attach-device of usb falsely declares device in use by other domain To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1190387/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1190387] Re: attach-device of usb falsely declares device in use by other domain
** Also affects: libvirt (Ubuntu Precise) Importance: Undecided Status: New ** Changed in: libvirt (Ubuntu Precise) Status: New => In Progress ** Changed in: libvirt (Ubuntu Precise) Importance: Undecided => Medium ** Changed in: libvirt (Ubuntu Precise) Assignee: (unassigned) => Serge Hallyn (serge-hallyn) ** Changed in: libvirt (Ubuntu) Status: In Progress => Fix Released ** Description changed: + = + SRU Justification + 1. Impact: cannot attach host usb device to domain 2 after attaching it to domain 1 and shutting down domain 1. + 2. Development fix: Reattach usb device to host when domain shuts down + 3. Stable fix: same as development fix backport of upstream patch. + 4. test case: + To test inside a precise kvm guest, + 1. create a nested libvirt domain as per https://wiki.ubuntu.com/SergeHallyn_libvirtnest + 2. Create usb.xml file containing: + + + + + + + 3. start cdboot, and attach the device to it + virsh start cdboot + virsh attach-device cdboot usb.xml + 4. stop cdboot, restart it, and try to attach the device again + virsh destroy cdboot + virsh start cdboot + virsh attach-device cdboot usb.xml + Without this fix, the second attach-device will fail. + 5. Regression potential: +This adds new code to the domain shutdown and libvirt start sequences. However they +only affect the list of usb devices, so any regressions should be caught at usb +device add/remove and libvirtd start/stop. + + = + Running Ubuntu 12.04 x86_64 libvirt0 and libvirt-bin 0.9.8-2ubuntu17.8 causes a regression. I am using QEMU/KVM virtual machines. To reproduce: -use virsh to create/start a vm -use virsh to attach-device a host usb device -use virsh to stop/destroy the vm -use virsh to create vm again -use virsh to attach the usb device again - + use virsh to create/start a vm + use virsh to attach-device a host usb device + use virsh to stop/destroy the vm + use virsh to create vm again + use virsh to attach the usb device again + I get: virsh attach-device vm1 /var/lib/libvirt/hotplug/usb-serial.xml error: Failed to attach device from /var/lib/libvirt/hotplug/usb-serial.xml error: Requested operation is not valid: USB device 002:005 is in use by domain .. Note the ".." characters. That is literal. It is printing garbage characters. The failure is not 100% of the time but is pretty high (50% ?) usb-serial.xml: - - - - - - + + + + + + - - backing up libvirt0 and libvirt-bin to 0.9.8-2ubuntu17.7 makes this problem go away. + backing up libvirt0 and libvirt-bin to 0.9.8-2ubuntu17.7 makes this + problem go away. While looking at this I found a Fedora bug that looks similar. The upstream patches they identified may be of interest. https://bugzilla.redhat.com/show_bug.cgi?id=814866 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1190387 Title: attach-device of usb falsely declares device in use by other domain To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1190387/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1190387] Re: attach-device of usb falsely declares device in use by other domain
** Changed in: libvirt (Ubuntu) Status: New => In Progress ** Changed in: libvirt (Ubuntu) Assignee: (unassigned) => Serge Hallyn (serge-hallyn) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1190387 Title: attach-device of usb falsely declares device in use by other domain To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1190387/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1190387] Re: attach-device of usb falsely declares device in use by other domain
** Changed in: libvirt (Ubuntu) Importance: Undecided => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1190387 Title: attach-device of usb falsely declares device in use by other domain To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1190387/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs