You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have an FQDN which resolves to two IPs for High Availability. The client needs to check the reachable IP and attempt to connect with the same.
In our script we first use nc command to make sure at least 1 IP in the FQDN is reachable
$ nc some.fqdn.svc.cluster.local 7055 -v -z -w2
Ncat: Version 7.70 ( https://nmap.org/ncat )
Ncat: Connection to 192.106.167.129 failed: Connection timed out.
Ncat: Trying next address...
Ncat: Connected to 192.106.226.1:7055.
Ncat: 0 bytes sent, 0 bytes received in 2.30 seconds.
and then execute grpcurl with the FQDN. But it fails to establish connection sporadically which I am assuming is because it tries to connect to an IP which is not reachable and when we execute grpcurl again then it works.
I see there are two observations (not sure if these are issues or expected behavior):
-v or -vv is not printing the IP to which grpcurl is connecting to when using FQDN
Automatic lookup and attempting connection of all available IPs inside FQDN is not happenening
When using -v or -vv we get output similar to below (which doesn't contain IP used)
and the connection fails with this error message (when I assume the connection is attempted using non-reachable IP) Failed to dial target host "some.fqdn.svc.cluster.local:7055": context deadline exceeded
Hi,
We have an FQDN which resolves to two IPs for High Availability. The client needs to check the reachable IP and attempt to connect with the same.
In our script we first use
nc
command to make sure at least 1 IP in the FQDN is reachableand then execute grpcurl with the FQDN. But it fails to establish connection sporadically which I am assuming is because it tries to connect to an IP which is not reachable and when we execute grpcurl again then it works.
I see there are two observations (not sure if these are issues or expected behavior):
-v
or-vv
is not printing the IP to which grpcurl is connecting to when using FQDNWhen using -v or -vv we get output similar to below (which doesn't contain IP used)
and the connection fails with this error message (when I assume the connection is attempted using non-reachable IP)
Failed to dial target host "some.fqdn.svc.cluster.local:7055": context deadline exceeded
Platform Details
The text was updated successfully, but these errors were encountered: