-
Notifications
You must be signed in to change notification settings - Fork 622
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
Components failing to get adresses for interface #3728
Comments
Hi @nesspll! I'm afraid there isn't a single option to enable IPv6. The following flags or corresponding options in the configuration need to be set:
I also notices some inconsistencies in the values.yaml file you provided – it includes some settings that should be set in the Pyroscope's configuration ( |
The flags, should the be set under the section of pyroscope.extraArgs also can you point as an example to those inconsistencies, that should move to pyroscope.config section |
Seeing the following error for the distributor component, even after adding in the code below (we tried multiple times/places to add the ipv6 code, seems like the 'interface' doesn't recognize ipv6?" `ts=2024-11-29T11:16:59.44059492Z caller=netutil.go:118 level=debug component=distributor msg="detected IP address after looking up all configured interface names" ipAddr="invalid IP" failed running pyroscope: error initialising module: distributor: failed to build distributors' lifecycler config: no useable address found for interfaces [eth0 en0] ts=2024-11-29T11:16:59.440431689Z caller=netutil.go:85 level=debug component=distributor msg="looking for addresses" inf="[eth0 en0]" inet6enabled=false s=2024-11-29T11:16:59.440276625Z caller=log.go:245 level=debug msg="configured Transport is not a NodeAwareTransport and some features may not work as desired" ###code
Surprisingly, the memberlist advertisement works. Also, we have managed to successfully deploy the compactors! |
Does this mean only IPV4 is supported (and not Ipv6) and it will throw an error regardless of IPv6 assignment? https://github.com/grafana/pyroscope/blob/main/pkg/util/net.go#L16 The pods themsevles seem to be getting IPv6 addresses.
|
@cyriltovena , any chance you have an input on this one? We're trying to demo this to our executive leadership and it would be great to have an answer on this one. Appreciate it. |
@ipversiongent you're right about Let's aim to fix this by the next release. This is the first patch: #3731. I suspect other issues may arise once IPv6 is enabled. It would be incredibly helpful if you could test the patch and let us know if it resolves the issue for you. |
Since we're running a sandbox deployment, we will try to provide feedback on our IPv6 deployment. Is the expecation to have the changes deployed in the new release v1.11? Let's stay in touch and maybe address this issue methodically. Thank you for all your support and fast responses. Appreciate all your work. |
Awesome! Thanks for your help! We'll discuss this internally and carry out some integration testing. After that, if everything goes well, the fix will be included in our weekly build next Monday, available publicly (kind of release candidate). I'll reach out to you once everything is ready. Thanks again! |
Hello Anton. On another note, unrelated to this, is there any place we can find deployment scenarios alongside instrumentation methods? I looked at Rob Chapman's book but the section on Pyroscope is fairly limited and purely theoretical - without any details on deployment and integration strategies. |
Hello @ipversiongent! We've released the f96 weekly build with the fix included – I hope this will address the problem you encountered.
I apologize for the delay; I just noticed the comment. As for the Pyroscope deployment scenarios: we run it in k8s ourselves and therefore I'd recommend using the helm chart. Depending on the availability and capacity requirements, you may prefer the microservice deployment (designed for HA and horizontal scalability) or start with a single-binary deployment and migrate later. If you have specific questions, I'd be happy to address them. The client side requires more thorough analysis, though. I recommend starting from this page. In short, there are 3 ways:
|
Contex: EKS IPv6
values config file
Error in Ingester component:
ts=2024-11-28T21:36:48.448324076Z caller=server.go:353 level=info msg="server listening on addresses" http=[::]:4040 grpc=[::]:9095ts=2024-11-28T21:36:48.449615341Z caller=api.go:101 level=debug msg="api: registering route" methods=GET path=/admin auth=false gzip=truets=2024-11-28T21:36:48.451322992Z caller=api.go:101 level=debug msg="api: registering route" methods=GET path=/api/swagger.json auth=false gzip=truets=2024-11-28T21:36:48.451370724Z caller=api.go:106 level=debug msg="api: registering route" methods=GET,POST,PUT,DELETE,HEAD,OPTIONS prefix=/api auth=false gzip=truets=2024-11-28T21:36:48.451385186Z caller=api.go:101 level=debug msg="api: registering route" methods=GET path=/debug/fgprof auth=false gzip=truets=2024-11-28T21:36:48.451404633Z caller=api.go:106 level=debug msg="api: registering route" methods=GET prefix=/static/ auth=false gzip=truets=2024-11-28T21:36:48.45141978Z caller=api.go:106 level=debug msg="api: registering route" methods=GET prefix=/ui auth=false gzip=truets=2024-11-28T21:36:48.451433401Z caller=api.go:106 level=debug msg="api: registering route" methods=GET prefix=/assets/ auth=false gzip=truets=2024-11-28T21:36:48.451777831Z caller=api.go:101 level=debug msg="api: registering route" methods=GET path=/memberlist auth=false gzip=truets=2024-11-28T21:36:48.452556139Z caller=netutil.go:85 level=debug msg="looking for addresses" inf="[eth0 en0]" inet6enabled=falsets=2024-11-28T21:36:48.452654829Z caller=netutil.go:102 level=debug msg="detected highest quality address" ipAddr="invalid IP" inf=eth0ts=2024-11-28T21:36:48.452671394Z caller=netutil.go:104 level=debug msg="ignoring address" ipAddr="invalid IP" inf=eth0ts=2024-11-28T21:36:48.45270517Z caller=netutil.go:90 level=warn msg="error getting addresses for interface" inf=en0 err="route ip+net: no such network interface"ts=2024-11-28T21:36:48.452723232Z caller=netutil.go:118 level=debug msg="detected IP address after looking up all configured interface names" ipAddr="invalid IP"failed running pyroscope: error initialising module: version: no useable address found for interfaces [eth0 en0]
The text was updated successfully, but these errors were encountered: