Bug 1012834
Summary: | the virtual interface can't be hotpluged with command "attach-interface" while the guest contains VF | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Xuesong Zhang <xuzhang> |
Component: | libvirt | Assignee: | Laine Stump <laine> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.5 | CC: | dyuan, honzhang, jdenemar, jmiao, laine, mzhan, rbalakri |
Target Milestone: | rc | Keywords: | Upstream |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libvirt-0.10.2-36.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | 1012824 | Environment: | |
Last Closed: | 2014-10-14 04:17:13 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: | |||
Bug Depends On: | 1012824 | ||
Bug Blocks: |
Description
Xuesong Zhang
2013-09-27 08:48:48 UTC
Fix posted upstream: https://www.redhat.com/archives/libvir-list/2013-October/msg00152.html Pushed upstream: commit 9881bfed2541faa428372b4513518b4b9ae1ab15 Author: Laine Stump <laine> Date: Thu Oct 3 13:02:35 2013 +0300 qemu: check actual netdev type rather than config netdev type during init Hi Laine, I met a problem during testing this bug, destroying the guest which attached a VF interface will report an error: # virsh attach-device rhel65 hostdev.xml Device attached successfully # virsh destroy rhel65 error: Failed to destroy domain rhel65 error: operation failed: failed to kill qemu process with SIGTERM # ps -ef | grep qemu root 11258 4695 0 05:10 pts/2 00:00:00 grep qemu some logs are: 2014-05-20 09:09:55.064+0000: 9794: warning : qemuProcessKill:4254 : Timed out waiting after SIGTERM to process 9908, sending SIGKILL 2014-05-20 09:10:00.067+0000: 9794: warning : qemuProcessKill:4286 : Timed out waiting after SIGKILL to process 9908 2014-05-20 09:10:00.067+0000: 9794: debug : virObjectRef:168 : OBJECT_REF: obj=0x7f7444122840 2014-05-20 09:10:00.067+0000: 9794: debug : virObjectUnref:135 : OBJECT_UNREF: obj=0x7f7444122840 2014-05-20 09:10:00.067+0000: 9794: error : qemuDomainDestroyFlags:2111 : operation failed: failed to kill qemu process with SIGTERM Further information: I try to attach a normal PCI device to guest, and no error happened. Although I think this problem is not related to this bug fix, I just need your confirmation. If so, I will report a new one to track it. (In reply to Jincheng Miao from comment #9) > some logs are: > 2014-05-20 09:09:55.064+0000: 9794: warning : qemuProcessKill:4254 : Timed > out waiting after SIGTERM to process 9908, sending SIGKILL > 2014-05-20 09:10:00.067+0000: 9794: warning : qemuProcessKill:4286 : Timed > out waiting after SIGKILL to process 9908 > 2014-05-20 09:10:00.067+0000: 9794: debug : virObjectRef:168 : OBJECT_REF: > obj=0x7f7444122840 > 2014-05-20 09:10:00.067+0000: 9794: debug : virObjectUnref:135 : > OBJECT_UNREF: obj=0x7f7444122840 > 2014-05-20 09:10:00.067+0000: 9794: error : qemuDomainDestroyFlags:2111 : > operation failed: failed to kill qemu process with SIGTERM For the same machine in rhel7 libvirt-1.1.1-29.el7.x86_64, there is no this problem. This SIGTERM problem is not related to this fix, I tested on another 82599 machine, and no happened. In latest libvirt, there is no error like "Unable to determine device index for network device" # virsh net-dumpxml hostnet <network> <name>hostnet</name> <uuid>1d257516-0d82-70c9-d0c8-dcd8ee288175</uuid> <forward mode='hostdev' managed='yes'> <address type='pci' domain='0x0000' bus='0x44' slot='0x10' function='0x1'/> <address type='pci' domain='0x0000' bus='0x44' slot='0x10' function='0x0'/> </forward> </network> # virsh edit rhel65 <interface type='network'> <mac address='52:54:00:ed:8d:00'/> <source network='hostnet'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </interface> # virsh start rhel65 Domain rhel65 started # virsh attach-interface rhel65 network default Interface attached successfully # virsh destroy rhel65 Domain rhel65 destroyed # virsh edit rhel65 Domain rhel65 XML configuration edited. # virsh start rhel65 Domain rhel65 started # virsh attach-interface rhel65 network default Interface attached successfully # virsh attach-interface rhel65 network hostnet Interface attached successfully # virsh attach-interface rhel65 network default Interface attached successfully attach-interface works well, so I choose to change the status to VERIFIED. 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. http://rhn.redhat.com/errata/RHBA-2014-1374.html |