Bug #19017
Updated by David Galloway about 7 years ago
<pre> dgalloway@w541 ~ ()$ cat .ssh/config host *.ceph.redhat.com User dgalloway StrictHostKeyChecking false UserKnownHostsFile /dev/null we had seen this before, but after the OS upgrade, it started again dgalloway@w541 ~ ()$ teuthology-update-inventory -v clara002.ceph.redhat.com vasu@magna002:~/teuthology/teuthology/virtualenv/bin$ ./teuthology-update-inventory clara002 clara005 2017-02-20 14:16:57,106.106 ERROR:teuthology.orchestra.connection:Error connecting to clara002 2017-02-22 13:30:24,089.089 DEBUG:teuthology.orchestra.connection:{'username': None, 'hostname': 'clara002.ceph.redhat.com', 'timeout': 60} Traceback (most recent call last): File "/home/vasu/teuthology/teuthology/teuthology/orchestra/connection.py", line 104, in connect ssh.connect(**connect_args) File "/home/vasu/teuthology/teuthology/virtualenv/local/lib/python2.7/site-packages/paramiko/client.py", line 380, in connect look_for_keys, gss_auth, gss_kex, gss_deleg_creds, gss_host) File "/home/vasu/teuthology/teuthology/virtualenv/local/lib/python2.7/site-packages/paramiko/client.py", line 621, in _auth raise saved_exception 2017-02-22 13:30:24,433.433 INFO:teuthology.orchestra.run.clara002:Running: 'true' AuthenticationException: Authentication failed. 2017-02-22 13:30:24,819.819 INFO:teuthology.orchestra.run.clara002:Running: 'hostname --fqdn' 2017-02-20 14:16:58,218.218 ERROR:teuthology.orchestra.connection:Error connecting to clara002 2017-02-22 13:30:24,965.965 INFO:teuthology.orchestra.run.clara002.stdout:clara002.ceph.redhat.com Traceback (most recent call last): File "/home/vasu/teuthology/teuthology/teuthology/orchestra/connection.py", line 104, in connect ssh.connect(**connect_args) File "/home/vasu/teuthology/teuthology/virtualenv/local/lib/python2.7/site-packages/paramiko/client.py", line 380, in connect look_for_keys, gss_auth, gss_kex, gss_deleg_creds, gss_host) File "/home/vasu/teuthology/teuthology/virtualenv/local/lib/python2.7/site-packages/paramiko/client.py", line 621, in _auth raise saved_exception 2017-02-22 13:30:24,966.966 INFO:teuthology.orchestra.run.clara002:Running: 'uname -m' 2017-02-22 13:30:25,143.143 INFO:teuthology.orchestra.run.clara002.stdout:x86_64 2017-02-22 13:30:25,143.143 INFO:teuthology.orchestra.run.clara002:Running: "python -c 'import platform; print platform.linux_distribution()'" 2017-02-22 13:30:25,346.346 INFO:teuthology.orchestra.run.clara002.stdout:('Red Hat Enterprise Linux Server', '7.3', 'Maipo') 2017-02-22 13:30:25,346.346 INFO:teuthology.lock:Updating clara002.ceph.redhat.com on lock server dgalloway@w541 ~ ()$ echo " IdentityFile ~/.ssh/id_rsa_w541" >> ~/.ssh/config dgalloway@w541 ~ ()$ teuthology-update-inventory -v clara002.ceph.redhat.com 2017-02-22 13:31:06,015.015 DEBUG:teuthology.orchestra.connection:{'username': None, 'hostname': 'clara002.ceph.redhat.com', 'key_filename': ['/home/dgalloway/.ssh/id_rsa_w541'], 'timeout': 60} 2017-02-22 13:31:06,339.339 INFO:teuthology.orchestra.run.clara002:Running: 'true' 2017-02-22 13:31:06,751.751 INFO:teuthology.orchestra.run.clara002:Running: 'hostname --fqdn' 2017-02-22 13:31:06,899.899 INFO:teuthology.orchestra.run.clara002.stdout:clara002.ceph.redhat.com 2017-02-22 13:31:06,900.900 INFO:teuthology.orchestra.run.clara002:Running: 'uname -m' 2017-02-22 13:31:07,076.076 INFO:teuthology.orchestra.run.clara002.stdout:x86_64 2017-02-22 13:31:07,077.077 INFO:teuthology.orchestra.run.clara002:Running: "python -c 'import platform; print platform.linux_distribution()'" 2017-02-22 13:31:07,276.276 INFO:teuthology.orchestra.run.clara002.stdout:('Red Hat Enterprise Linux Server', '7.3', 'Maipo') 2017-02-22 13:31:07,277.277 INFO:teuthology.lock:Updating clara002.ceph.redhat.com on lock server </pre> Notice how it respects the IdentityFile parameter but User is still ignored. Although the command passes, this causes problems when trying to ssh as the 'ubuntu' user, for example. AuthenticationException: Authentication failed