Bug 1655894
Summary: | The same access mode show multiple times when show detail of persistent volume | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Liang Xia <lxia> |
Component: | Storage | Assignee: | Bradley Childs <bchilds> |
Status: | CLOSED NOTABUG | QA Contact: | Liang Xia <lxia> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 4.1.0 | CC: | aos-bugs, aos-storage-staff, jsafrane |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | 4.1.0 | ||
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: | 2019-04-29 15:01:11 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
Liang Xia
2018-12-04 08:34:12 UTC
That's unfortunate result of insufficient validation of PVs / PVCs. We cannot harden the validation now because it could refuse objects that are working today and existing applications could fail. We already have that check in k8s, https://github.com/kubernetes/kubernetes/blob/master/pkg/kubectl/util/storage/storage.go#L65 Fixing in the describe command will not break anything that is working today. (In reply to Liang Xia from comment #2) > We already have that check in k8s, > https://github.com/kubernetes/kubernetes/blob/master/pkg/kubectl/util/ > storage/storage.go#L65 removeDuplicateAccessModes() linked above affects only `kubectl get pv` (without -o yaml) and `kubectl describe pv`. We already have that code in `oc get/describe pv`. Upstream `kubectl get pv -o yaml` prints full object as it is in API server, with three access modes: accessModes: - ReadWriteOnce - ReadWriteOnce - ReadWriteOnce |