KCHVM0090E: Unable to create a password-less libvirt connection to the remote libvirt daemon at host 10.67.161.21 with the user root. Please verify the remote server libvirt configuration. More information: http://libvirt.org/auth.html .
proc is timeout every time although the connection is normal tested by virsh -c uri list and the following script:
novell@bj-ha-1:~> python2
Python 2.7.13 (default, Jan 03 2017, 17:41:54) [GCC] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import shlex, subprocess
>>> command_line = raw_input()
virsh -c qemu+ssh://root@10.67.161.11/system list
>>> args = shlex.split(command_line)
>>> proc = subprocess.Popen(args)
>>> Id Name State
----------------------------------------------------
>>> proc.poll()
0
I think it is a bug.
Error log
KCHVM0090E: Unable to create a password-less libvirt connection to the remote libvirt daemon at host 10.67.161.21 with the user root. Please verify the remote server libvirt configuration. More information: http://libvirt.org/auth.html .
Reason
proc
is timeout every time although the connection is normal tested byvirsh -c uri list
and the following script:There is my patch:
Attention:
shell=False
And I thinkFNULL
is better thanPIPE
in the connection test.Environment: Python: 2.7.13 Kimchi: 2.5.0 from Release tag