Bug 1445231
| Summary: | Hotplug of 'user' type interface is not supported any more unexpectedly | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Jaroslav Reznik <jreznik> |
| Component: | libvirt | Assignee: | Michal Privoznik <mprivozn> |
| Status: | CLOSED ERRATA | QA Contact: | yalzhang <yalzhang> |
| Severity: | medium | Docs Contact: | |
| Priority: | high | ||
| Version: | 7.4 | CC: | dyuan, dzheng, jreznik, jsuchane, mprivozn, mtessun, pkrempa, rbalakri, xuzhang, yalzhang, zpeng |
| Target Milestone: | rc | Keywords: | Regression, ZStream |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| 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.
|
Story Points: | --- |
| Clone Of: | 1420668 | Environment: | |
| Last Closed: | 2017-05-25 15:37:01 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1420668 | ||
| Bug Blocks: | |||
|
Description
Jaroslav Reznik
2017-04-25 10:00:48 UTC
To POST: http://post-office.corp.redhat.com/archives/rhvirt-patches/2017-April/msg00444.html Scratch build: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=13080389 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
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 |