Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1449908 - ReplicaSet is missing from Overview when deployment is deleted with cascade false
ReplicaSet is missing from Overview when deployment is deleted with cascade f...
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console (Show other bugs)
3.5.0
Unspecified Unspecified
medium Severity medium
: ---
: ---
Assigned To: Samuel Padgett
XiaochuanWang
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-05-11 02:53 EDT by XiaochuanWang
Modified: 2017-08-16 15 EDT (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
When a deployment is deleted using the `--cascade=false` flag oc delete deployment/my-deploymnet --cascade=false the replica sets for that deployment are not deleted. Previously these replica sets were hidden on the web console overview. Now the orphaned replica sets will show up as standalone replica sets on the overview page.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-08-10 01:23:08 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
When dc is deleted with --cascade=false, the left rc could be displayed well on Overview page. (31.43 KB, image/png)
2017-05-11 02:53 EDT, XiaochuanWang
no flags Details
rs displays on overview (47.56 KB, image/png)
2017-06-05 02:37 EDT, XiaochuanWang
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2017:1716 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.6 RPM Release Advisory 2017-08-10 05:02:50 EDT

  None (edit)
Description XiaochuanWang 2017-05-11 02:53:07 EDT
Created attachment 1277758 [details]
When dc is deleted with --cascade=false, the left rc could be displayed well on Overview page.

Description of problem:
Create deployment with replicaSet, then delete deployment by oc(cascade false) and leave with orphaned replicaSet, it's missing from Overview page.

Version-Release number of selected component (if applicable):
Openshift/oc v3.5.5.10

How reproducible:
Always

Steps to Reproduce:
1.Create a Deployment with replicaSets by oc for import from web-console
# cat >> hello-deployment-1.yaml << EOF
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: hello-openshift
spec:
  replicas: 4
  template:
    metadata:
      labels:
        app: hello-openshift
    spec:
      containers:
      - name: hello-openshift
        image: openshift/hello-openshift
        ports:
        - containerPort: 80
  strategy:
    rollingUpdate:
      maxSurge: 3
      maxUnavailable: 2
    type: RollingUpdate
EOF
2. oc get all: existed resources include rs/hello-openshift-2049296760
# oc delete deployment hello-openshift --cascade=false
deployment "hello-openshift" deleted
3. # oc get rs
NAME                         DESIRED   CURRENT   READY     AGE
hello-openshift-2049296760   4         4         4         18m
4. Check Overview page


Actual results:
4. ReplicaSet is missing from Overview page

Expected results:
4. ReplicaSet "hello-openshift-2049296760" should display on Overview

Additional info:
1) A standalone ReplicaSet does not reproduce by:
oc create -f https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/replicaSet/tc536594/replicaset-with-two-containers.yaml
2) Before deployment is deleted, replicaSet with deployment together only show deployment in Overview.
3) When dc is deleted with --cascade=false, the left rc could be displayed well on Overview page. Eg. $ oc run mydc --image=aosqe/hello-openshift  (wait for the pod running) $ oc delete dc mydc  --cascade=false (refer to screenshot "orphaned_rc.png")
Comment 1 Jessica Forrester 2017-05-11 06:47:53 EDT
I'm guessing it's just because we haven't switched yet to looking at ownerRef to decide if a replicaSet should be shown or rolled up. Unlike with a DC, when a Deployment is deleted the remaining RSes don't have the name of the deployment anymore. So the behavior will still be different, we will have to show all the orphaned RSes.
Comment 3 Jessica Forrester 2017-05-11 10:23:59 EDT
We can't merge the fix for this until the oadm migrate story is complete for ownerRefs
Comment 4 Samuel Padgett 2017-05-17 12:17:25 EDT
Opened a separate PR for only this bug since #1538 is blocked. The new PR is

https://github.com/openshift/origin-web-console/pull/1553
Comment 5 openshift-github-bot 2017-05-18 10:30:40 EDT
Commit pushed to master at https://github.com/openshift/origin-web-console

https://github.com/openshift/origin-web-console/commit/f4abfc21bbb2fda30876b11abd6d60708dbac23b
Bug 1449908 - Group replica sets by owner reference

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1449908

Use owner references to decide if a replica set is owned by a
deployment. Change maps to use deployment UID instead of deployment
name. This avoids problems when a deployment is deleted and another is
created with the same name.
Comment 7 XiaochuanWang 2017-06-05 02:37 EDT
Created attachment 1284910 [details]
rs displays on overview

Verified on
OpenShift Master:     v3.6.94
Kubernetes Master:    v1.6.1+5115d708d7 
oc v3.6.94

Please refer to the screenshot "rs displays on overview"
Comment 8 XiaochuanWang 2017-07-17 02:10:27 EDT
QE assign it back
Comment 10 errata-xmlrpc 2017-08-10 01:23:08 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.

https://access.redhat.com/errata/RHEA-2017:1716

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