starting VDSM gives "libvir: XML-RPC error : authentication failed: authentication failed" error

Good day, Trying to setup a new 3.5 test environment with centos 6.5 as ovirt node. But I keep getting these errors: libvir: XML-RPC error : authentication failed: authentication failed libvir: XML-RPC error : authentication failed: authentication failed libvir: XML-RPC error : authentication failed: authentication failed libvir: XML-RPC error : authentication failed: authentication failed libvir: XML-RPC error : authentication failed: authentication failed libvir: XML-RPC error : authentication failed: authentication failed Traceback (most recent call last): File "/usr/bin/vdsm-tool", line 154, in main return tool_command[cmd]["command"](*args) File "/usr/lib64/python2.6/site-packages/vdsm/tool/nwfilter.py", line 37, in main conn = libvirtconnection.get(None, False) File "/usr/lib64/python2.6/site-packages/vdsm/libvirtconnection.py", line 151, in get conn = _open_qemu_connection() File "/usr/lib64/python2.6/site-packages/vdsm/libvirtconnection.py", line 95, in _open_qemu_connection return utils.retry(libvirtOpen, timeout=10, sleep=0.2) File "/usr/lib64/python2.6/site-packages/vdsm/utils.py", line 1086, in retry return func() File "/usr/lib64/python2.6/site-packages/libvirt.py", line 102, in openAuth if ret is None:raise libvirtError('virConnectOpenAuth() failed') libvirtError: authentication failed: authentication failed 2014-07-19 16:45:20 DEBUG otopi.context context._executeMethod:152 method exception Traceback (most recent call last): File "/tmp/ovirt-TTJojY73zc/pythonlib/otopi/context.py", line 142, in _executeMethod method['method']() File "/tmp/ovirt-TTJojY73zc/otopi-plugins/ovirt-host-deploy/vdsm/packages.py", line 219, in _start self.services.state('vdsmd', True) File "/tmp/ovirt-TTJojY73zc/otopi-plugins/otopi/services/rhel.py", line 188, in state 'start' if state else 'stop' File "/tmp/ovirt-TTJojY73zc/otopi-plugins/otopi/services/rhel.py", line 96, in _executeServiceCommand raiseOnError=raiseOnError File "/tmp/ovirt-TTJojY73zc/pythonlib/otopi/plugin.py", line 871, in execute command=args[0], RuntimeError: Command '/sbin/service' failed to execute 2014-07-19 16:45:20 ERROR otopi.context context._executeMethod:161 Failed to execute stage 'Closing up': Command '/sbin/service' failed to execute I tried adding the node through ovirt engine interface and the manual instrutions on the wiki (http://wiki.ovirt.org/Installing_ovirt-node_from_rpm) Running "service vdsm reconfigure" tells me everything is ok. Thanks in advance! Kind regards, Jorick Astrego Netbulae

Hi, Some more info, I think this is the problem and I also have it on the node image: Jul 20 22:41:49 localhost libvirtd: unable to open Berkeley db /etc/libvirt/passwd.db: No such file or directory Kind regards, Jorick Astrego Netbulae On 07/19/2014 06:52 PM, Jorick Astrego wrote:
Good day,
Trying to setup a new 3.5 test environment with centos 6.5 as ovirt node.
But I keep getting these errors:
libvir: XML-RPC error : authentication failed: authentication failed libvir: XML-RPC error : authentication failed: authentication failed libvir: XML-RPC error : authentication failed: authentication failed libvir: XML-RPC error : authentication failed: authentication failed libvir: XML-RPC error : authentication failed: authentication failed libvir: XML-RPC error : authentication failed: authentication failed Traceback (most recent call last): File "/usr/bin/vdsm-tool", line 154, in main return tool_command[cmd]["command"](*args) File "/usr/lib64/python2.6/site-packages/vdsm/tool/nwfilter.py", line 37, in main conn = libvirtconnection.get(None, False) File "/usr/lib64/python2.6/site-packages/vdsm/libvirtconnection.py", line 151, in get conn = _open_qemu_connection() File "/usr/lib64/python2.6/site-packages/vdsm/libvirtconnection.py", line 95, in _open_qemu_connection return utils.retry(libvirtOpen, timeout=10, sleep=0.2) File "/usr/lib64/python2.6/site-packages/vdsm/utils.py", line 1086, in retry return func() File "/usr/lib64/python2.6/site-packages/libvirt.py", line 102, in openAuth if ret is None:raise libvirtError('virConnectOpenAuth() failed') libvirtError: authentication failed: authentication failed
2014-07-19 16:45:20 DEBUG otopi.context context._executeMethod:152 method exception Traceback (most recent call last): File "/tmp/ovirt-TTJojY73zc/pythonlib/otopi/context.py", line 142, in _executeMethod method['method']() File "/tmp/ovirt-TTJojY73zc/otopi-plugins/ovirt-host-deploy/vdsm/packages.py", line 219, in _start self.services.state('vdsmd', True) File "/tmp/ovirt-TTJojY73zc/otopi-plugins/otopi/services/rhel.py", line 188, in state 'start' if state else 'stop' File "/tmp/ovirt-TTJojY73zc/otopi-plugins/otopi/services/rhel.py", line 96, in _executeServiceCommand raiseOnError=raiseOnError File "/tmp/ovirt-TTJojY73zc/pythonlib/otopi/plugin.py", line 871, in execute command=args[0], RuntimeError: Command '/sbin/service' failed to execute 2014-07-19 16:45:20 ERROR otopi.context context._executeMethod:161 Failed to execute stage 'Closing up': Command '/sbin/service' failed to execute
I tried adding the node through ovirt engine interface and the manual instrutions on the wiki (http://wiki.ovirt.org/Installing_ovirt-node_from_rpm)
Running "service vdsm reconfigure" tells me everything is ok.
Thanks in advance!
Kind regards, Jorick Astrego Netbulae
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

On 07/21/2014 01:45 AM, Jorick Astrego wrote:
Hi,
Some more info, I think this is the problem and I also have it on the node image:
Jul 20 22:41:49 localhost libvirtd: unable to open Berkeley db /etc/libvirt/passwd.db: No such file or directory
Hey Did you check if libvirtd services is up? can you share libvirtd.conf file? I'm not sure what is exactly the issue, but you can try "vdsm-tool configure --module libvirt" command to see if you set the vdsm configuration for libvirt as required. Regards, Yaniv Bronhaim
Kind regards, Jorick Astrego Netbulae
On 07/19/2014 06:52 PM, Jorick Astrego wrote:
Good day,
Trying to setup a new 3.5 test environment with centos 6.5 as ovirt node.
But I keep getting these errors:
libvir: XML-RPC error : authentication failed: authentication failed libvir: XML-RPC error : authentication failed: authentication failed libvir: XML-RPC error : authentication failed: authentication failed libvir: XML-RPC error : authentication failed: authentication failed libvir: XML-RPC error : authentication failed: authentication failed libvir: XML-RPC error : authentication failed: authentication failed Traceback (most recent call last): File "/usr/bin/vdsm-tool", line 154, in main return tool_command[cmd]["command"](*args) File "/usr/lib64/python2.6/site-packages/vdsm/tool/nwfilter.py", line 37, in main conn = libvirtconnection.get(None, False) File "/usr/lib64/python2.6/site-packages/vdsm/libvirtconnection.py", line 151, in get conn = _open_qemu_connection() File "/usr/lib64/python2.6/site-packages/vdsm/libvirtconnection.py", line 95, in _open_qemu_connection return utils.retry(libvirtOpen, timeout=10, sleep=0.2) File "/usr/lib64/python2.6/site-packages/vdsm/utils.py", line 1086, in retry return func() File "/usr/lib64/python2.6/site-packages/libvirt.py", line 102, in openAuth if ret is None:raise libvirtError('virConnectOpenAuth() failed') libvirtError: authentication failed: authentication failed
2014-07-19 16:45:20 DEBUG otopi.context context._executeMethod:152 method exception Traceback (most recent call last): File "/tmp/ovirt-TTJojY73zc/pythonlib/otopi/context.py", line 142, in _executeMethod method['method']() File "/tmp/ovirt-TTJojY73zc/otopi-plugins/ovirt-host-deploy/vdsm/packages.py", line 219, in _start self.services.state('vdsmd', True) File "/tmp/ovirt-TTJojY73zc/otopi-plugins/otopi/services/rhel.py", line 188, in state 'start' if state else 'stop' File "/tmp/ovirt-TTJojY73zc/otopi-plugins/otopi/services/rhel.py", line 96, in _executeServiceCommand raiseOnError=raiseOnError File "/tmp/ovirt-TTJojY73zc/pythonlib/otopi/plugin.py", line 871, in execute command=args[0], RuntimeError: Command '/sbin/service' failed to execute 2014-07-19 16:45:20 ERROR otopi.context context._executeMethod:161 Failed to execute stage 'Closing up': Command '/sbin/service' failed to execute
I tried adding the node through ovirt engine interface and the manual instrutions on the wiki (http://wiki.ovirt.org/Installing_ovirt-node_from_rpm)
Running "service vdsm reconfigure" tells me everything is ok.
Thanks in advance!
Kind regards, Jorick Astrego Netbulae
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
-- Yaniv Bronhaim.

Once upon a time, ybronhei <ybronhei@redhat.com> said:
On 07/21/2014 01:45 AM, Jorick Astrego wrote:
Hi,
Some more info, I think this is the problem and I also have it on the node image:
Jul 20 22:41:49 localhost libvirtd: unable to open Berkeley db /etc/libvirt/passwd.db: No such file or directory
Hey
Did you check if libvirtd services is up? can you share libvirtd.conf file? I'm not sure what is exactly the issue, but you can try "vdsm-tool configure --module libvirt" command to see if you set the vdsm configuration for libvirt as required.
I see the same thing with a new 3.5-beta install. libvirtd is running; I ran the above vdsm-tool command, but that made no difference. The libvirtd.conf has the following config (set by vdsm install): ## beginning of configuration section by vdsm-4.13.0 keepalive_interval=-1 log_outputs="1:file:/var/log/libvirt/libvirtd.log" unix_sock_rw_perms="0770" auth_unix_rw="sasl" log_filters="3:virobject 3:virfile 2:virnetlink 3:cgroup 3:event 3:json 1:libvirt 1:util 1:qemu" cert_file="/etc/pki/vdsm/certs/vdsmcert.pem" unix_sock_group="qemu" listen_addr="0.0.0.0" ca_file="/etc/pki/vdsm/certs/cacert.pem" key_file="/etc/pki/vdsm/keys/vdsmkey.pem" host_uuid="74e1d154-d83f-4852-9c35-3c931f8b45cf" ## end of configuration section by vdsm-4.13.0 If I comment out the auth_unix_rw line and restart libvirtd, vdsmd will start successfully. -- Chris Adams <cma@cmadams.net>

Once upon a time, Chris Adams <cma@cmadams.net> said:
Once upon a time, ybronhei <ybronhei@redhat.com> said:
On 07/21/2014 01:45 AM, Jorick Astrego wrote:
Hi,
Some more info, I think this is the problem and I also have it on the node image:
Jul 20 22:41:49 localhost libvirtd: unable to open Berkeley db /etc/libvirt/passwd.db: No such file or directory
Hey
Did you check if libvirtd services is up? can you share libvirtd.conf file? I'm not sure what is exactly the issue, but you can try "vdsm-tool configure --module libvirt" command to see if you set the vdsm configuration for libvirt as required.
I see the same thing with a new 3.5-beta install. libvirtd is running; I ran the above vdsm-tool command, but that made no difference.
The problem is that /usr/lib64/python2.6/site-packages/vdsm/constants.py (from vdsm-python-4.16.0-3.git601f786.el6.x86_64) sets EXT_SASLPASSWD2 to /sbin/saslpasswd2, but the binary is actually in /usr/sbin. I fixed that and manually set the password (and fixed the ovirt-ha* init scripts), but still can't deploy a 3.5-beta hosted engine. When configuring the management bridge, it leaves the interface down (both the bridge and the underlying interface); I brought them back up, but the setup then hits this: [ INFO ] Verifying sanlock lockspace initialization [ ERROR ] Failed to execute stage 'Misc configuration': [Errno 2] No such file or directory I see this in the setup log: ######################################################################## 2014-07-22 11:27:39 DEBUG otopi.context context._executeMethod:152 method exception Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/otopi/context.py", line 142, in _executeMethod method['method']() File "/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/sanlock/lockspace.py", line 163, in _misc lockspace + '.metadata': md_size, File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/storage_backends.py", line 336, in create service_size=size) File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/storage_backends.py", line 268, in create_volume raise RuntimeError(response["status"]["message"]) RuntimeError: [Errno 2] No such file or directory 2014-07-22 11:27:39 ERROR otopi.context context._executeMethod:161 Failed to execute stage 'Misc configuration': [Errno 2] No such file or directory ######################################################################## Not sure what is happening there. -- Chris Adams <cma@cmadams.net>

On 07/22/2014 07:55 PM, Chris Adams wrote:
Once upon a time, Chris Adams <cma@cmadams.net> said:
Once upon a time, ybronhei <ybronhei@redhat.com> said:
On 07/21/2014 01:45 AM, Jorick Astrego wrote:
Hi,
Some more info, I think this is the problem and I also have it on the node image:
Jul 20 22:41:49 localhost libvirtd: unable to open Berkeley db /etc/libvirt/passwd.db: No such file or directory
Hey
Did you check if libvirtd services is up? can you share libvirtd.conf file? I'm not sure what is exactly the issue, but you can try "vdsm-tool configure --module libvirt" command to see if you set the vdsm configuration for libvirt as required.
I see the same thing with a new 3.5-beta install. libvirtd is running; I ran the above vdsm-tool command, but that made no difference.
The problem is that /usr/lib64/python2.6/site-packages/vdsm/constants.py (from vdsm-python-4.16.0-3.git601f786.el6.x86_64) sets EXT_SASLPASSWD2 to /sbin/saslpasswd2, but the binary is actually in /usr/sbin.
I fixed that and manually set the password (and fixed the ovirt-ha* init scripts), but still can't deploy a 3.5-beta hosted engine. When configuring the management bridge, it leaves the interface down (both the bridge and the underlying interface); I brought them back up, but the setup then hits this:
[ INFO ] Verifying sanlock lockspace initialization [ ERROR ] Failed to execute stage 'Misc configuration': [Errno 2] No such file or directory
I see this in the setup log:
######################################################################## 2014-07-22 11:27:39 DEBUG otopi.context context._executeMethod:152 method exception Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/otopi/context.py", line 142, in _executeMethod method['method']() File "/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/sanlock/lockspace.py", line 163, in _misc lockspace + '.metadata': md_size, File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/storage_backends.py", line 336, in create service_size=size) File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/storage_backends.py", line 268, in create_volume raise RuntimeError(response["status"]["message"]) RuntimeError: [Errno 2] No such file or directory 2014-07-22 11:27:39 ERROR otopi.context context._executeMethod:161 Failed to execute stage 'Misc configuration': [Errno 2] No such file or directory ########################################################################
Not sure what is happening there.
is there a bug to track this?

On 07/22/2014 04:46 PM, Itamar Heim wrote:
On 07/22/2014 07:55 PM, Chris Adams wrote:
Once upon a time, Chris Adams <cma@cmadams.net> said:
Once upon a time, ybronhei <ybronhei@redhat.com> said:
On 07/21/2014 01:45 AM, Jorick Astrego wrote:
Hi,
Some more info, I think this is the problem and I also have it on the node image:
Jul 20 22:41:49 localhost libvirtd: unable to open Berkeley db /etc/libvirt/passwd.db: No such file or directory
Hey
Did you check if libvirtd services is up? can you share libvirtd.conf file? I'm not sure what is exactly the issue, but you can try "vdsm-tool configure --module libvirt" command to see if you set the vdsm configuration for libvirt as required.
I see the same thing with a new 3.5-beta install. libvirtd is running; I ran the above vdsm-tool command, but that made no difference.
The problem is that /usr/lib64/python2.6/site-packages/vdsm/constants.py (from vdsm-python-4.16.0-3.git601f786.el6.x86_64) sets EXT_SASLPASSWD2 to /sbin/saslpasswd2, but the binary is actually in /usr/sbin.
I fixed that and manually set the password (and fixed the ovirt-ha* init scripts), but still can't deploy a 3.5-beta hosted engine. When configuring the management bridge, it leaves the interface down (both the bridge and the underlying interface); I brought them back up, but the setup then hits this:
[ INFO ] Verifying sanlock lockspace initialization [ ERROR ] Failed to execute stage 'Misc configuration': [Errno 2] No such file or directory
I see this in the setup log:
######################################################################## 2014-07-22 11:27:39 DEBUG otopi.context context._executeMethod:152 method exception Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/otopi/context.py", line 142, in _executeMethod method['method']() File "/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/sanlock/lockspace.py", line 163, in _misc lockspace + '.metadata': md_size, File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/storage_backends.py", line 336, in create service_size=size) File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/storage_backends.py", line 268, in create_volume raise RuntimeError(response["status"]["message"]) RuntimeError: [Errno 2] No such file or directory 2014-07-22 11:27:39 ERROR otopi.context context._executeMethod:161 Failed to execute stage 'Misc configuration': [Errno 2] No such file or directory ########################################################################
Not sure what is happening there.
is there a bug to track this?
Yes. Host installation fails: sasl passwd.db missing - File "/usr/lib64/python2.6/site-packages/vdsm/tool/passwd.py", line 50, in set_saslpasswd https://bugzilla.redhat.com/show_bug.cgi?id=1114993 Current Status: ON_QA -- Cheers Douglas

Il 22/07/2014 22:46, Itamar Heim ha scritto:
On 07/22/2014 07:55 PM, Chris Adams wrote:
Once upon a time, Chris Adams <cma@cmadams.net> said:
Once upon a time, ybronhei <ybronhei@redhat.com> said:
On 07/21/2014 01:45 AM, Jorick Astrego wrote:
Hi,
Some more info, I think this is the problem and I also have it on the node image:
Jul 20 22:41:49 localhost libvirtd: unable to open Berkeley db /etc/libvirt/passwd.db: No such file or directory
Hey
Did you check if libvirtd services is up? can you share libvirtd.conf file? I'm not sure what is exactly the issue, but you can try "vdsm-tool configure --module libvirt" command to see if you set the vdsm configuration for libvirt as required.
I see the same thing with a new 3.5-beta install. libvirtd is running; I ran the above vdsm-tool command, but that made no difference.
The problem is that /usr/lib64/python2.6/site-packages/vdsm/constants.py (from vdsm-python-4.16.0-3.git601f786.el6.x86_64) sets EXT_SASLPASSWD2 to /sbin/saslpasswd2, but the binary is actually in /usr/sbin.
I fixed that and manually set the password (and fixed the ovirt-ha* init scripts), but still can't deploy a 3.5-beta hosted engine. When configuring the management bridge, it leaves the interface down (both the bridge and the underlying interface); I brought them back up, but the setup then hits this:
[ INFO ] Verifying sanlock lockspace initialization [ ERROR ] Failed to execute stage 'Misc configuration': [Errno 2] No such file or directory
I see this in the setup log:
######################################################################## 2014-07-22 11:27:39 DEBUG otopi.context context._executeMethod:152 method exception Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/otopi/context.py", line 142, in _executeMethod method['method']() File "/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/sanlock/lockspace.py", line 163, in _misc lockspace + '.metadata': md_size, File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/storage_backends.py", line 336, in create service_size=size) File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/storage_backends.py", line 268, in create_volume raise RuntimeError(response["status"]["message"]) RuntimeError: [Errno 2] No such file or directory 2014-07-22 11:27:39 ERROR otopi.context context._executeMethod:161 Failed to execute stage 'Misc configuration': [Errno 2] No such file or directory ########################################################################
Not sure what is happening there.
is there a bug to track this?
Not sure, but it's already fixed in 3.4.3 GA, so it should also be fixed in today second beta build and in nightly snapshots. -- Sandro Bonazzola Better technology. Faster innovation. Powered by community collaboration. See how it works at redhat.com
participants (6)
-
Chris Adams
-
Douglas Schilling Landgraf
-
Itamar Heim
-
Jorick Astrego
-
Sandro Bonazzola
-
ybronhei