Actions
Bug #19017
closedupdate_inventory.py ignores 'User' in ssh config
Status:
Can't reproduce
Priority:
Urgent
Assignee:
-
Category:
-
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):
Description
dgalloway@w541 ~ ()$ cat .ssh/config host *.ceph.redhat.com User dgalloway StrictHostKeyChecking false UserKnownHostsFile /dev/null dgalloway@w541 ~ ()$ teuthology-update-inventory -v clara002.ceph.redhat.com 2017-02-22 13:30:24,089.089 DEBUG:teuthology.orchestra.connection:{'username': None, 'hostname': 'clara002.ceph.redhat.com', 'timeout': 60} 2017-02-22 13:30:24,433.433 INFO:teuthology.orchestra.run.clara002:Running: 'true' 2017-02-22 13:30:24,819.819 INFO:teuthology.orchestra.run.clara002:Running: 'hostname --fqdn' 2017-02-22 13:30:24,965.965 INFO:teuthology.orchestra.run.clara002.stdout:clara002.ceph.redhat.com 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
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.
Actions