Skip to content

Comments

🐛 Ensure that existing ports also have correct tags and trunks#2356

Merged
k8s-ci-robot merged 1 commit intokubernetes-sigs:release-0.10from
Nordix:lentzi90/ensure-ports-tags-release-0.10
Jan 27, 2025
Merged

🐛 Ensure that existing ports also have correct tags and trunks#2356
k8s-ci-robot merged 1 commit intokubernetes-sigs:release-0.10from
Nordix:lentzi90/ensure-ports-tags-release-0.10

Conversation

@lentzi90
Copy link
Contributor

What this PR does / why we need it:

If port creation fails in the middle, and cleanup also fails, then we may end up with ports with missing tags or trunks. This could happen when hitting rate-limits for example or if there is a network outage. This commit addresses the issue by going through existing ports and ensuring that they have correct tags and trunks.

This is a manual backport of #2256

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

  1. Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

TODOs:

  • squashed commits
  • if necessary:
    • includes documentation
    • adds unit tests

/hold

@k8s-ci-robot k8s-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jan 10, 2025
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jan 10, 2025
@netlify
Copy link

netlify bot commented Jan 10, 2025

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

Name Link
🔨 Latest commit 68e7b13
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-cluster-api-openstack/deploys/679380b649664900088f6bc1
😎 Deploy Preview https://deploy-preview-2356--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.

@lentzi90
Copy link
Contributor Author

Don't merge this yet. We are validating that it does solve the issue internally.

@lentzi90
Copy link
Contributor Author

There was a failure to cleanup docker in docker. All tests passed though.
/test pull-cluster-api-provider-openstack-e2e-test

@EmilienM
Copy link
Contributor

how bad was the merge conflict? I'm curious. Mainly for future backports around this code.

@lentzi90
Copy link
Contributor Author

Not that bad actually. There were a couple of small conflicts due to the introduction of OpenStackServer. Most of it was just that the files didn't exist though. The only thing needed then was to find where the relevant code was before the OpenStackServer existed.

@EmilienM
Copy link
Contributor

/approve
/lgtm
feel free to hold cancel when you think it's ready.

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 14, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: EmilienM

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 14, 2025
@EmilienM
Copy link
Contributor

@lentzi90 what about this one? is it still under testing?

@lentzi90
Copy link
Contributor Author

Yes. It was important to fix but apparently not important enough to test quickly...

@lentzi90 lentzi90 force-pushed the lentzi90/ensure-ports-tags-release-0.10 branch from 722f27d to 45f6b72 Compare January 24, 2025 11:05
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 24, 2025
@lentzi90
Copy link
Contributor Author

Now we have confirmation that it is working. I had missed one thing when doing the backport so had to push again.
This is good to go
/hold cancel

@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 Jan 24, 2025
@lentzi90
Copy link
Contributor Author

Weird... all tests passed locally. Checking

If port creation fails in the middle, and cleanup also fails,
then we may end up with ports with missing tags or trunks.
This could happen when hitting rate-limits for example or
if there is a network outage. This commit addresses the issue
by going through existing ports and ensuring that they have
correct tags and trunks.

Co-authored-by: Huy Mai <huy.mai@est.tech>
Signed-off-by: Lennart Jern <lennart.jern@est.tech>
@lentzi90 lentzi90 force-pushed the lentzi90/ensure-ports-tags-release-0.10 branch from 45f6b72 to 68e7b13 Compare January 24, 2025 11:59
@lentzi90
Copy link
Contributor Author

/cc @EmilienM
This is a manual backport for release-0.10

@k8s-ci-robot k8s-ci-robot requested a review from EmilienM January 27, 2025 15:39
@EmilienM
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 27, 2025
@k8s-ci-robot k8s-ci-robot merged commit fcf6f1f into kubernetes-sigs:release-0.10 Jan 27, 2025
8 of 9 checks passed
@lentzi90 lentzi90 deleted the lentzi90/ensure-ports-tags-release-0.10 branch January 28, 2025 06:13
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/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants