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

🐛 Only delete all ports when deleting cluster network #1680

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

mdbooth
Copy link
Contributor

@mdbooth mdbooth commented Sep 25, 2023

What this PR does / why we need it:
Change #1260 was added as a stop-gap to clean up after errors in the machine controller which left dangling ports in the cluster network. These dangling ports prevent the deletion of the network. It works by deleting all ports in the cluster network.

This makes sense when the cluster network is about to be deleted, but not when the cluster network is a BYO network with non-CAPO managed resources in it. We should not call this method on a BYO network.

Fixes #1679

/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 25, 2023
@netlify
Copy link

netlify bot commented Sep 25, 2023

Deploy Preview for kubernetes-sigs-cluster-api-openstack ready!

Name Link
🔨 Latest commit 7c9b173
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-cluster-api-openstack/deploys/6511a4b353e2010008713224
😎 Deploy Preview https://deploy-preview-1680--kubernetes-sigs-cluster-api-openstack.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Sep 25, 2023
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mdbooth

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Sep 25, 2023
@mdbooth
Copy link
Contributor Author

mdbooth commented Sep 25, 2023

@lentzi90 Assuming this merges I'd like to backport it to v0.8. What do you think?

@lentzi90
Copy link
Contributor

@lentzi90 Assuming this merges I'd like to backport it to v0.8. What do you think?

Makes sense to me!

Copy link
Contributor

@lentzi90 lentzi90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 26, 2023
@mdbooth
Copy link
Contributor Author

mdbooth commented Sep 26, 2023

/hold cancel
/cherry-pick release-0.8

@k8s-infra-cherrypick-robot

@mdbooth: once the present PR merges, I will cherry-pick it on top of release-0.8 in a new PR and assign it to you.

In response to this:

/hold cancel
/cherry-pick release-0.8

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.

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 26, 2023
@k8s-ci-robot k8s-ci-robot merged commit 3a621fb into kubernetes-sigs:main Sep 26, 2023
@k8s-infra-cherrypick-robot

@mdbooth: new pull request created: #1683

In response to this:

/hold cancel
/cherry-pick release-0.8

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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cluster controller tries to delete all ports on BYO network
4 participants