Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1588590

Summary: [free-stg] label selector for web-console changed between 3.9 and 3.10 - leaves 3.9 pods abandoned
Product: OpenShift Container Platform Reporter: Samuel Padgett <spadgett>
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED CURRENTRELEASE QA Contact: Yadan Pei <yapei>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.9.0CC: aos-bugs, jokerman, jupierce, mmccomas, spadgett, vlaad, wsun, yapei
Target Milestone: ---   
Target Release: 3.9.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Previously, an upgrade from earlier 3.9 versions to the latest 3.9 could result in two copies of the web console replica set running. This happened because the web console deployment label selector was inadvertently changed, causing the old replica set to be orphaned from the deployment. The problem has been fixed, and only one copy of the web console replica set will run.
Story Points: ---
Clone Of: 1584725 Environment:
Last Closed: 2018-09-06 18:25:45 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: 1584725    
Bug Blocks:    

Comment 2 Samuel Padgett 2018-06-07 15:04:07 UTC
Opening this against 3.9 as well since 3.9 GA -> 3.9.z can exhibit the same problem. We backported the fix from 3.10.

Comment 3 Wei Sun 2018-06-08 02:00:10 UTC
The PR has been merged to openshift-ansible-3.10.0-0.61.0,please check

Comment 4 Yadan Pei 2018-06-12 06:37:22 UTC
We need a build > 3.9.30 to verify the fix

Comment 5 Yadan Pei 2018-06-13 03:32:52 UTC
Verification steps:
1.Install 3.9.14 cluster
2.Upgrade to 3.9.31
# openshift version
openshift v3.9.31
kubernetes v1.9.1+a0ce1bc657
etcd 3.2.16
# rpm -q ansible openshift-ansible
ansible-2.4.4.0-1.el7ae.noarch
openshift-ansible-3.9.30-1.git.7.46f8678.el7.noarch
3. Check resources after upgrade
# oc get all --show-labels=true -n openshift-web-console
NAME                DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE       LABELS
deploy/webconsole   1         1         1            1           1h        app=openshift-web-console,webconsole=true

NAME                       DESIRED   CURRENT   READY     AGE       LABELS
rs/webconsole-6b74f5c578   1         1         1         59m       app=openshift-web-console,pod-template-hash=2630917134,webconsole=true
rs/webconsole-6dc44f7974   0         0         0         1h        pod-template-hash=2870093530,webconsole=true

NAME                             READY     STATUS    RESTARTS   AGE       LABELS
po/webconsole-6b74f5c578-fljkd   1/1       Running   0          59m       app=openshift-web-console,pod-template-hash=2630917134,webconsole=true

NAME             TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)   AGE       LABELS
svc/webconsole   ClusterIP   172.30.187.225   <none>        443/TCP   1h        app=openshift-web-console

# oc get rs/webconsole-6b74f5c578 -n openshift-web-console -o yaml | grep image
        image: registry.reg-aws.openshift.com:443/openshift3/ose-web-console:v3.9.31
        imagePullPolicy: IfNotPresent
# oc get rs/webconsole-6dc44f7974 -n openshift-web-console -o yaml | grep image
        image: registry.reg-aws.openshift.com:443/openshift3/ose-web-console:v3.9.14
        imagePullPolicy: IfNotPresent

After upgrade, old(3.9.14) replicasets are scaled down to 0 and no more old pods