Bug 819833 - wrong exit code when destroying domain with non-exist name
Summary: wrong exit code when destroying domain with non-exist name
Keywords:
Status: CLOSED DUPLICATE of bug 811221
Alias: None
Product: OKD
Classification: Red Hat
Component: Pod
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: Krishna Raman
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-08 10:24 UTC by Meng Bo
Modified: 2015-05-15 01:53 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-05-08 11:48:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Meng Bo 2012-05-08 10:24:27 UTC
Description of problem:
destroy domain with non-exist name will get exit code 0,

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

How reproducible:
always

Steps to Reproduce:
1.create domain 
rhc domain create -n testdomain
2.destroy domain with non-existed name
rhc domain destroy -n testdomainnew
  
Actual results:
exit code 0 returned, and domain did not be destroyed.

Expected results:
other exit code returned.

Additional info:
[root@localhost openshift]# rhc domain destroy -n ttt -d
Password: 
Submitting form:
namespace: ttt
delete: true
rhlogin: bmeng+auto2
Contacting https://ec2-23-21-35-107.compute-1.amazonaws.com
Problem reported from server. Response code was 400.

DEBUG:


Exit Code: 0
broker_c: namespacerhloginsshapp_uuiddebugaltercartridgecart_typeactionapp_nameapi
api_c: placeholder
API version:    1.1.3

RESULT:
Cannot alter or remove namespace ttt. Namespace does not exist.

Comment 1 Xiaoli Tian 2012-05-08 11:48:52 UTC

*** This bug has been marked as a duplicate of bug 811221 ***


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