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
OCPBUGS-18986: Tag aws instance profiles. #7510
OCPBUGS-18986: Tag aws instance profiles. #7510
Conversation
@barbacbd: This pull request references Jira Issue OCPBUGS-18986, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/jira refresh |
@barbacbd: This pull request references Jira Issue OCPBUGS-18986, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
on cluster destroy:
/lgtm |
@barbacbd do you know in which version of the provider the instance profile tagging capability was added? We probably want to backport this fix to all supported OCP versions. |
I don't but I will try to find this out so we can backport |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to rename "findUntaggableResources" to "findInstanceProfiles" after this fix? |
I'd say "no". |
That being said, we could probably remove the profile retrieval from |
Should we add the same tag here https://github.com/openshift/installer/blob/master/data/data/aws/bootstrap/main.tf#L83? |
Yeah I think so. WDYT @barbacbd ? |
** Instance profiles are not always cleaned up correctly. Tags are available for these resources. Tag the resources and let the destroy functions find the resources by tag to be removed.
a1f758a
to
9b83b98
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sadasu The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@barbacbd: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
4ce62d1
into
openshift:master
@barbacbd: Jira Issue OCPBUGS-18986: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-18986 has been moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Fix included in accepted release 4.15.0-0.nightly-2023-09-27-073353 |
** Partially overrides openshift#7510 to ensure that instance profiles that are tagged as shared do not get deleted. This fix will be combined with openshift#7510 to ensure that the solution can be backported.
** Partially overrides openshift#7510 to ensure that instance profiles that are tagged as shared do not get deleted. This fix will be combined with openshift#7510 to ensure that the solution can be backported.
** Partially overrides openshift#7510 to ensure that instance profiles that are tagged as shared do not get deleted. This fix will be combined with openshift#7510 to ensure that the solution can be backported.
** Partially overrides openshift#7510 to ensure that instance profiles that are tagged as shared do not get deleted. This fix will be combined with openshift#7510 to ensure that the solution can be backported.
** Partially overrides openshift#7510 to ensure that instance profiles that are tagged as shared do not get deleted. This fix will be combined with openshift#7510 to ensure that the solution can be backported.
** Partially overrides openshift#7510 to ensure that instance profiles that are tagged as shared do not get deleted. This fix will be combined with openshift#7510 to ensure that the solution can be backported.
Fix included in accepted release 4.15.0-0.nightly-2023-10-31-054858 |
requirement Since openshift#7510, IPI installs fail if the permission is missing: ``` level=error msg=Error: creating IAM Instance Profile (ci-op-4hw2rz1v-49c30-zt9vx-worker-profile): AccessDenied: User: arn:aws:iam::301721915996:user/ci-op-4hw2rz1v-49c30-minimal-perm is not authorized to perform: iam:TagInstanceProfile on resource: arn:aws:iam::301721915996:instance-profile/ci-op-4hw2rz1v-49c30-zt9vx-worker-profile because no identity-based policy allows the iam:TagInstanceProfile action ```
requirement Since openshift#7510, IPI installs fail if the permission is missing: ``` level=error msg=Error: creating IAM Instance Profile (ci-op-4hw2rz1v-49c30-zt9vx-worker-profile): AccessDenied: User: arn:aws:iam::301721915996:user/ci-op-4hw2rz1v-49c30-minimal-perm is not authorized to perform: iam:TagInstanceProfile on resource: arn:aws:iam::301721915996:instance-profile/ci-op-4hw2rz1v-49c30-zt9vx-worker-profile because no identity-based policy allows the iam:TagInstanceProfile action ```
…ment Since openshift#7510, IPI installs fail if the permission is missing: ``` level=error msg=Error: creating IAM Instance Profile (ci-op-4hw2rz1v-49c30-zt9vx-worker-profile): AccessDenied: User: arn:aws:iam::301721915996:user/ci-op-4hw2rz1v-49c30-minimal-perm is not authorized to perform: iam:TagInstanceProfile on resource: arn:aws:iam::301721915996:instance-profile/ci-op-4hw2rz1v-49c30-zt9vx-worker-profile because no identity-based policy allows the iam:TagInstanceProfile action ```
** Instance profiles are not always cleaned up correctly. Tags are available for these resources. Tag the resources and let the destroy functions find the resources by tag to be removed.