
On Fri, 22 Mar 2019 16:14:59 +0100 Gianluca Cecchi <gianluca.cecchi@gmail.com> wrote:
On Fri, Mar 22, 2019 at 3:21 PM Dominik Holler <dholler@redhat.com> wrote:
I'm now able to create/attach an ovn based nic to a VM, but if I try to power on this VM I get an error in web admin gui
Failed to run VM p2vorasvi11
and in engine.log:
2019-03-22 14:30:34,498+01 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (ForkJoinPool-1-worker-5) [] EVENT_ID: VM_DOWN_ERROR(119), VM p2vorasvi11 is down with error. Exit message: Hook Error: ('',).
If I put a standard nic the VM is able to start without problem. Full log in engine.log during startup here:
https://drive.google.com/file/d/1vDY64QaRkb8LWHJ9gD16bsJlyovISNwr/view?usp=s...
Can you please share the relevant part of vdsm.log, too?
It seems this below regarding sudo and password required for it:
2019-03-22 14:30:30,247+0100 INFO (jsonrpc/6) [jsonrpc.JsonRpcServer] RPC call Host.getStats succeeded in 0.05 seconds (__init__:312) 2019-03-22 14:30:33,667+0100 INFO (vm/e54f8a2d) [root] /usr/libexec/vdsm/hooks/before_device_create/20_ovirt_provider_ovn_vhostuser_hook: rc=1 err=Traceback (most recent call last): File "/usr/libexec/vdsm/hooks/before_device_create/20_ovirt_provider_ovn_vhostuser_hook", line 134, in <module> main() File "/usr/libexec/vdsm/hooks/before_device_create/20_ovirt_provider_ovn_vhostuser_hook", line 120, in main if not is_netdev_datapath(): File "/usr/libexec/vdsm/hooks/before_device_create/20_ovirt_provider_ovn_vhostuser_hook", line 110, in is_netdev_datapath data, headings = list_ovs_table('bridge') File "/usr/libexec/vdsm/hooks/before_device_create/20_ovirt_provider_ovn_vhostuser_hook", line 42, in list_ovs_table exec_cmd('ovs-vsctl', '--format=json', 'list', table)[0] File "/usr/libexec/vdsm/hooks/before_device_create/20_ovirt_provider_ovn_vhostuser_hook", line 36, in exec_cmd (args, err)) RuntimeError: Failed to execute ('ovs-vsctl', '--format=json', 'list', 'bridge'), due to: ['sudo: a password is required'] (hooks:114) 2019-03-22 14:30:33,733+0100 INFO (vm/e54f8a2d) [root] /usr/libexec/vdsm/hooks/before_device_create/50_macspoof: rc=0 err= (hooks:114) 2019-03-22 14:30:33,802+0100 INFO (vm/e54f8a2d) [root] /usr/libexec/vdsm/hooks/before_device_create/50_vmfex: rc=0 err= (hooks:114) 2019-03-22 14:30:33,803+0100 ERROR (vm/e54f8a2d) [virt.vm] (vmId='e54f8a2d-432f-41f6-95b2-7bca3e5ebb4b') The vm start process failed (vm:937) Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 866, in _startUnderlyingVm self._run() File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 2842, in _run self._buildDomainXML(), File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 2265, in _buildDomainXML dom, self.id, self._custom) File "/usr/lib/python2.7/site-packages/vdsm/virt/domxml_preprocess.py", line 243, in replace_device_xml_with_hooks_xml dev_custom) File "/usr/lib/python2.7/site-packages/vdsm/common/hooks.py", line 138, in before_device_create params=customProperties) File "/usr/lib/python2.7/site-packages/vdsm/common/hooks.py", line 124, in _runHooksDir raise exception.HookError(err) HookError: Hook Error: ('',)
Thanks for raising this. I created https://bugzilla.redhat.com/1691933 to track this. Do you uninstalled vdsm-hook-openstacknet?