PV attach operation failed with error "googleapi: Error 400: SERVICE_ACCOUNT_ACCESS_DENIED"

Solution Verified - Updated -

Issue

  • PV attachment to the pod is failing with the below mentioned error.
LAST SEEN   TYPE      REASON               OBJECT                                              MESSAGE
3m9s        Warning   FailedAttachVolume   pod/ubi-2eixazap-3-85d9b68f7c-j44ns   AttachVolume.Attach failed for volume "pvc-XXXXX" : googleapi: Error 400: SERVICE_ACCOUNT_ACCESS_DENIED - The user does not have access to service account 'admin-XXXX-@sa121-scale-prod.iam.gserviceaccount.com'.  User: 'admin-XXXX-@sa121-scale-prod.iam.gserviceaccount.com'.  Ask a project owner to grant you the iam.serviceAccountUser role on the service account

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4.x
  • Google Cloud Platform (GCP).

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content