Bug 1475659 - Got error message when using `oc get storageclass storageclass_name`
Got error message when using `oc get storageclass storageclass_name`
Status: CLOSED NOTABUG
Product: OpenShift Container Platform
Classification: Red Hat
Component: Storage (Show other bugs)
3.5.0
Unspecified Unspecified
medium Severity medium
: ---
: ---
Assigned To: Hemant Kumar
Jianwei Hou
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-27 02:23 EDT by chaoyang
Modified: 2017-07-27 12:09 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-07-27 11:47:55 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)

  None (edit)
Description chaoyang 2017-07-27 02:23:52 EDT
Description of problem:
When using command `oc get storagelcass storageclass_name` will got error message like Error from server (Forbidden): User "chaoyang@redhat.com" cannot get storage.k8s.io.storageclasses at the cluster scope

Version-Release number of selected component (if applicable):
3.5.5.31
How reproducible:
Always

Steps to Reproduce:
1.Using `oc get storageclass` 
$ oc get storageclass
NAME            TYPE
ebs (default)   kubernetes.io/aws-ebs   
2.Using cli command `oc get storageclass ebs` 
oc get storageclass ebs
Error from server (Forbidden): User "chaoyang" cannot get storage.k8s.io.storageclasses at the cluster scope

Actual results:
Got error message like Error from server (Forbidden): User "chaoyang" cannot get storage.k8s.io.storageclasses at the cluster scope

Expected results:
Should display the storageclass name and type info


Master Log:

Node Log (of failed PODs):

PV Dump:

PVC Dump:

StorageClass Dump (if StorageClass used by PV/PVC):

Additional info:
This is fixed accroding to https://bugzilla.redhat.com/show_bug.cgi?id=1449608#c4
Comment 1 Bradley Childs 2017-07-27 11:47:55 EDT
This was fixed in 3.6 and not added to 3.6..

If this is a request for backport please re-open and supply justification.
Comment 2 Bradley Childs 2017-07-27 12:09:24 EDT
> This was fixed in 3.6 and not added to 3.6..

This was fixed in 3.6 and not back ported to 3.5.. Sorry about the typo.

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