On Sat, Jan 19, 2019 at 9:14 PM Jason Herring <jaherring(a)usa.net> wrote:
If I try to run "vdsm-tool restore-nets", which is what starting the
vdsm-network.service seems to do first, I get the following:
( a large number of lines of the first error)
......
libvirt: XML-RPC error : authentication failed: authentication failed
libvirt: XML-RPC error : authentication failed: authentication failed
libvirt: XML-RPC error : authentication failed: authentication failed
libvirt: XML-RPC error : authentication failed: authentication failed
Traceback (most recent call last):
File "/usr/share/vdsm/vdsm-restore-net-config", line 476, in <module>
restore(args)
File "/usr/share/vdsm/vdsm-restore-net-config", line 434, in restore
_restore_sriov_numvfs()
File "/usr/share/vdsm/vdsm-restore-net-config", line 84, in
_restore_sriov_numvfs
sriov_devices = _get_sriov_devices()
File "/usr/share/vdsm/vdsm-restore-net-config", line 56, in
_get_sriov_devices
devices = hostdev.list_by_caps()
File "/usr/share/vdsm/hostdev.py", line 219, in list_by_caps
libvirt_devices = _get_devices_from_libvirt()
File "/usr/share/vdsm/hostdev.py", line 204, in _get_devices_from_libvirt
for device in libvirtconnection.get().listAllDevices(0))
File "/usr/lib/python2.7/site-packages/vdsm/libvirtconnection.py",
line 164, in get
password)
File "/usr/lib/python2.7/site-packages/vdsm/libvirtconnection.py",
line 100, in open_connection
return utils.retry(libvirtOpen, timeout=10, sleep=0.2)
File "/usr/lib/python2.7/site-packages/vdsm/utils.py", line 959, in retry
return func()
File "/usr/lib64/python2.7/site-packages/libvirt.py", line 104, in
openAuth
if ret is None:raise libvirtError('virConnectOpenAuth() failed')
libvirt.libvirtError: authentication failed: authentication failed
This is what happens when libvirt is not configured to work with vdsm.
Can you share your /etc/libvirt/libvirtd.conf?
Would you try `vdsm-tool configure --force` ? (bad for debugging root
cause, but can just fix your issue)
> Traceback (most recent call last):
> File "/usr/bin/vdsm-tool", line 219, in main
> return tool_command[cmd]["command"](*args)
> File "/usr/lib/python2.7/site-packages/vdsm/tool/restore_nets.py",
> line 41, in restore_command
> exec_restore(cmd)
> File "/usr/lib/python2.7/site-packages/vdsm/tool/restore_nets.py",
> line 54, in exec_restore
> raise EnvironmentError('Failed to restore the persisted networks')
> EnvironmentError: Failed to restore the persisted networks
> _______________________________________________
> Users mailing list -- users(a)ovirt.org
> To unsubscribe send an email to users-leave(a)ovirt.org
> Privacy Statement:
https://www.ovirt.org/site/privacy-policy/
> oVirt Code of Conduct:
https://www.ovirt.org/community/about/community-guidelines/
> List Archives:
https://lists.ovirt.org/archives/list/users@ovirt.org/message/N5JHE4RECU5...