Bug 1470548

Summary: vNIC hotplug failed with empty network error: Network ;vdsmdummy; does not exist
Product: Red Hat Enterprise Virtualization Manager Reporter: Meni Yakove <myakove>
Component: vdsmAssignee: Dan Kenigsberg <danken>
Status: CLOSED NOTABUG QA Contact: Michael Burman <mburman>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.6.10CC: bazulay, lsurette, myakove, srevivo, ycui, ykaul
Target Milestone: ---Keywords: Automation, AutomationTriaged, Regression
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-13 18:16:42 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:
Embargoed:
Attachments:
Description Flags
vdsm, supervdsm and engine logs none

Description Meni Yakove 2017-07-13 07:41:02 UTC
Created attachment 1297443 [details]
vdsm, supervdsm and engine logs

Description of problem:
When trying to hotplug vNIC with no network (empty) to running VM the operation fails with error:

jsonrpc.Executor/0::DEBUG::2017-07-13 10:28:53,448::utils::689::root::(execCmd) FAILED: <err> = 'Network ;vdsmdummy; does not exist\nTraceback (most recent call last):\n  File "/usr/libexec/vdsm/hooks/before_nic_hotplug/50_ovs", line 130, in <module>\n    main()\n  File "/usr/libexec/vdsm/hooks/before_nic_hotplug/50_ovs", line 54, in main\n    ovs_device(domxml)\n  File "/usr/libexec/vdsm/hooks/before_nic_hotplug/50_ovs", line 42, in ovs_device\n    hooking.exit_hook(\'Network %s does not exist\' % source_bridge)\n  File "/usr/share/vdsm/hooking.py", line 84, in exit_hook\n    sys.exit(return_code)\nSystemExit: 2\n\n'; <rc> = 2
jsonrpc.Executor/0::INFO::2017-07-13 10:28:53,449::hooks::107::root::(_runHooksDir) Network ;vdsmdummy; does not exist
Traceback (most recent call last):
  File "/usr/libexec/vdsm/hooks/before_nic_hotplug/50_ovs", line 130, in <module>
    main()
  File "/usr/libexec/vdsm/hooks/before_nic_hotplug/50_ovs", line 54, in main
    ovs_device(domxml)
  File "/usr/libexec/vdsm/hooks/before_nic_hotplug/50_ovs", line 42, in ovs_device
    hooking.exit_hook('Network %s does not exist' % source_bridge)
  File "/usr/share/vdsm/hooking.py", line 84, in exit_hook
    sys.exit(return_code)
SystemExit: 2
 

Version-Release number of selected component (if applicable):
vdsm-4.17.42-1.el7ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. Start VM
2. Add vNIC with empty network to the VM

Comment 1 Dan Kenigsberg 2017-07-13 12:15:08 UTC
/usr/libexec/vdsm/hooks/before_nic_hotplug/50_ovs was never supported, and should NOT be installed on your tested host. Does any problem remain when you remove its rpm?

Comment 2 Meni Yakove 2017-07-13 18:16:42 UTC
After uninstall vdsm-hook-ovs hot plug with empty network works