Bug 1929872

Summary: Occasional GCP install failures: Error setting IAM policy for project ...: googleapi: Error 400: Service account ... does not exist., badRequest
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: InstallerAssignee: Patrick Dillon <padillon>
Installer sub component: openshift-installer QA Contact: Yang Yang <yanyang>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: medium CC: bleanhar, ehashman, jluhrsen, jstuever, mgugino, mstaeble, padillon, rgudimet, skunkerk, tsze, yanyang
Version: 4.6Keywords: UpcomingSprint
Target Milestone: ---   
Target Release: 4.6.z   
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: 2021-03-09 20:16:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1896218    
Bug Blocks:    

Comment 3 Yang Yang 2021-03-02 08:18:49 UTC
Verified with 4.6.0-0.nightly-2021-03-01-051748

While cluster installs, start a loop to create and delete a service account. Eventually, the cluster is installed successfully w/o IAM error.

In one terminal, create and delete a service account
$ while true; do gcloud iam service-accounts create yangyang-bz --display-name="yangyang-bz"; sleep 1; gcloud projects add-iam-policy-binding openshift-qe --member=serviceAccount:yangyang-bz.gserviceaccount.com --role=roles/compute.instanceAdmin; sleep 2; gcloud projects remove-iam-policy-binding openshift-qe --member=serviceAccount:yangyang-bz.gserviceaccount.com --role=roles/compute.instanceAdmin; sleep 1; echo 'Y' | gcloud iam service-accounts delete yangyang-bz.gserviceaccount.com; done

In another terminal, create cluster:
$ openshift-install create cluster

Moving it to verified state.

Comment 5 errata-xmlrpc 2021-03-09 20:16:07 UTC
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 (OpenShift Container Platform 4.6.20 bug fix update), 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/RHBA-2021:0674