Bug 1369399

Summary: dry run with oc create resourcequota indicates that the resource is created
Product: OKD Reporter: XiaochuanWang <xiaocwan>
Component: ocAssignee: Juan Vallejo <jvallejo>
Status: CLOSED CURRENTRELEASE QA Contact: Xingxing Xia <xxia>
Severity: low Docs Contact:
Priority: medium    
Version: 3.xCC: aos-bugs, jvallejo, mmccomas, wmeng
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-09 21:50:14 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:

Description XiaochuanWang 2016-08-23 10:03:42 UTC
Description of problem:
# oc create quota quota --hard=pods=10  --dry-run
resourcequota "quota" created
The output indicating the resource is created however acutally resourcequota "quota" is not created at all 

Version-Release number of selected component (if applicable):
oc v1.3.0-alpha.3+523a02f

How reproducible:
Always

Steps to Reproduce:
1.# oc create quota quota --hard=pods=10  --dry-run
resourcequota "quota" created
2. # oc get resourcequota -> the resourcequota "quota" is not actually created

Actual results:
1. resourcequota "quota" created
The output is misleading

Expected results:
2. Should give correct info when resource is not created

Additional info:

Comment 1 Juan Vallejo 2016-08-29 13:42:57 UTC
Related PR: https://github.com/openshift/origin/pull/10599

Comment 2 XiaochuanWang 2016-10-26 01:55:53 UTC
Verified on latest origin (oc v1.4.0-alpha.0+b5156c2)

# oc create quota quota --hard=pods=10  --dry-run -n xiaocwan-t
resourcequota "quota" created (dry run)
# oc get resourcequota
=> <nothing output>