Bug 1300843
Summary: | Libvirt should not reduce the connections value on hostdev network after attaching interface failed | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Laine Stump <laine> |
Component: | libvirt | Assignee: | Laine Stump <laine> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.7 | CC: | acathrow, dallan, dyuan, honzhang, jiahu, jishao, laine, mzhan, rbalakri, shyu, virt-bugs |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | libvirt-0.10.2-57.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | 1020135 | Environment: | |
Last Closed: | 2016-05-10 19:26:04 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Laine Stump
2016-01-21 22:05:08 UTC
Verify it as follows. The result is expected. Move its status to VERIFIED. [root@sriov1 Desktop]# rpm -q libvirt libvirt-0.10.2-57.el6.x86_64 [root@sriov1 jishao]# virsh dumpxml r6| grep interface -A 10 <interface type='network'> <mac address='52:54:00:46:34:01'/> <source network='hostnet'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </interface> <interface type='network'> <mac address='52:54:00:b2:d9:cc'/> <source network='hostnet'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/> </interface> <interface type='network'> <mac address='52:54:00:6c:b8:f3'/> <source network='hostnet'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'/> </interface> [root@sriov1 jishao]# virsh start r6 Domain r6 started [root@sriov1 jishao]# virsh net-dumpxml hostnet <network connections='3'> <name>hostnet</name> <uuid>3e4658a7-164b-82a6-d91c-97570f0cbc09</uuid> <forward mode='hostdev' managed='yes'> <address type='pci' domain='0x0000' bus='0x03' slot='0x10' function='0x0'/> <address type='pci' domain='0x0000' bus='0x03' slot='0x10' function='0x2'/> <address type='pci' domain='0x0000' bus='0x03' slot='0x10' function='0x4'/> <address type='pci' domain='0x0000' bus='0x03' slot='0x10' function='0x6'/> </forward> </network> [root@sriov1 jishao]# virsh attach-interface r6 network hostnet Interface attached successfully [root@sriov1 jishao]# virsh attach-interface r6 network hostnet error: Failed to attach interface error: internal error network 'hostnet' requires exclusive access to interfaces, but none are available [root@sriov1 jishao]# virsh net-dumpxml hostnet <network connections='4'> <name>hostnet</name> <uuid>3e4658a7-164b-82a6-d91c-97570f0cbc09</uuid> <forward mode='hostdev' managed='yes'> <address type='pci' domain='0x0000' bus='0x03' slot='0x10' function='0x0'/> <address type='pci' domain='0x0000' bus='0x03' slot='0x10' function='0x2'/> <address type='pci' domain='0x0000' bus='0x03' slot='0x10' function='0x4'/> <address type='pci' domain='0x0000' bus='0x03' slot='0x10' function='0x6'/> </forward> </network> [root@sriov1 jishao]# virsh destroy r6 [root@sriov1 jishao]# virsh net-dumpxml hostnet <network> <name>hostnet</name> <uuid>3e4658a7-164b-82a6-d91c-97570f0cbc09</uuid> <forward mode='hostdev' managed='yes'> <address type='pci' domain='0x0000' bus='0x03' slot='0x10' function='0x0'/> <address type='pci' domain='0x0000' bus='0x03' slot='0x10' function='0x2'/> <address type='pci' domain='0x0000' bus='0x03' slot='0x10' function='0x4'/> <address type='pci' domain='0x0000' bus='0x03' slot='0x10' function='0x6'/> </forward> </network> [root@sriov1 jishao]# virsh dumpxml r6| grep interface -A 10 [root@sriov1 jishao]# [root@sriov1 jishao]# virsh attach-interface r6 network hostnet Interface attached successfully [root@sriov1 jishao]# virsh attach-interface r6 network hostnet Interface attached successfully [root@sriov1 jishao]# virsh attach-interface r6 network hostnet Interface attached successfully [root@sriov1 jishao]# virsh net-dumpxml hostnet <network connections='3'> <name>hostnet</name> <uuid>3e4658a7-164b-82a6-d91c-97570f0cbc09</uuid> <forward mode='hostdev' managed='yes'> <address type='pci' domain='0x0000' bus='0x03' slot='0x10' function='0x0'/> <address type='pci' domain='0x0000' bus='0x03' slot='0x10' function='0x2'/> <address type='pci' domain='0x0000' bus='0x03' slot='0x10' function='0x4'/> <address type='pci' domain='0x0000' bus='0x03' slot='0x10' function='0x6'/> </forward> </network> [root@sriov1 jishao]# virsh attach-interface r6 network hostnet Interface attached successfully [root@sriov1 jishao]# virsh net-dumpxml hostnet <network connections='4'> <name>hostnet</name> <uuid>3e4658a7-164b-82a6-d91c-97570f0cbc09</uuid> <forward mode='hostdev' managed='yes'> <address type='pci' domain='0x0000' bus='0x03' slot='0x10' function='0x0'/> <address type='pci' domain='0x0000' bus='0x03' slot='0x10' function='0x2'/> <address type='pci' domain='0x0000' bus='0x03' slot='0x10' function='0x4'/> <address type='pci' domain='0x0000' bus='0x03' slot='0x10' function='0x6'/> </forward> </network> [root@sriov1 jishao]# virsh attach-interface r6 network hostnet error: Failed to attach interface error: internal error network 'hostnet' requires exclusive access to interfaces, but none are available [root@sriov1 jishao]# virsh net-dumpxml hostnet <network connections='4'> <name>hostnet</name> <uuid>3e4658a7-164b-82a6-d91c-97570f0cbc09</uuid> <forward mode='hostdev' managed='yes'> <address type='pci' domain='0x0000' bus='0x03' slot='0x10' function='0x0'/> <address type='pci' domain='0x0000' bus='0x03' slot='0x10' function='0x2'/> <address type='pci' domain='0x0000' bus='0x03' slot='0x10' function='0x4'/> <address type='pci' domain='0x0000' bus='0x03' slot='0x10' function='0x6'/> </forward> </network> [root@sriov1 jishao]# virsh detach-interface r6 hostdev --mac 52:54:00:d8:7e:e4 Interface detached successfully [root@sriov1 jishao]# virsh detach-interface r6 hostdev --mac 52:54:00:23:39:ef Interface detached successfully [root@sriov1 jishao]# virsh net-dumpxml hostnet <network connections='2'> <name>hostnet</name> <uuid>3e4658a7-164b-82a6-d91c-97570f0cbc09</uuid> <forward mode='hostdev' managed='yes'> <address type='pci' domain='0x0000' bus='0x03' slot='0x10' function='0x0'/> <address type='pci' domain='0x0000' bus='0x03' slot='0x10' function='0x2'/> <address type='pci' domain='0x0000' bus='0x03' slot='0x10' function='0x4'/> <address type='pci' domain='0x0000' bus='0x03' slot='0x10' function='0x6'/> </forward> </network> 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://rhn.redhat.com/errata/RHBA-2016-0738.html |