Skip to content
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

pkg/destroy/aws: Stop skipping direct network-interface deletion #2460

Conversation

wking
Copy link
Member

@wking wking commented Oct 6, 2019

I'd added this to save on AWS API-call volume in fc70eb2 (#1704). But now that we support user-provided VPCs with installer-provided network interfaces, it's no longer feasible. Happily, the tagged network interfaces are just for installer-created control-plane machines, see 4fcdc1c (#1361). And since cf69c1e (#2169) we are terminating instances first and waiting for their termination to complete before proceeding to other resources. So we should no longer have the long runs of failed network-interface deletion attempts while we wait for the instances to terminate, and this commit should make our removal more robust without increasing our API-call volume.

I'd added this to save on AWS API-call volume in fc70eb2
(pkg/destroy/aws: Skip direct tag deletion for network interfaces,
2019-05-02, openshift#1704).  But now that we support user-provided VPCs with
installer-provided network interfaces, it's no longer feasible.
Happily, the tagged network interfaces are just for installer-created
control-plane machines, see 4fcdc1c (data/aws: explicitly create
the network interface for masters to speed up DNS, 2019-03-04, openshift#1361).
And since cf69c1e (pkg/destroy/aws: Terminate instances before
other resources, 2019-08-06, openshift#2169) we are terminating instances first
and waiting for their termination to complete before proceeding to
other resources.  So we should no longer have the long runs of failed
network-interface deletion attempts while we wait for the instances to
terminate, and this commit should make our removal more robust without
increasing our API-call volume.
@openshift-ci-robot openshift-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Oct 6, 2019
@abhinavdahiya
Copy link
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 7, 2019
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abhinavdahiya, wking

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:
  • OWNERS [abhinavdahiya,wking]

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

@openshift-merge-robot openshift-merge-robot merged commit 83be6cf into openshift:master Oct 7, 2019
@wking wking deleted the aws-skip-direct-network-interface-deletion branch October 7, 2019 19:27
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. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants