Description of problem:
When user doesn't have a project, storage class page will not show cluster storage classes, it's better if we can show it because every user has ability to view them no matter he/she has project or not
Version-Release number of selected component (if applicable):
registry.dev.redhat.io/openshift3/ose-console v3.11.0 20856b6879509 283MB
Steps to Reproduce:
1.Check if cluster has storageclass created
# oc get sc
NAME PROVISIONER AGE
standard (default) kubernetes.io/cinder 4h
2.A user without projects login to admin console
3.Go to Storage -> Storage Classes page
3. No Storage Class is listed on page
3. cluster-wide resource sc/standard should be listed on page although user don't have projects
Since we're showing roles on the roles page, we should probably be consistent here. I notice as well we are in fact fetching the data even if we're showing a "fake" list, so we already have the storage classes.
$ oc get clusterversion
NAME VERSION AVAILABLE PROGRESSING SINCE STATUS
version 4.0.0-0.nightly-2019-01-15-010905 True False 44m Cluster version is 4.0.0-0.nightly-2019-01-15-010905
$ oc get pods openshift-console-76d9f7dc54-6hgs6 -n openshift-console -o yaml | grep -i image
$ sudo podman images
registry.svc.ci.openshift.org/ocp/4.0-art-latest-2019-01-15-010905@sha256 ba056d05b2b7005fdba3de4deefcd14c2ce91e1b7878b63f32ac72caa6ce3a01 4043d65804a8 6 hours ago 261 MB
$ sudo podman inspect 4043d65804a8
"maintainer": "Samuel Padgett <firstname.lastname@example.org>",
"summary": "Provides the latest release of Red Hat Enterprise Linux 7 in a fully featured and supported base image.",
"vendor": "Red Hat, Inc.",
$ cd $GOPATH/src/github.com/openshift/console & git pull
$ git log a62eaa43f2aab9a817a3fb66e1c8b88d5ef100da | grep '#708' // it shows PR is included in this 4.0.0-0.nightly-2019-01-15-010905 build
Merge pull request #708 from TheRealJon/refactor-new-user-experience
but when a fresh new(no project) user logins to cluster console, goes to Storage -> Storage Classes page, it still shows "No Storage Classes Found"
Follow on fix: https://github.com/openshift/console/pull/1468
A fresh new user logins to admin console, visit Storage -> Storage Classes page, it shows existing storage class on page
verified on 4.1.0-0.nightly-2019-05-04-210601
console commit: https://github.com/openshift/console/commit/47f5e8e4a15303a15f138070753ab41c3e8fac3c
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.