I may have traced the problem to Kubernetes running on RHEL 7 and derivatives. My EC2 instance runs CentOS 7.
Brief recap. When trying to use ‘oc create –f aws-pv.yaml’ to create a Persistent Volume I get this error:
Error from server: error when creating "aws-persistent-volume.yaml": persistentvolumes "pv0001" is forbidden: error querying AWS EBS
volume vol-05dffe55de3ac725db: error querying ec2 for volume info: error listing AWS volumes: UnauthorizedOperation: You are not authorized to perform this operation.
(Btw, I get the same error when I run ‘kubectl create…’)
This error sounds like this error https://github.com/kubernetes/kops/issues/668
which was fixed in code merged with kubernetes:master in November 2016 https://github.com/kubernetes/kops/pull/829
If it’s possible I’m right, then Openshift v1.5.0-alpha.0+3b2bb35 runs a version of Kubernetes earlier than the one containing the fix.
From: Vyacheslav Semushin [mailto:vsemushi redhat com]
P.S. I forgot to mention that that you should check these files on master node(s).
2017-03-25 19:22 GMT+01:00 Vyacheslav Semushin <vsemushi redhat com>:
Slava Semushin | OpenShift