Use HostIP on internal connectivity test as vsphere may not resolve node names
Fixes
@@ -130,7 +130,7 @@ var _ = ginkgo.Describe("[sig-network] Internal connectivity", func() {
protocol := protocols[k]
testingMsg := fmt.Sprintf("[%s: %s -> %s:%d]", protocol, from.Spec.NodeName, to.Spec.NodeName, ports[k])
testMsg := fmt.Sprintf("%s-from-%s-to-%s", "hello", from.Status.PodIP, to.Status.PodIP)
- command, err := testRemoteConnectivityCommand(protocol, "localhost:"+strconv.Itoa(nodeTCPPort), to.Spec.NodeName, ports[k], testMsg)
+ command, err := testRemoteConnectivityCommand(protocol, "localhost:"+strconv.Itoa(nodeTCPPort), to.Status.HostIP, ports[k], testMsg)
if err != nil {
return fmt.Errorf("test of %s failed: %v", testingMsg, err)
}
