Bug 1298729

Summary: error message should be updated
Product: OKD Reporter: Peter Ruan <pruan>
Component: ocAssignee: Fabiano Franz <ffranz>
Status: CLOSED NOTABUG QA Contact: Wei Sun <wsun>
Severity: low Docs Contact:
Priority: unspecified    
Version: 3.xCC: akostadi, aos-bugs, mmccomas, pruan
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: 2016-01-20 00:28:09 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 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.