Red Hat Bugzilla – Bug 1298729
error message should be updated
Last modified: 2016-01-19 19:28:09 EST
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):
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
"east" already exists
pods "east" is forbidden: pod node label selector conflicts with its project node label selector
it turned out it's a false error as I've done the wrong step.