Bug 1393202 - Should only show filtered PetSet
Summary: Should only show filtered PetSet
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 3.4.0
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: bpeterse
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-09 05:28 UTC by Yadan Pei
Modified: 2017-07-24 14:11 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Prior to this release we did not have a dedicated StatefulSets page. Link on the overview page would then go to the Other Resources page and did not filter. We have added both a StatefulSets list & details page which supports filtering in the same way our other resource list pages do.
Clone Of:
Environment:
Last Closed: 2017-04-12 19:16:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0884 0 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.5 RPM Release Advisory 2017-04-12 22:50:07 UTC

Description Yadan Pei 2016-11-09 05:28:48 UTC
Description of problem:
Clicking pet set link on overview list all PetSets, instead of listing all PetSets, should filter PetSets by labels

Version-Release number of selected component (if applicable):
v3.4.0.23+24b1a58

How reproducible:
Always

Steps to Reproduce:
1.Create 2 petset
# oc create -f https://raw.githubusercontent.com/mdshuai/testfile-openshift/master/petset/hello-petset.yaml
# cat >> hello-petset2.yaml << EOF
# A headless service to create DNS records
apiVersion: v1
kind: Service
metadata:
  name: foo2
  labels:
    app: hello-pod2
spec:
  ports:
  - port: 80
    name: web
  # petset domain *.${svc-name}.${ns-name}.svc.cluster.local
  clusterIP: None
  selector:
    app: hello-pod2
---
apiVersion: apps/v1alpha1
kind: PetSet
metadata:
  name: hello-petset2
spec:
  serviceName: "foo2"
  replicas: 2
  template:
    metadata:
      labels:
        app: hello-pod2
      annotations:
        pod.alpha.kubernetes.io/initialized: "true"
    spec:
      terminationGracePeriodSeconds: 0
      containers:
        - image: "docker.io/deshuai/hello-pod:latest"
          imagePullPolicy: IfNotPresent
          name: hello-pod2
          ports:
            - containerPort: 8080
              protocol: TCP 
          resources: {}
          securityContext:
            capabilities: {}
            privileged: false
          terminationMessagePath: /dev/termination-log
          volumeMounts:
            - mountPath: /tmp
              name: tmp 
      dnsPolicy: ClusterFirst
      restartPolicy: Always
      serviceAccount: ""
      volumes:
        - emptyDir: {}
          name: tmp 
EOF
# oc create -f hello-petset2.yaml
2.Go to Overview page
3.Click on Pet Set link on "hello-petset"
4.Click on Pet Set link on "hello-petset2"

Actual results:
3. It redirects to Other Resources page with resource set as "Pet Set", but "hello-petset2" is also shown on page
4. It redirects to Other Resources page with resource set as "Pet Set", but "hello-petset" is also shown on page

Expected results:
3.Should only show "hello-petset"
4.Should only show "hello-petset2"

Additional info:

Comment 1 Jessica Forrester 2016-11-09 13:54:31 UTC
The PetSet won't necessarily have labels on it, so using the label filter may not even help. In 3.5 we are probably implementing actual pages for PetSets. Since PetSets are an alpha feature in 3.4 I'm marking this UpcomingRelease

Comment 2 Jessica Forrester 2016-11-18 21:54:13 UTC
Ben assigning to you since your PetSet story will resolve this

Comment 3 Jessica Forrester 2016-12-09 19:52:11 UTC
Reducing severity since its working as intended right now.

Comment 4 Jessica Forrester 2017-02-20 18:17:30 UTC
This was resolved during 3.5 with the stateful set pages that were added.

https://github.com/openshift/origin-web-console/pull/1088

Comment 5 Troy Dawson 2017-02-24 20:47:11 UTC
This has been merged into ocp and is in OCP v3.5.0.34 or newer.

Comment 7 Yanping Zhang 2017-02-27 03:10:05 UTC
Checked on openshift v3.5.0.34
When create several statefulsets in project, click one statefulset name on overview page, it will jump to this statefulset detail page directly. 
The bug has been fixed, so move it to Verified.

Comment 9 errata-xmlrpc 2017-04-12 19:16:22 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-2017:0884


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