Open Ma27 opened 5 years ago
I will close it for now since @Ma27 solution addresses it. We'll probably need to revise the code some time in the future to see if the upstream crate solved the issue.
Tbh I'd prefer to leave this open until we have a proper solution. The problem is still there, we just worked around it (which is valid in our case since zone-ids broke the exporter before).
Good point! Reopened.
I recently discovered that link-local IPv6 addresses can't be parsed by the exporter and cause errors like this in the log:
The reason for this error is that link-local IPv6 addresses can have a so-called zone-id as described in RFC 4007, Section 11 to disambiguate local addresses. In my case one peer had the IPv6 socket address
[fe80::d457:12ff:fe48:176b%ens3]:34216
withens3
being a predictably named network interface.The problem here is that the socket and IP parsers of Rust in
std::net
appear to be unable to parse zone IDs:The reason for this failure is that the parser doesn't appear to support those addresses. There's currently a pending discussion in rust-lang/rfcs about the issue.