Bug 799225 - inconsistent error message appears when removing non-exsit ssh key
Summary: inconsistent error message appears when removing non-exsit ssh key
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Pod
Version: 1.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Ravi Sankar
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-02 07:41 UTC by Meng Bo
Modified: 2012-03-05 17:54 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-05 17:54:03 UTC
Target Upstream Version:


Attachments (Terms of Use)

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..


Note You need to log in before you can comment on or make changes to this bug.