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

[BUG] Helm charts do not set the ipFamilies attribute of Services in dual-stack clusters with IPv6 as their default address family #7019

Open
lel-amri opened this issue Nov 1, 2023 · 1 comment
Labels
kind/bug require/backport Require backport. Only used when the specific versions to backport have not been definied. require/qa-review-coverage Require QA to review coverage stale

Comments

@lel-amri
Copy link

lel-amri commented Nov 1, 2023

Description

Helm charts do not set the ipFamilies attribute for the longhorn-frontend service. The longhorn-ui does not support IPv6. For dual-stack clusters that have IPv6 as their primary family, the ipFamilies for the longhorn-frontend ends up being automatically set to ["IPv6"], thus making the Longhorn UI inaccessible.

To Reproduce

  • Create a K8S cluster with an IPv6 range as the first first value for kube-apiserver's --service-cluster-ip-range option.

  • Install Longhorn with the Helm charts.

  • Observe that the service automatically gets ipFamilies set to ["IPv6"] (kubectl get -o yaml -n longhorn-system service/longhorn-frontend).

  • Try to access the UI via kubectl proxy at http://localhost:8001/api/v1/namespaces/longhorn-system/services/longhorn-frontend:http/proxy/.

  • Get an error that looks like this:

    {
      "kind": "Status",
      "apiVersion": "v1",
      "metadata": {},
      "status": "Failure",
      "message": "error trying to reach service: proxy error from 127.0.0.1:6443 while dialing [R:E:D:A:C:T:E:D]:8000, code 502: 502 Bad Gateway",
      "reason": "ServiceUnavailable",
      "code": 503
    }

Expected behavior

The longhorn-frontend service have its ipFamilies attribute "manually" set to ["IPv4"] (until #2259 is solved) by the Helm charts and is thus accessible.

Support bundle for troubleshooting

N/A

Environment

  • Longhorn version: v1.4.4
  • Installation method (e.g. Rancher Catalog App/Helm/Kubectl): Helm
  • Kubernetes distro and version: K3s v1.27.6+k3s1

Additional context

@lel-amri lel-amri added kind/bug require/backport Require backport. Only used when the specific versions to backport have not been definied. require/qa-review-coverage Require QA to review coverage labels Nov 1, 2023
@longhorn-io-github-bot longhorn-io-github-bot moved this to New Issues in Longhorn Sprint Aug 2, 2024
Copy link

github-actions bot commented Jan 6, 2025

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the stale label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug require/backport Require backport. Only used when the specific versions to backport have not been definied. require/qa-review-coverage Require QA to review coverage stale
Projects
Status: No status
Status: New Issues
Development

No branches or pull requests

1 participant