Hide Forgot
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
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