netbox-chart icon indicating copy to clipboard operation
netbox-chart copied to clipboard

netbox ipv6 listens

Open kfox1111 opened this issue 1 year ago • 3 comments

We tried to deploy netbox-5.0.0-beta13 on a cluster that has ipv6 totally disabled. It fails to listen on the [::] rules. Can those be made configurable?

kfox1111 avatar May 20 '24 17:05 kfox1111

This is a changed that happened in the upstream docker image. We've had reports of it failing both on IPv6-only clusters and IPv4-only clusters. (sigh 😅)

The good news is that you can update it to work however you want using the overrideUnitConfig section of values.yaml. You can take a look at the one provided by netbox-docker as reference.

This will probably be a more common problem over time, we should update the docs to talk about it.

RangerRick avatar May 20 '24 17:05 RangerRick

Ah. Perfect. Will give that a try. Thanks! :)

kfox1111 avatar May 20 '24 19:05 kfox1111

Having the same issue here. How would be the right way to set it trough a --set ? Have tried but I do not get having netbox listen on [::]:8080 :(

kikem4n avatar Jun 21 '24 21:06 kikem4n

Having the same issue here. How would be the right way to set it trough a --set ? Have tried but I do not get having netbox listen on [::]:8080 :(

@kikem4n Using your own values.yaml file.

# values.yaml
overrideUnitConfig:
  {
    "listeners": {
      "0.0.0.0:8080": {
        "pass": "routes/main"
      },
      # Remove below lines
      "[::]:8080": {
        "pass": "routes/main"
      },
      "0.0.0.0:8081": {
        "pass": "routes/status"
      },
      # Remove these too
      "[::]:8081": {
        "pass": "routes/status"
      }
    },
    # ... Rest of the config from https://github.com/netbox-community/netbox-docker/blob/release/docker/nginx-unit.json
  }

Then provide your values.yaml to Helm:

helm install netbox oci://ghcr.io/netbox-community/netbox-chart/netbox -f values.yaml

dbrennand avatar Jul 16 '24 14:07 dbrennand

For your information, this has been documented on the Docker image wiki: https://github.com/netbox-community/netbox-docker/wiki/Troubleshooting#netbox-container-doesnt-start-when-ipv6-is-disabled

With the use of overrideUnitConfig in the values, the workaround is fairly simple. https://github.com/netbox-community/netbox-chart/blob/190868ca133844c63019e5672ea73d773096d25f/charts/netbox/values.yaml#L476-L516

Closing in favor of https://github.com/netbox-community/netbox-docker/issues/997 & https://github.com/netbox-community/netbox-docker/issues/925

LeoColomb avatar Sep 18 '24 19:09 LeoColomb