Bug 653883 - Fails to attach USB device having a 8 or 9 in address
Summary: Fails to attach USB device having a 8 or 9 in address
Alias: None
Product: Fedora
Classification: Fedora
Component: libvirt
Version: 14
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Daniel Veillard
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2010-11-16 11:26 UTC by Enrico Scholz
Modified: 2011-04-07 18:25 UTC (History)
13 users (show)

Fixed In Version: libvirt-0.8.3-4.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2011-03-12 22:55:43 UTC

Attachments (Terms of Use)

Description Enrico Scholz 2010-11-16 11:26:37 UTC
Description of problem:

There seems to be (again) an octal conversion problem when reading usb device addresses. When trying to attach the USB devices below, the '27' one works while '28' causes the "doesn't take value '028'" error:

<hostdev mode='subsystem' type='usb'>
                <address bus='2' device='27'/>
Device attached successfully


<hostdev mode='subsystem' type='usb'>
                <address bus='2' device='28'/>
error: Failed to attach device from /tmp/virsh-attach.0IBtsE
error: operation failed: adding usb-host,hostbus=002,hostaddr=028,id=hostdev7 device failed: Property 'usb-host.hostaddr' doesn't take value '028'

Version-Release number of selected component (if applicable):


How reproducible:


Comment 1 Ronald Wahl 2010-12-01 19:10:33 UTC
I can second this. But even when no 8 or 9 is in the usb address the device seem not to appear in the VM (but the VM starts). At least I can't see my TomTom navi anymore in my WinXP VM. This used to work under F13.

Comment 2 Ronald Wahl 2010-12-01 19:42:12 UTC
It looks like (not entirely sure) that it works when the device address is smaller than 8. So it might be related to the number parsing issue.

Comment 3 Cole Robinson 2010-12-01 22:50:15 UTC
This is fixed upstream, should be a simple backport:


Comment 4 Ronald Wahl 2010-12-04 03:45:15 UTC
Cole, are you sure the URL to the fix is right? The description is:
  "OpenVZ: drop fd leackage
   Drop unused (and unclosed) errfd and close outfd on exit. Otherwise polling
   the running domains with virt-manager let's us quickly run out of fds."

Comment 5 Cole Robinson 2010-12-06 14:16:34 UTC
Sorry, this is the correct commit:


Comment 6 Ronald Wahl 2010-12-06 20:44:14 UTC
Ok, that commit looks better. Thanks.
So please can someone rebuild libvirt with that fix applied? Thanks!

Comment 7 Jan "Yenya" Kasprzak 2011-01-14 13:54:59 UTC
Anything new wrt. this bug? Please rebuild the package with fix mentioned in comment #5. Thanks!

Comment 8 Jan "Yenya" Kasprzak 2011-01-14 17:12:40 UTC
I have downloaded libvirt-0.8.7-1.fc15.src.rpm from Koji, rebuilt it for F14, installed, and the error message is gone - I can start the guest without problem. So mere rebuilding 0.8.7-1 for F14 in Koji and pushing it as an update would fix the problem.

I am however not sure about the USB device itself: what I am trying to do is to upgrade firmware in my Samsung Galaxy S phone using Win7 and the Kies application from Samsung, and it still cannot see the phone connected over USB.

Comment 9 Fedora Update System 2011-03-04 13:15:37 UTC
Package libvirt-0.8.3-4.fc14:
* should fix your issue,
* was pushed to the Fedora 14 updates-testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing libvirt-0.8.3-4.fc14'
as soon as you are able to, then reboot.
Please go to the following url:
then log in and leave karma (feedback).

Comment 10 Daniel Veillard 2011-03-04 13:17:20 UTC
libvirt-0.8.3-4.fc14 has been build and is in Testing with the fix,


Comment 11 Fedora Update System 2011-03-05 02:37:51 UTC
libvirt-0.8.3-4.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update libvirt'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/libvirt-0.8.3-4.fc14

Comment 12 Fedora Update System 2011-03-12 22:55:35 UTC
libvirt-0.8.3-4.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

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