Skip to content

Conversation

@wking
Copy link
Member

@wking wking commented Oct 6, 2019

This reverts commit 6ae7598, #1268.

That was a workaround to recover from openshift-dev clusters where an in-house pruner is removing instances but not their associated instance profiles. Folks using the installer's destroy code won't need it, and while the risk of accidental name collision is low, I don't think it's worth taking that risk. With this commit, folks using external reapers are responsible for ensuring that they reap instance profiles when they reap instances, and we get deletion logic that is easier to explain to folks mixing multiple clusters in the same account.

@openshift-ci-robot openshift-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Oct 6, 2019
This reverts commit 6ae7598, openshift#1268.

That was a workaround to recover from openshift-dev clusters where an
in-house pruner is removing instances but not their associated
instance profiles.  Folks using the installer's destroy code won't
need it, and while the risk of accidental name collision is low, I
don't think it's worth taking that risk.  With this commit, folks
using external reapers are responsible for ensuring that they reap
instance profiles when they reap instances, and we get deletion logic
that is easier to explain to folks mixing multiple clusters in the
same account.
@wking wking force-pushed the aws-drop-by-name-instance-profile-removal branch from ff166f9 to 7a0e106 Compare October 6, 2019 08:57
@abhinavdahiya
Copy link
Contributor

/cc @eparis

/approve

@jstuever
Copy link
Contributor

This looks good to me... I defer to @eparis per @abhinavdahiya request above.

@eparis
Copy link
Member

eparis commented Oct 14, 2019

Since we now include part of the clusterid in the name the original problem this solved is less painful (the original problem was that it was impossible to install a cluster and extremely difficult to get out of the situation.) While I believe this patch is the wrong thing to do I won't hold it up.

I don't see a reason that the risk of leaving this code would be any different given vpc re-use (which was the reason I was told this was being considered.) We know for a fact that this code cleans up resources for 100's of people in the world. I, at least, know of no problem this code causes.

But if the team believes what's best for our users is to leak resources I don't have the fight in me to disagree.

@abhinavdahiya
Copy link
Contributor

I don't see a reason that the risk of leaving this code would be any different given vpc re-use (which was the reason I was told this was being considered.)

hmm, yeah looking at this more closely i skipped the part of clusterid prefix , we are only deleting resources prefixed with clusterID, which is unique in shared-vpc case too.

So I think i agree with @eparis that this deletion is fine to continue to keep unless we get bugs or requests from users.

/approve cancel

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: wking

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot
Copy link
Contributor

@wking: PR needs rebase.

Details

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.

@openshift-ci-robot openshift-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 17, 2019
@openshift-ci-robot
Copy link
Contributor

@wking: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
ci/prow/e2e-libvirt 7a0e106 link /test e2e-libvirt
ci/prow/tf-lint 7a0e106 link /test tf-lint
ci/prow/shellcheck 7a0e106 link /test shellcheck
ci/prow/tf-fmt 7a0e106 link /test tf-fmt
ci/prow/yaml-lint 7a0e106 link /test yaml-lint
ci/prow/e2e-aws 7a0e106 link /test e2e-aws
ci/prow/e2e-aws-scaleup-rhel7 7a0e106 link /test e2e-aws-scaleup-rhel7
ci/prow/e2e-openstack 7a0e106 link /test e2e-openstack
ci/prow/govet 7a0e106 link /test govet
ci/prow/e2e-aws-upgrade 7a0e106 link /test e2e-aws-upgrade
ci/prow/images 7a0e106 link /test images
ci/prow/gofmt 7a0e106 link /test gofmt
ci/prow/golint 7a0e106 link /test golint
ci/prow/unit 7a0e106 link /test unit
ci/prow/verify-vendor 7a0e106 link /test verify-vendor

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Details

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.

@wking
Copy link
Member Author

wking commented Oct 18, 2019

/close

I'm still not excited about explaining this in docs, but we can always re-open if/when some else prompts us to simplify.

@openshift-ci-robot
Copy link
Contributor

@wking: Closed this PR.

Details

In response to this:

/close

I'm still not excited about explaining this in docs, but we can always re-open if/when some else prompts us to simplify.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants