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

[occm] LoadBalancer creation fails after service type is reverted due to stale annotations #2751

Open
chnyda opened this issue Dec 16, 2024 · 0 comments · May be fixed by #2752
Open

[occm] LoadBalancer creation fails after service type is reverted due to stale annotations #2751

chnyda opened this issue Dec 16, 2024 · 0 comments · May be fixed by #2752
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@chnyda
Copy link

chnyda commented Dec 16, 2024

Is this a BUG REPORT or FEATURE REQUEST?:

/kind bug

What happened:
If a service was previously of type LoadBalancer, then was switched to another type (for instance NodePort) and the service is switched again to LoadBalancer : the LoadBalancer fails to be created because the LoadBalancer cannot be found (based on the ID from the annotations).

What you expected to happen:
The LoadBalancer should be created without any issue

How to reproduce it:

  • create a svc of type LoadBalancer
  • wait for the LB to be ready
  • switch the svc to ClusterIP or NodePort
  • wait for the LB to be deleted
  • switch against the svc to LoadBalancer
  • It does not work because there are these annotations remaining:
metadata:
  annotations:
    loadbalancer.openstack.org/load-balancer-address: 185.22.97.21
    loadbalancer.openstack.org/load-balancer-id: 5b268775-d01c-487d-83c6-f77308a9500a

Environment:

  • openstack-cloud-controller-manager(or other related binary) version: 1.31.1
  • OpenStack version: Zed
  • Others: No
@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Dec 16, 2024
@chnyda chnyda linked a pull request Dec 17, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants