Description of problem: PVs are dynamically provisioned with incorrect/inaccurate AccessModes Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. Create a PVC asking for RWM AccessModes from a provisioner that can only do RWO (e.g. AWS EBS) 2. PV is created with RWM AccessModes 3. PV can't be used as RWM because it's an AWS EBS disk. Actual results: PV is created with incorrect AccessModes Expected results: PV is not created with incorrect AccessModes, provisioning should fail
https://github.com/openshift/origin/pull/14705
This is passed on oc v3.6.126.1 kubernetes v1.6.1+5115d708d7 features: Basic-Auth GSSAPI Kerberos SPNEGO Server https://ip-172-18-4-64.ec2.internal:8443 openshift v3.6.126.1 kubernetes v1.6.1+5115d708d7 [root@ip-172-18-4-64 ~]# oc get pvc NAME STATUS VOLUME CAPACITY ACCESSMODES STORAGECLASS AGE ebsc Pending gp2 3s [root@ip-172-18-4-64 ~]# oc describe pvc ebsc Name: ebsc Namespace: default StorageClass: gp2 Status: Pending Volume: Labels: <none> Annotations: volume.beta.kubernetes.io/storage-provisioner=kubernetes.io/aws-ebs Capacity: Access Modes: Events: FirstSeen LastSeen Count From SubObjectPath Type Reason Message --------- -------- ----- ---- ------------- -------- ------ ------- 11s 7s 2 persistentvolume-controller Warning ProvisioningFailed Failed to provision volume with StorageClass "gp2": invalid AccessModes [ReadWriteMany]: only AccessModes [ReadWriteOnce] are supported [root@ip-172-18-4-64 ~]# oc get pvc NAME STATUS VOLUME CAPACITY ACCESSMODES STORAGECLASS AGE ebsc Pending gp2 6m ebsc1 Pending gp2 4s [root@ip-172-18-4-64 ~]# oc describe pvc ebsc1 Name: ebsc1 Namespace: default StorageClass: gp2 Status: Pending Volume: Labels: <none> Annotations: volume.beta.kubernetes.io/storage-provisioner=kubernetes.io/aws-ebs Capacity: Access Modes: Events: FirstSeen LastSeen Count From SubObjectPath Type Reason Message --------- -------- ----- ---- ------------- -------- ------ ------- 9s 9s 1 persistentvolume-controller Warning ProvisioningFailed Failed to provision volume with StorageClass "gp2": invalid AccessModes [ReadOnlyMany]: only AccessModes [ReadWriteOnce] are supported
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/RHEA-2017:1716