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

after loadBalancerService client init failed,we should give failed message to openstackcluster status #1950

Open
Goend opened this issue Mar 15, 2024 · 6 comments · May be fixed by #2036
Open
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@Goend
Copy link

Goend commented Mar 15, 2024

/kind bug

What steps did you take and what happened:
such as failed to create load balancer service client: No suitable endpoint could be found in the service catalog.

What did you expect to happen:
openstack cluster should give an error when this error cannot be automatically recovered.

Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]

Environment:

  • Cluster API Provider OpenStack version (Or git rev-parse HEAD if manually built):
    latest
  • Cluster-API version:
    latest
  • OpenStack version:
  • Minikube/KIND version:
  • Kubernetes version (use kubectl version):
    1.20.14
  • OS (e.g. from /etc/os-release):
@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Mar 15, 2024
@Goend
Copy link
Author

Goend commented Mar 15, 2024

code is

loadBalancerService, err := loadbalancer.NewService(scope)
if err != nil {
return err
}

maybe we shoud add some code like this

handleUpdateOSCError(openStackCluster, errors.Errorf("failed to reconcile load balancer: %v", err))

@dulek
Copy link
Contributor

dulek commented Mar 15, 2024

Makes sense to me. @Goend, will you propose a PR fixing this?

@Goend
Copy link
Author

Goend commented Mar 18, 2024

But first, we need to confirm that this error is terminal Failure. Under this condition, I can submit a PR. @dulek
Therefore, we first need to find someone to confirm whether this issue is a bug.
We may need more input from the community。

@dulek
Copy link
Contributor

dulek commented Mar 18, 2024

But first, we need to confirm that this error is terminal Failure. Under this condition, I can submit a PR. @dulek Therefore, we first need to find someone to confirm whether this issue is a bug. We may need more input from the community。

Alright, let's try to analyze this here. The problem is that OpenStackCluster enabled a load balancer, but the cloud doesn't have an Octavia endpoint, so it's impossible to fulfill this obligation. We could silently ignore that and just go on without creating the LB, but that would mean we're implicitly ignoring user's request. That's not really something I'd do, it's better to explicitly tell user that something doesn't work.

Given this assumptions - this feels like a pretty terminal failure, unless we'd like to wait until the cloud is updated with Octavia installation. Getting Octavia installed doesn't exactly sound like something that happens over cluster installation timeout, so I'd say it's terminal.

@mdbooth?

@Goend
Copy link
Author

Goend commented Mar 20, 2024

fine,I will propose a PR to fix it

@Goend

This comment was marked as off-topic.

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
Status: Inbox
3 participants