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 1553162 - Attaching device to running domain fails with "non unique alias detected: usb"
Summary: Attaching device to running domain fails with "non unique alias detected: usb"
Keywords:
Status: CLOSED DUPLICATE of bug 1543775
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt
Version: 7.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Michal Privoznik
QA Contact: jiyan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-03-08 12:51 UTC by Jiri Denemark
Modified: 2018-03-12 12:31 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-12 12:31:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
active domain XML (5.27 KB, text/plain)
2018-03-08 12:56 UTC, Jiri Denemark
no flags Details
inactive domain XML (3.98 KB, text/plain)
2018-03-08 12:57 UTC, Jiri Denemark
no flags Details
network interface (185 bytes, text/plain)
2018-03-08 12:58 UTC, Jiri Denemark
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1552127 0 unspecified CLOSED qemu-kvm cannot find USB bus 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1553075 0 urgent CLOSED User-aliases not cleared on detach-device 2023-09-14 04:17:28 UTC

Internal Links: 1552127 1553075

Description Jiri Denemark 2018-03-08 12:51:53 UTC
Description of problem:

The check whether a user defined alias of a device which is being plugged is insane. It checks
aliases in live definition when plugging a device with --config and vice versa and checks for
conflicts which are completely irrelevant to the device which is being plugged.

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

libvirt-4.1.0
libvirt-3.9.0-14.el7

How reproducible:

100%

Steps to Reproduce:

1. virsh # domstate f26-1
shut off

2. virsh # attach-device f26-1 --config net.xml 
Device attached successfully

3. virsh # detach-device f26-1 --config net.xml 
Device detached successfully

4. virsh # start f26-1
Domain f26-1 started

5. virsh # attach-device f26-1 --config net.xml 
error: Failed to attach device from net.xml
error: XML error: non unique alias detected: usb

6. virsh # attach-device f26-1 --live net.xml 
Device attached successfully


Actual results:

See above.

Expected results:

Step 5 should succeed.

Additional info:

See bug 1553075 for another bug in alias uniqueness checks and bug 1552127 for discussion
about the 'usb' alias.

After fixing the obvious issue in bug 1553075, just swap usage of --config and --live in
reproducer steps and you will hit this bug too.

Comment 1 Jiri Denemark 2018-03-08 12:56:29 UTC
Created attachment 1405853 [details]
active domain XML

Comment 2 Jiri Denemark 2018-03-08 12:57:21 UTC
Created attachment 1405854 [details]
inactive domain XML

Comment 3 Jiri Denemark 2018-03-08 12:58:21 UTC
Created attachment 1405857 [details]
network interface

Comment 4 Michal Privoznik 2018-03-09 11:57:16 UTC
Patch proposed upstream:

https://www.redhat.com/archives/libvir-list/2018-March/msg00466.html

Comment 5 jiyan 2018-03-12 08:03:28 UTC
Hi, Michal. Maybe this bug is duplicated with the following bug, seems same issue with Issue-2 in Bug 1543775. Could you please have a look?

Bug 1543775 - 'update-deive' with alias in disk did not work actually and 'cold-plug' device with alias to running VM will fail in dumpxml file.

Comment 6 Michal Privoznik 2018-03-12 12:31:06 UTC
Yes. It is a duplicate. Closing it as such.

*** This bug has been marked as a duplicate of bug 1543775 ***


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