Bug 1741133 - DC doesn't adopt RCs
Summary: DC doesn't adopt RCs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: openshift-controller-manager
Version: 4.2.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.2.0
Assignee: Tomáš Nožička
QA Contact: wewang
URL:
Whiteboard: workloads
Depends On:
Blocks: 1741135 1744486
TreeView+ depends on / blocked
 
Reported: 2019-08-14 10:57 UTC by Tomáš Nožička
Modified: 2019-10-16 06:36 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1741135 (view as bug list)
Environment:
Last Closed: 2019-10-16 06:35:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift openshift-controller-manager pull 15 0 None closed Bug 1741133: Fix DC adoption 2021-02-04 02:48:52 UTC
Github openshift origin pull 22683 0 None closed Bug 1741133: Fix dc adoption 2021-02-04 02:48:52 UTC
Red Hat Product Errata RHBA-2019:2922 0 None None None 2019-10-16 06:36:10 UTC

Description Tomáš Nožička 2019-08-14 10:57:11 UTC
Description of problem:


for any DC this should work:

`oc create -f dc.yaml`

2x `oc rollout latest`

`oc delete -f dc.yaml --cascade=false`

`oc create -f dc.yaml`

dc latest version should be 3

`oc rollout latest` should create rc #4

Comment 2 wewang 2019-08-15 05:39:36 UTC
Verified in version:
4.2.0-0.nightly-2019-08-14-211610

some steps
`oc create -f dc.yaml`
2x `oc rollout latest`

[wewang@Desktop ~]$ oc delete -f deployment.yaml  --cascade=false
deploymentconfig.apps.openshift.io "deployment-simple" deleted
[wewang@Desktop ~]$ oc get dc
No resources found.
[wewang@Desktop ~]$ oc create  -f deployment.yaml 
deploymentconfig.apps.openshift.io/deployment-simple created
[wewang@Desktop ~]$ oc get dc
NAME                REVISION   DESIRED   CURRENT   TRIGGERED BY
deployment-simple   3          1         1         config

[wewang@Desktop ~]$ oc rollout latest deployment-simple
deploymentconfig.apps.openshift.io/deployment-simple rolled out
[wewang@Desktop ~]$ oc get dc
NAME                REVISION   DESIRED   CURRENT   TRIGGERED BY
deployment-simple   4          1         1         config
[wewang@Desktop ~]$ oc get rc
NAME                  DESIRED   CURRENT   READY   AGE
deployment-simple-1   0         0         0       9m57s
deployment-simple-2   0         0         0       8m3s
deployment-simple-3   1         1         1       3m33s
deployment-simple-4   1         1         0       11s

Comment 3 Tomáš Nožička 2019-08-22 09:46:25 UTC
I have to move it back to POST because e2e didn't make it yet (there were PRs in multiple repos)

Comment 5 wewang 2019-09-03 01:57:55 UTC
Already pass in ci:https://prow.svc.ci.openshift.org/view/gcs/origin-ci-test/pr-logs/pull/22683/pull-ci-openshift-origin-master-e2e-aws/12465, verified it
[Feature:DeploymentConfig] deploymentconfigs adoption [Conformance] will orphan all RCs and adopt them back when recreated [Suite:openshift/conformance/parallel/minimal

Comment 6 errata-xmlrpc 2019-10-16 06:35:55 UTC
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.

https://access.redhat.com/errata/RHBA-2019:2922


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