Bug 819833

Summary: wrong exit code when destroying domain with non-exist name
Product: OKD Reporter: Meng Bo <bmeng>
Component: PodAssignee: Krishna Raman <kraman>
Status: CLOSED DUPLICATE QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: medium    
Version: 2.xCC: mfisher, xtian
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-08 11:48:52 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 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 ***