Bug 1880132 - GCP destroy leaves members in project IAM policy
Summary: GCP destroy leaves members in project IAM policy
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 4.6
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: 4.6.0
Assignee: Abhinav Dahiya
QA Contact: To Hung Sze
URL:
Whiteboard:
Depends On:
Blocks: 1880134
TreeView+ depends on / blocked
 
Reported: 2020-09-17 18:20 UTC by Abhinav Dahiya
Modified: 2020-10-27 16:42 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1880134 (view as bug list)
Environment:
Last Closed: 2020-10-27 16:42:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift installer pull 4193 0 None closed Bug 1880132: destroy/gcp: correct extract service account email from IAM policy binding member 2020-11-10 16:52:57 UTC
Red Hat Product Errata RHBA-2020:4196 0 None None None 2020-10-27 16:42:33 UTC

Description Abhinav Dahiya 2020-09-17 18:20:23 UTC
Description of problem:

GCP destroy leaves members in project IAM policy. This is because deleted service accounts end up converting the member in IAM policy to deleted:serviceAccount:{emailid}?uid={}

and the installer skips this member. I think there is a delay in service account deleted to the member getting modified and there fore the installer might clean up some of the ones that didn't get converted yet. This race definitely leaks in CI

How reproducible:

Steps to Reproduce:
1. Create cluster on GCP
2. Destroy the cluster
3. Check if all the member entries from project IAM policy has cleaned up.

Comment 2 To Hung Sze 2020-09-22 02:07:33 UTC
don't see any IAM left behind today using 4.6.0-0.nightly-2020-09-21-081745

Comment 5 errata-xmlrpc 2020-10-27 16:42:20 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 GA Images), 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-2020:4196


Note You need to log in before you can comment on or make changes to this bug.