Bug 799225

Summary: inconsistent error message appears when removing non-exsit ssh key
Product: OKD Reporter: Meng Bo <bmeng>
Component: PodAssignee: Ravi Sankar <rpenta>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.xCC: bzhao, dmcphers, rmillner
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-05 17:54:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Meng Bo 2012-03-02 07:41:46 UTC
Description of problem:
inconsistent error message appears when removing non-exsit ssh key between multi ssh key existing and single ssh key existing

Version-Release number of selected component (if applicable):
stage

How reproducible:
always

Steps to Reproduce:
1.create new domain
rhc-create-domain -n testdomain
2.try to remove non-exsiting ssh key
rhc-ctl-domain -r test
3.add a valid ssh key to the domain
rhc-ctl-domain -a key1 -k .ssh/libra_id_rsa2.pub
4.try to remove non-existing ssh key again
rhc-ctl-domain -r test


Actual results:
inconsistent error message shown between step2 and step4

Expected results:
the error message should be unified.

Additional info:
step2:
[bmeng@localhost ~]$ rhc-ctl-domain -r test
Problem reported from server. Response code was 500.
Re-run with -d for more information.

RESULT:
ERROR: Can't remove all ssh keys for user bmeng+5

step4:
[bmeng@localhost ~]$ rhc-ctl-domain -r test
Problem reported from server. Response code was 500.
Re-run with -d for more information.

RESULT:
ERROR: Key name 'test' doesn't exist for user bmeng+5

Comment 1 Ravi Sankar 2012-03-03 00:24:55 UTC
Fixed.

Comment 2 bzhao 2012-03-05 10:39:03 UTC
Passed verification on current stage..