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 1445231 - Hotplug of 'user' type interface is not supported any more unexpectedly
Summary: Hotplug of 'user' type interface is not supported any more unexpectedly
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt
Version: 7.4
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: rc
: ---
Assignee: Michal Privoznik
QA Contact: yalzhang@redhat.com
URL:
Whiteboard:
Depends On: 1420668
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-04-25 10:00 UTC by Jaroslav Reznik
Modified: 2017-05-25 15:37 UTC (History)
11 users (show)

Fixed In Version: libvirt-2.0.0-10.el7_3.9
Doc Type: Bug Fix
Doc Text:
Cause: Due to a rework of code we mistakenly forbade hotplug of user type interfaces. Consequence: Users were unable to hotplug user type interfaces. This is a regression. Fix: Simple. Result: Users now able to hotplug their interfaces again.
Clone Of: 1420668
Environment:
Last Closed: 2017-05-25 15:37:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:1304 0 normal SHIPPED_LIVE libvirt bug fix and enhancement update 2017-05-25 19:32:14 UTC

Description Jaroslav Reznik 2017-04-25 10:00:48 UTC
This bug has been copied from bug #1420668 and has been proposed
to be backported to 7.3 z-stream (EUS).

Comment 7 yalzhang@redhat.com 2017-05-05 10:12:26 UTC
Test on below packages:
libvirt-2.0.0-10.el7_3.9.x86_64
qemu-kvm-rhev-2.6.0-28.el7_3.9.x86_64

For unprivileged user and root user, test hotplug by attach-device, hotunplug by detach-device and detach-interface, the result is as expected, set this bug to be verified.


----------------unprivileged user--------------------
1. hotplug
$ virsh start rhel7
Domain rhel7 started

$ cat user.xml
<interface type='user'>
  <mac address="00:11:22:33:44:55"/>
  </interface>

$ virsh attach-device rhel7 user.xml
Device attached successfully

$ virsh dumpxml rhel7 | grep /interface -B5
   <interface type='user'>
      <mac address='00:11:22:33:44:55'/>
      <model type='rtl8139'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>

2. log in the guest and check the network function works well.

3. hotunplug
$ virsh detach-device rhel7 user.xml
Device detached successfully
$ virsh dumpxml rhel7 | grep /interface -B9

4. detach the interface by detach-interface
$ virsh attach-device rhel7 user.xml 
Device attached successfully
$ virsh dumpxml rhel7 | grep /interface -B5
   <interface type='user'>
      <mac address='00:11:22:33:44:55'/>
      <model type='rtl8139'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/>
    </interface>
$ virsh detach-interface rhel7 user 00:11:22:33:44:55
Interface detached successfully
$ virsh dumpxml rhel7 | grep /interface


-------------------root user------------------
1.
# virsh start rhel7.3
Domain rhel7.3 started

# cat user.xml
<interface type='user'/>

# virsh attach-device rhel7.3 user.xml
Device attached successfully

# virsh dumpxml rhel7.3 | grep /interface -B5 
    <interface type='user'>
      <mac address='52:54:00:20:70:53'/>
      <model type='rtl8139'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>
# virsh dumpxml rhel7.3 | grep /interface -B5 > user1.xml
# virsh detach-device rhel7.3  user1.xml
Device detached successfully

# virsh dumpxml rhel7.3 | grep /interface

2. detach by detach-interface
# cat user.xml
   <interface type='user'>
      <mac address='52:54:00:a1:55:a6'/>
      <model type='virtio'/>
    </interface>
# virsh dumpxml rhel7.3 | grep /interface -B5
    <interface type='user'>
      <mac address='52:54:00:a1:55:a6'/>
      <model type='virtio'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/>
    </interface>

# virsh detach-interface rhel7.3 user 52:54:00:a1:55:a6
Interface detached successfully

# virsh dumpxml rhel7.3 | grep /interface

Comment 9 errata-xmlrpc 2017-05-25 15:37:01 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:1304


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