Description of problem: Should not show all HPAs attempting to scale non-existing deployment when only one attempts Version-Release number of selected component (if applicable): oc/OCP v3.9.0-0.20.0 How reproducible: Always Steps to Reproduce: 1. Prepare data as bug https://bugzilla.redhat.com/show_bug.cgi?id=1532289#c7 $ oc new-app openshift/hello-openshift --name myapp $ oc autoscale dc myapp --max=4 $ oc delete dc myapp $ oc status ... Errors: * hpa/myapp is attempting to scale DeploymentConfig/myapp, which doesn't exist ... 2. Prepare another pod controller and hpa, but don't delete the controller $ oc create -f https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/deployment/tc536600/hello-deployment-1.yaml deployment "hello-openshift" created $ oc autoscale deploy hello-openshift --max=4 deployment "hello-openshift" autoscaled 3. Check status $ oc status ... Errors: * hpa/hello-openshift is attempting to scale Deployment/hello-openshift, which doesn't exist * hpa/myapp is attempting to scale DeploymentConfig/myapp, which doesn't exist ... Actual results: 3. It shows: hpa/hello-openshift is attempting to scale Deployment/hello-openshift, which doesn't exist Expected results: 3. It should not show Deployment/hello-openshift not exist Additional info:
Origin PR:https://github.com/openshift/origin/pull/18150
Fixed in v3.9.0-0.22.0. With steps in comment 0, now step 3 only shows: Errors: * hpa/myapp is attempting to scale DeploymentConfig/myapp, which doesn't exist And does not show: hpa/hello-openshift is attempting to scale Deployment/hello-openshift, which doesn't exist