Bug 1741133

Summary: DC doesn't adopt RCs
Product: OpenShift Container Platform Reporter: Tomáš Nožička <tnozicka>
Component: openshift-controller-managerAssignee: Tomáš Nožička <tnozicka>
Status: CLOSED ERRATA QA Contact: wewang <wewang>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.2.0CC: aos-bugs, bparees, mfojtik
Target Milestone: ---   
Target Release: 4.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: workloads
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1741135 (view as bug list) Environment:
Last Closed: 2019-10-16 06:35:55 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:
Bug Depends On:    
Bug Blocks: 1741135, 1744486    

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