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

invalid_input when deleting loadbalancer manually. #651

Open
DeprecatedLuke opened this issue May 28, 2024 · 2 comments
Open

invalid_input when deleting loadbalancer manually. #651

DeprecatedLuke opened this issue May 28, 2024 · 2 comments
Assignees
Labels
bug Something isn't working question Further information is requested stale

Comments

@DeprecatedLuke
Copy link

TL;DR

When creating a load balancer with kubernetes Service and deleting it via the panel, attempting to re-create it will result in an error.

Expected behavior

The load balancer services and targets are not created.

Observed behavior

Only the load balancer is created with no additional steps taken.

Minimal working example

deploy nginx-ingress helm chart

  controller:
    kind: DaemonSet
    terminationGracePeriodSeconds: 5
    ingressClassResource:
      default: true
    service:
      annotations:
        load-balancer.hetzner.cloud/location: fsn1
        load-balancer.hetzner.cloud/name: public-ingress
        load-balancer.hetzner.cloud/use-private-ip: "true"
        load-balancer.hetzner.cloud/http-redirect-https: "false"

delete loadbalancer on the panel
uninstall the helm chart
reinstall the helm chart
the error occurs

Log output

'Error syncing load balancer: failed to ensure load balancer: hcloud/loadBalancers.EnsureLoadBalancer:
  hcops/LoadBalancerOps.ReconcileHCLBServices: invalid input in field ''http'' (invalid_input)'

Additional information

I've managed to fix it by first creating a helm nginx-ingress with:

service:
      targetPorts:
        http: "http2"
        https: "https2"

and then editing targetPort back to http/https after.

Deleting uninstalling the helm chart and reinstalling works as expected.

@DeprecatedLuke DeprecatedLuke added the bug Something isn't working label May 28, 2024
@apricote apricote self-assigned this Aug 22, 2024
@apricote
Copy link
Member

Hey @DeprecatedLuke,

I am unable to reproduce the issue locally with your reproduction steps.

Could you run hcloud-cloud-controller-manager with the environment variable HCLOUD_DEBUG=true? This will log all requests made to the Hetzner Cloud API including the responses. You can then share the request here or open a support ticket to send the logs to us in private.

This will show the exact body of your request and indicate why the request was rejected.

@apricote apricote added the question Further information is requested label Aug 23, 2024
Copy link
Contributor

This issue has been marked as stale because it has not had recent activity. The bot will close the issue if no further action occurs.

@github-actions github-actions bot added the stale label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested stale
Projects
None yet
Development

No branches or pull requests

2 participants