Bug 1926547
Summary: | OpenShift installer not reporting IAM permission issue when removing the Shared Subnet Tag | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | aygarg |
Component: | Installer | Assignee: | Russell Teague <rteague> |
Installer sub component: | openshift-installer | QA Contact: | Yunfei Jiang <yunjiang> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | medium | ||
Priority: | medium | CC: | akretzsc, echen, mstaeble, rteague, tsze, yunjiang |
Version: | 4.6 | ||
Target Milestone: | --- | ||
Target Release: | 4.8.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Cause: Results from untagging resources were not being checked for errors.
Consequence: Shared resources were not being untagged but the logging indicated they were.
Fix: Checking the results for untagging errors and logging the error.
Result: Logs correctly indicate the status of untagging shared resources.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2021-07-27 22:42:29 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
aygarg
2021-02-09 02:41:50 UTC
The destroyer should be looking at the response from the call to UntagResources to see which resources could not be untagged. https://github.com/openshift/installer/blob/c0489117068cb00c5222bb0762a87605f41ebe04/pkg/destroy/aws/aws.go#L2078 In addition to having the tag:UnTagResource permission required to un-tag using the tagging API, we also need permission to delete tags in the service of the resource. From https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/API_UntagResources.html, > To remove tags from a resource, you need the necessary permissions for the service that the resource belongs to as well as permissions for removing tags. We will take a look at this during this sprint. verified. PASS. OCP version: 4.8.0-0.nightly-2021-05-21-233425 ``` INFO Removed tag kubernetes.io/cluster/yunjiang-bz547-p2n2g: shared arn=arn:aws:ec2:us-east-2:301721915996:subnet/subnet-0dd122200922d13e3 INFO Removed tag kubernetes.io/cluster/yunjiang-bz547-p2n2g: shared arn=arn:aws:ec2:us-east-2:301721915996:subnet/subnet-05619e9c7817ba6f9 ``` 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 (Moderate: OpenShift Container Platform 4.8.2 bug fix and security 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/RHSA-2021:2438 |