Skip to content

🐛 Prevent creation of floating IPs when reconcile load balancer in non ACTIVE state#1115

Merged
k8s-ci-robot merged 1 commit intokubernetes-sigs:mainfrom
mercedes-benz:mgrote/reconcile-handle-lb-state
Jan 18, 2022
Merged

🐛 Prevent creation of floating IPs when reconcile load balancer in non ACTIVE state#1115
k8s-ci-robot merged 1 commit intokubernetes-sigs:mainfrom
mercedes-benz:mgrote/reconcile-handle-lb-state

Conversation

@mgrote
Copy link
Contributor

@mgrote mgrote commented Jan 14, 2022

ReconcileLoadBalancer check for appropiate load balancer state implemented to prevent creation of floating ip's for load balancer with states other than ACTIVE.
Documentation link to openstack load balancer states updated.

What this PR does / why we need it:
Reconcilation of load balancers in other states than ACTIVE could cause the creation of unused floating iIPs until the quotas exceeds.
This PR provides a check of the appropriate load balancer state before creating other resources.

Which issue(s) this PR fixes:
Fixes #1114

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 the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 14, 2022
@linux-foundation-easycla
Copy link

CLA Not Signed

@k8s-ci-robot
Copy link
Contributor

Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA.

It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.


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.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label Jan 14, 2022
@netlify
Copy link

netlify bot commented Jan 14, 2022

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

🔨 Explore the source changes: b8da8f4

🔍 Inspect the deploy log: https://app.netlify.com/sites/kubernetes-sigs-cluster-api-openstack/deploys/61e522897300ab00077f3014

😎 Browse the preview: https://deploy-preview-1115--kubernetes-sigs-cluster-api-openstack.netlify.app

@k8s-ci-robot
Copy link
Contributor

Welcome @mgrote!

It looks like this is your first PR to kubernetes-sigs/cluster-api-provider-openstack 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-sigs/cluster-api-provider-openstack has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot
Copy link
Contributor

Hi @mgrote. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jan 14, 2022
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jan 14, 2022
@mgrote
Copy link
Contributor Author

mgrote commented Jan 14, 2022

I signed it

@jichenjc
Copy link
Contributor

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jan 17, 2022
…ented to prevent creation of floating ip's for load balancer with states other than ACTIVE.

Documentation link to openstack load balancer states updated.

Signed-off-by: MICHAEL GROTE <michael.grote@daimler.com>
@mgrote mgrote force-pushed the mgrote/reconcile-handle-lb-state branch from 16c2af1 to b8da8f4 Compare January 17, 2022 08:02
@linux-foundation-easycla
Copy link

CLA Not Signed

@mgrote
Copy link
Contributor Author

mgrote commented Jan 17, 2022

I signed it

2 similar comments
@mgrote
Copy link
Contributor Author

mgrote commented Jan 17, 2022

I signed it

@mgrote
Copy link
Contributor Author

mgrote commented Jan 17, 2022

I signed it

@seanschneeweiss
Copy link
Contributor

/check-cla

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Jan 17, 2022
@jichenjc
Copy link
Contributor

/approve

not sure we need keep creating the LB when first try failed.. seems reasonable to check ACTIVE before any other actions

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jichenjc, mgrote

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 18, 2022
@seanschneeweiss
Copy link
Contributor

seanschneeweiss commented Jan 18, 2022

/lgtm
congratulations on your first PR for CAPO 😃
I only lgtm as Michael is from the same team.

@seanschneeweiss
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 18, 2022
@mgrote
Copy link
Contributor Author

mgrote commented Jan 18, 2022

/unhold

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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

4 participants