Bug 998855

Summary: Hotplug of vnic not working correctly with no guest running
Product: Red Hat Enterprise Virtualization Manager Reporter: Artyom <alukiano>
Component: vdsmAssignee: psebek
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3.3.0CC: alukiano, bazulay, danken, hateya, iheim, lpeer, myakove, yeylon
Target Milestone: ---Keywords: Regression, Triaged
Target Release: 3.3.0   
Hardware: Unspecified   
OS: Linux   
Whiteboard: network
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-03 10:40:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Network RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
egine and vdsm logs
none
Relevant logs none

Description Artyom 2013-08-20 08:45:11 UTC
Created attachment 788384 [details]
egine and vdsm logs

Description of problem:
After adding vm1 and unplug vnic from running vm1, functions as adding new vnic to vm1, plug vnic stop working with error"
"Error while executing action Edit VM Interface properties: Failed to activate VM Network Interface. "

Version-Release number of selected component (if applicable):
rhevm - is10
vdsm of host - vdsm-4.12.0-61.git8178ec2.el6ev
libvirt on host - libvirt-0.10.2-18.el6_4.9

How reproducible:
Always

Steps to Reproduce:
1. Add clean vm with nic
2. Run vm, wait untill vm is UP and unplug nic
3. After this try to plug nic or add new nic to vm

Actual results:
Error message:
"Error while executing action Edit VM Interface properties: Failed to activate VM Network Interface."

Expected results:
nic plugged in time that vm is running, new nic added in time that vm is running

Additional info:
if I stop vm1 and after this do plug or add new vnic, all work fine.

Comment 1 Dan Kenigsberg 2013-08-27 20:45:54 UTC
Please attach relevant part of libvirtd.log, as we have

Hotplug NIC xml: <inte
rface type="bridge">
        <address  domain="0x0000"  function="0x0"  slot="0x03"  type="pci" bus="0x00"/>
        <mac address="00:1a:4a:98:60:8d"/>
        <model type="virtio"/>
        <source bridge="rhevm"/>
        <filterref filter="vdsm-no-mac-spoofing"/>
        <link state="up"/>
</interface>

....

    if ret == -1: raise libvirtError ('virDomainAttachDevice() failed', dom=self)
libvirtError: An error occurred, but the cause is unknown


Pardon my asking, but is libvirt-0.10.2-18.el6_4.9 our latest and greatest version for RHEL-6.4?

Comment 4 Artyom 2013-09-01 06:19:34 UTC
Created attachment 792525 [details]
Relevant logs

From is12 adding nic after unplugging start work correct but plugging still not work

Comment 5 Dan Kenigsberg 2013-09-02 21:53:52 UTC
Which guest is running in the VM? hotplug/unplug is know to require a responsive modern OS. Without a guest, hotunplug silently fails. Then the following hotplug fails with a lot of bells and whistles.

Comment 6 Artyom 2013-09-03 10:35:10 UTC
It clean installed vm, without any os

Comment 7 Dan Kenigsberg 2013-09-03 10:40:55 UTC
The whole stack (qemu, libvirt, vdsm, Engine) requires a modern guest OS to be operational in order for hotplug/hotunplug to work.

It's not a vdsm bug, hence the CLOSE reason.