Red Hat Bugzilla – Bug 803651
Not clear description for using rhc-ctl-domain to updating not existing key
Last modified: 2015-05-14 21:48:24 EDT
Description of problem:
It will prompt "Unable to read user public keyfile XX.pub" while you executed rhc-ctl-domain to updating an not existed key
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Call CLI to update a ssh key with no existing specific key-name
# rhc-ctl-domain --update-ssh-key XXX -k XXX.pub -p XXX
It will return "Unable to read user public keyfile XXX.pub"
It should prompt "Key name 'XXX' doesn't exist for user XXX"
The error is triggered because the key file XXX.pub can not be read. It doesn't even get to the point of querying the server for an existing key. Does this happen if you give it a valid key file but non extant key name? Otherwise the error is correct.
Passed verification againt devenv_1704