Description of problem: Evict pods failed, and get "message": "Resource was marked with kind Pod but was unable to be converted". Version-Release number of selected component (if applicable): openshift v3.4.0.16+cc70b72 How reproducible: Always Steps to Reproduce: 1.Try to evict existed pod by curl cmd, such as: curl -k -v -X POST -H "Authorization: Bearer $(oc whoami -t)" -H 'Content-type: application/json' https://127.0.0.1:8443/api/v1/namespaces/default/pods/pod-5/eviction -d @eviction.json { "apiVersion": "policy/v1alpha1", "kind": "Eviction", "metadata": { "name": "pod-1", "namespace": "default" } } Actual results: { "kind": "Status", "apiVersion": "v1", "metadata": {}, "status": "Failure", "message": "Resource was marked with kind Pod but was unable to be converted", "reason": "BadRequest", "code": 400 } Expected results: No such messages return, the cmd should be run successful or fail. Additional info:
Fix in https://github.com/openshift/origin/pull/11578 is waiting upstream approval.
Checked with openshift v1.4.0-alpha.0+777e66f-1137, the issue was fixed. Will check with OCP later.
Checked with the OCP latest verion, the issue was fixed. openshift v3.4.0.23+24b1a58 kubernetes v1.4.0+776c994 etcd 3.1.0-rc.0