Bug 1464036
Summary: | [DOCS] Could not use label selector to pvc and pv when there is default storageclass | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Chao Yang <chaoyang> |
Component: | Documentation | Assignee: | Gaurav Nelson <gnelson> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Jianwei Hou <jhou> |
Severity: | medium | Docs Contact: | Vikram Goyal <vigoyal> |
Priority: | medium | ||
Version: | 3.6.0 | CC: | aos-bugs, jokerman, lxia, mmccomas |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-07-19 00:00:53 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: |
Description
Chao Yang
2017-06-22 10:18:47 UTC
This is currently expected behavior. Labels, selectors and storage-class are mutually exclusive by design currently. There is RFE to change this behavior in 3.8 (the title is a little off, but the feature is here): https://trello.com/c/lbxSAqUb/406-list-allowed-selectors-in-storageclass-list-allowed-keys13 Closing this bug for now. When a default storage class is configured, the PVC must explicitly ask for storage class "" via annotation or storageclassname field in order to get bound to PV with blank storage class. This is documented upstream but maybe missing from openshift docs. We need to document this behavior. Changes are in PR https://github.com/openshift/openshift-docs/pull/4749 Commit pushed to master at https://github.com/openshift/openshift-docs https://github.com/openshift/openshift-docs/commit/d287bf46653b4c0fe46d291fde5dfc31bb136b74 Merge pull request #4749 from gaurav-nelson/Bug1464036-fixes BZ#1464036-added information about getting a pv with blank storage class |