Description of problem: oc status still shows a line "deployment/ deploys" when hpa exists but its controller deleted This bug is drafted separately per https://bugzilla.redhat.com/show_bug.cgi?id=1540560#c5 Version-Release number of selected component (if applicable): v3.9.0-alpha.4+ffa6a47-270 (OCP new puddle is not ready yet per https://bugzilla.redhat.com/show_bug.cgi?id=1540560#c6 , so paste origin version here) How reproducible: Always Steps to Reproduce: [root@ip-172-18-15-186 ~]# oc create -f https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/deployment/tc536600/hello-deployment-1.yaml deployment "hello-openshift" created [root@ip-172-18-15-186 ~]# oc autoscale deploy hello-openshift --max=4 deployment "hello-openshift" autoscaled [root@ip-172-18-15-186 ~]# oc status In project xxia-proj2 on server https://localhost:8443 deployment/hello-openshift deploys openshift/hello-openshift deployment #1 running for 9 seconds - 4 pods 1 info identified, use 'oc status -v' to see details. [root@ip-172-18-15-186 ~]# oc delete deploy hello-openshift deployment "hello-openshift" deleted [root@ip-172-18-15-186 ~]# oc status In project xxia-proj2 on server https://localhost:8443 deployment/hello-openshift deploys You have no services, deployment configs, or build configs. Run 'oc new-app' to create an application. Actual results: There is a line "deployment/hello-openshift deploys" Expected results: Should have prompt like https://bugzilla.redhat.com/show_bug.cgi?id=1532289#c7 when hpa exists but its controller deleted Additional info:
Origin PR: https://github.com/openshift/origin/pull/18579
In merge queue now, should be available for testing in master tomorrow.
Tested on oc/openshift v3.9.0-0.47.0. There is always an error even before deleting deploy. After deleted deploy, there is an extra prompt "You have no services, deployment configs, or build configs." Before delete deploy: $ oc status [-v] Errors: * hpa/hello-openshift is attempting to scale Deployment/hello-openshift, which doesn't exist After deleted deploy: $ oc status [-v] Errors: * hpa/hello-openshift is attempting to scale Deployment/hello-openshift, which doesn't exist You have no services, deployment configs, or build configs.
Thanks for catching that. Addressed in Origin PR: https://github.com/openshift/origin/pull/18723
Need to wait for new version > v3.9.0-0.53.0
Verified in v3.9.1, now it is fixed with same result as https://bugzilla.redhat.com/show_bug.cgi?id=1532289#c7