Bug 841066
Summary: | "rhc domain status" should not show "Your public key is not loaded into a running ssh-agent" when local and remote public key dismatch | ||
---|---|---|---|
Product: | OKD | Reporter: | jizhao |
Component: | oc | Assignee: | Clayton Coleman <ccoleman> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 2.x | CC: | johnp, rmillner, szhou, xtian |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | fork_ami_US2597_US2599_US2813_US2817_US2872_US2816_US2814_209 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-11-06 18:48:51 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
jizhao
2012-07-18 02:53:55 UTC
We don't check sshkeys during domain status in the rewrite. (In reply to comment #2) > Verify this bug according to comment 1. Verify this bug on devenv_2304 Version/Release: devenv_2304 rhc-0.99.5 Steps to verify: 1.Create domain 2.Remove the ssh keys and generate a new pair. $ rm ~/.ssh/id_rsa ~/.ssh/id_rsa.pub $ ssh-keygen -t rsa -f ~/.ssh/id_rsa 3.Run ssh-agent and load the new keys in it $ eval `ssh-agent` $ ssh-add ~/.ssh/id_rsa 4.Run "rhc domain status". Actual results: <------------------------output----------------------------> Loaded suite /usr/bin/rhc-chk Started .....F =============================================================================== Failure: Your public key is not loaded into a running ssh-agent If this is your only error, your connection may still work, depending on your SSH configuration. <false> is not true. test_03_remote_ssh_keys(Test3_SSH) /usr/lib/ruby/gems/1.8/gems/rhc-0.99.5/bin/rhc-chk:400:in `test_03_remote_ssh_keys' 397: require_remote_keys("whether your local SSH keys match the ones in your account") 398: require_agent_keys(false) 399: => 400: assert !(@@remote_pub_keys & [agent_key_fingerprints,libra_public_key].flatten).empty? ,error_for(:pubkey_not_loaded," ") 401: end 402: 403: def test_04_ssh_connect =============================================================================== . Finished in 6.605408 seconds. 7 tests, 9 assertions, 1 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 85.7143% passed 1.06 tests/s, 1.36 assertions/s <----------------------------------------------------> |