Bug 1369399 - dry run with oc create resourcequota indicates that the resource is created
Summary: dry run with oc create resourcequota indicates that the resource is created
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: oc
Version: 3.x
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: Juan Vallejo
QA Contact: Xingxing Xia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-23 10:03 UTC by XiaochuanWang
Modified: 2016-12-09 21:50 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-09 21:50:14 UTC
Target Upstream Version:


Attachments (Terms of Use)

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>


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