Bug 1298729 - error message should be updated
Summary: error message should be updated
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OKD
Classification: Red Hat
Component: oc
Version: 3.x
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: ---
Assignee: Fabiano Franz
QA Contact: Wei Sun
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-14 20:33 UTC by Peter Ruan
Modified: 2016-01-20 00:28 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-01-20 00:28:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Peter Ruan 2016-01-14 20:33:17 UTC
Description of problem:
Pod creation should fail when pod's node selector conflicts with project node selector.  It does, however, the error message used to be something like.

pods "east" is forbidden: pod node label selector conflicts with its project node label selector.  Where as currently pods just print '"east" already exists'  It looks like the older message is more appropriate for the situation.

Version-Release number of selected component (if applicable):
oc v1.1-734-gd198868
kubernetes v1.1.0-origin-1107-g4c8e6f4

How reproducible:
always.

Steps to Reproduce:
1. Create a project with node selector region=west
 oc create -f https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/projects/node-selector.json
2. Create a pod with node selector region=east under project in step 1

oc create -f https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/pods/selector-east.json -n jhou

Actual results:

"east" already exists
Expected results:
pods "east" is forbidden: pod node label selector conflicts with its project node label selector

Additional info:

Comment 1 Peter Ruan 2016-01-20 00:28:09 UTC
it turned out it's a false error as I've done the wrong step.


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