Bug 1534956 - Should not show all HPAs attempting to scale non-existing deployment when only one attempts
Summary: Should not show all HPAs attempting to scale non-existing deployment when onl...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 3.9.0
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: 3.9.0
Assignee: Juan Vallejo
QA Contact: Xingxing Xia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-16 10:59 UTC by Xingxing Xia
Modified: 2018-06-18 18:28 UTC (History)
4 users (show)

Fixed In Version: v3.9.0-0.22.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-06-13 20:13:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.