Bug 1544183 - [trello Z96KTq9O] oc status still shows a line "deployment/ deploys" when hpa exists but its controller deleted
Summary: [trello Z96KTq9O] oc status still shows a line "deployment/ deploys" when hpa...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 3.9.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 3.9.0
Assignee: Juan Vallejo
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-02-11 06:24 UTC by Xingxing Xia
Modified: 2018-09-11 18:24 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-09-11 18:24:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Xingxing Xia 2018-02-11 06:24:46 UTC
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:

Comment 1 Juan Vallejo 2018-02-12 19:16:36 UTC
Origin PR: https://github.com/openshift/origin/pull/18579

Comment 2 Michal Fojtik 2018-02-13 11:57:50 UTC
In merge queue now, should be available for testing in master tomorrow.

Comment 3 XiaochuanWang 2018-02-22 05:55:38 UTC
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.

Comment 4 Juan Vallejo 2018-02-22 19:36:02 UTC
Thanks for catching that.
Addressed in Origin PR: https://github.com/openshift/origin/pull/18723

Comment 5 XiaochuanWang 2018-02-27 03:30:25 UTC
Need to wait for new version > v3.9.0-0.53.0

Comment 6 Xingxing Xia 2018-02-28 08:01:54 UTC
Verified in v3.9.1, now it is fixed with same result as https://bugzilla.redhat.com/show_bug.cgi?id=1532289#c7


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