Bug 1659976
| Summary: | Default storage class shows false even it is true | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Radomir Ludva <rludva> |
| Component: | Management Console | Assignee: | Samuel Padgett <spadgett> |
| Status: | CLOSED ERRATA | QA Contact: | shahan <hasha> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.11.0 | CC: | aos-bugs, jokerman, mmccomas, wsun |
| Target Milestone: | --- | ||
| Target Release: | 3.11.z | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Previously, the 3.11 admin console did not correctly display whether a storage class was the default storage class since it was checking an out-of-date annotation value. The admin console has been updated to use the `storageclass.kubernetes.io/is-default-class=true` annotation, and service classes are now properly marked as default when that value is set.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-02-20 14:11:02 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: | |||
This is fixed in 4.0. Backporting the fix. https://github.com/openshift/console/pull/958 The previous 3.11 PR was replaced with https://github.com/openshift/console/pull/858 StorageClass default status is true when setting storageclass.kubernetes.io/is-default-class: "true" brewregistry.stage.redhat.io/openshift3/ose-console v3.11 21e477ce12d8 3 hours ago 254 MB openshift v3.11.82 verified this bug 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:0326 |
Description of problem: The customer has two storage classes: $ cat glusterfs-storage.yaml apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: annotations: storageclass.kubernetes.io/is-default-class: "true" creationTimestamp: null name: glusterfs-storage selfLink: /apis/storage.k8s.io/v1/storageclasses/glusterfs-storage parameters: resturl: http://heketi-storage.app-storage.svc:8080 restuser: admin secretName: heketi-storage-admin-secret secretNamespace: app-storage provisioner: kubernetes.io/glusterfs reclaimPolicy: Delete volumeBindingMode: Immediate $ cat glusterfs-storage-block.yaml apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: creationTimestamp: null name: glusterfs-storage-block selfLink: /apis/storage.k8s.io/v1/storageclasses/glusterfs-storage-block parameters: chapauthenabled: "true" hacount: "3" restsecretname: heketi-storage-admin-secret-block restsecretnamespace: app-storage resturl: http://heketi-storage.app-storage.svc:8080 restuser: admin provisioner: gluster.org/glusterblock reclaimPolicy: Delete volumeBindingMode: Immediate Cluster Console: Default storageclass always shows false even if I change it to true. Version-Release number of selected component (if applicable): OCP v3.11.43 How reproducible: Create a storage class for example: $ cat mstorageclass.yaml apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: mstorageclass annotations: storageclass.kubernetes.io/is-default-class: "true" provisioner: kubernetes.io/manual $ oc create -f mstorageclass.yaml Steps to Reproduce: 1. OpenShift Console -> Cluster Console -> Storage -> Storage Classes 2. mstorageclass -> Edit Annotations -> [True] => DEFAULT CLASS is false 3. $ oc describe storageclass mstorageclass // shows is default Yes but in Cluster Console is false.. oc describe storageclass mstorageclass Name: mstorageclass IsDefaultClass: Yes Annotations: storageclass.kubernetes.io/is-default-class=true Provisioner: kubernetes.io/manual Parameters: <none> AllowVolumeExpansion: <unset> MountOptions: <none> ReclaimPolicy: Delete VolumeBindingMode: Immediate Events: <none> Expected results: To be true default storage class in cluster console