Bug 1534956

Summary: Should not show all HPAs attempting to scale non-existing deployment when only one attempts
Product: OpenShift Container Platform Reporter: Xingxing Xia <xxia>
Component: ocAssignee: Juan Vallejo <jvallejo>
Status: CLOSED CURRENTRELEASE QA Contact: Xingxing Xia <xxia>
Severity: low Docs Contact:
Priority: medium    
Version: 3.9.0CC: aos-bugs, jokerman, mmccomas, smunilla
Target Milestone: ---   
Target Release: 3.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: v3.9.0-0.22.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-13 20:13:38 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:
Embargoed:

Description Xingxing Xia 2018-01-16 10:59:34 UTC
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:

Comment 1 Juan Vallejo 2018-01-17 21:30:40 UTC
Origin PR:https://github.com/openshift/origin/pull/18150

Comment 2 Xingxing Xia 2018-01-22 10:26:43 UTC
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