Bug 653883 - Fails to attach USB device having a 8 or 9 in address
Fails to attach USB device having a 8 or 9 in address
Product: Fedora
Classification: Fedora
Component: libvirt (Show other bugs)
Unspecified Unspecified
low Severity medium
: ---
: ---
Assigned To: Daniel Veillard
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2010-11-16 06:26 EST by Enrico Scholz
Modified: 2011-04-07 14:25 EDT (History)
13 users (show)

See Also:
Fixed In Version: libvirt-0.8.3-4.fc14
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2011-03-12 17:55:43 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Enrico Scholz 2010-11-16 06:26:37 EST
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 14:10:33 EST
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 14:42:12 EST
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 17:50:15 EST
This is fixed upstream, should be a simple backport:

Comment 4 Ronald Wahl 2010-12-03 22:45:15 EST
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 09:16:34 EST
Sorry, this is the correct commit:

Comment 6 Ronald Wahl 2010-12-06 15:44:14 EST
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 08:54:59 EST
Anything new wrt. this bug? Please rebuild the package with fix mentioned in comment #5. Thanks!
Comment 8 Jan "Yenya" Kasprzak 2011-01-14 12:12:40 EST
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 08:15:37 EST
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 08:17:20 EST
libvirt-0.8.3-4.fc14 has been build and is in Testing with the fix,

Comment 11 Fedora Update System 2011-03-04 21:37:51 EST
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 17:55:35 EST
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.