Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1529473 - `oc idle` fails to work for endpoints to rc/rs/deploy
`oc idle` fails to work for endpoints to rc/rs/deploy
Product: OpenShift Container Platform
Classification: Red Hat
Component: Command Line Interface (Show other bugs)
Unspecified Unspecified
high Severity high
: ---
: 3.9.0
Assigned To: Solly Ross
Xingxing Xia
: Regression, TestBlocker
Depends On:
Blocks: 1519991
  Show dependency treegraph
Reported: 2017-12-28 04:27 EST by Xingxing Xia
Modified: 2018-03-28 10:17 EDT (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2018-03-28 10:17:25 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0489 None None None 2018-03-28 10:17 EDT

  None (edit)
Description Xingxing Xia 2017-12-28 04:27:51 EST
Description of problem:
`oc idle` fails to work for endpoints to rc/rs/deploy and shows message "unable to find controller for pod"
It can work for dc

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
Create rc and svc
$ oc create -f https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/rc/idle-rc-1.yaml
replicationcontroller "hello-idle" created
service "hello-idle" created

After pod becomes running, run `oc idle`
$ oc idle hello-idle

2. Create rs and svc
$ vi rs.yaml
apiVersion: extensions/v1beta1
kind: ReplicaSet
    tier: frontend
  name: frontend
  replicas: 1
      tier: frontend
        tier: frontend
      - image: openshift/hello-openshift
        name: hello-openshift
        - containerPort: 8080
          protocol: TCP

$ oc create -f rs.yaml
$ oc expose rs/frontend

After pod becomes running, run `oc idle`
$ oc idle frontend

3. Create deployment and svc
$ oc create -f https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/deployment/tc536600/hello-deployment-1.yaml
$ oc expose deploy/hello-openshift

After pod becomes running, run `oc idle`
$ oc idle hello-openshift

Actual results:
`oc idle` fails to work for endpoints to rc/rs/deploy and shows message like:
error: no valid scalable resources found to idle: unable to calculate scalable resources for service xxia-proj/hello-idle: unable to find controller for pod xxia-proj/hello-idle-24mn8: no creator reference listed

Expected results:
`oc idle` should succeed

Additional info:
Comment 1 DeShuai Ma 2018-01-16 03:01:28 EST
The `kubernetes.io/created-by` annotation is removed in 1.9, upstream pr: https://github.com/kubernetes/kubernetes/pull/54445
it switch to ownerReferences in pod metadata
Comment 2 Meng Bo 2018-01-17 02:13:06 EST
The bug is blocking the idle related feature testing.
Comment 3 Jordan Liggitt 2018-01-17 10:47:43 EST
see https://github.com/openshift/origin/issues/17798
Comment 4 Seth Jennings 2018-01-17 16:02:36 EST
Origin PR:
Comment 6 Xingxing Xia 2018-01-23 00:10:35 EST
Tested in v3.9.0-0.22.0, now `oc idle` can idle dc and rc/rs/deploy as well
Comment 9 errata-xmlrpc 2018-03-28 10:17:25 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


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