-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"code: 403, message: Authentication failure" when using the provider #91
Comments
Sounds like you did everything right to setup service account and impersonation. |
Hi @okrause , thanks a lot for your answer ! I tried to perform a
I was not sure if the right role to set was "NetApp Cloud Volumes Admin" or "Google Cloud NetApp Volumes Admin", so I added both in the GUI, could this be an issue ? I also added the right "editor" to the service account to make sure it was not missing any permissions, but it does not seems to help. Is there any other command I could try to find what could be the issue ? Thanks again ! |
role: roles/netappcloudvolumes.admin is the right one. You are using Cloud NetApp Volume, correct? Check with:
You need to grant roles/iam.serviceAccountTokenCreator to your user on the service account.
|
Indeed, I had forgotten to perform the
But I still get the same authentication error... (I try after performing the Just to make sure, I am trying to create Google Cloud NetApp Volumes, directly in GCP, without using the NetApp Cloud Volumes Service. Am I right when I assume this is possible with this provider ? Thanks again ! |
HI,
I am sorry if this is an obvious question, but I did not manage to find any answer in this provider or GGP documentation. I am trying to use this provider to create a storage spool and some volumes on GCP.
I created a Kubernetes Cluster with terraform, logged in as a user via the
gcloud
client, without any issue. My user is "Owner" on my project, since this is a dev project, I did not care for excessive rights.As I understood, to use the netapp gcp provider, I needed to create a
service account
on my project. So I created one, and gave him theNetApp Cloud Volumes Admin
Role. I made sure my gcloud user can impersonate this service account by adding theService Account Token Creator
to my user, and so I can now create storage pools and volumes with gcloud commands, using the--impersonate-service-account
option.But when I try to use this service account to create pools and volumes via terraform, it fails with this error (here in debug mode) :
My terraform file is like this:
As you can see commented out, I tried to provide the path to the service account keys json file, or the name of the service account, with the same result.
I am guessing there is something wrong with the way I defined my service account ? But it is strange that it seems to be ok when using the
gcloud
client.Thanks a lot in advance for any help !
The text was updated successfully, but these errors were encountered: