Skip to content

fix metallb e2e #5183

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

Merged
merged 2 commits into from
Apr 25, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions test/e2e/metallb/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,14 @@ func checkReachable(f *framework.Framework, containerID, sourceIP, targetIP, tar
}

ginkgo.By("checking vip node is same as backend pod's host")
// the arp may not be stable when just started
cmd = strings.Fields(fmt.Sprintf("arping -c 5 %s", targetIP))
output, _, err = docker.Exec(containerID, nil, cmd...)
if err != nil {
framework.Failf("arping failed: %v, output: %s", err, output)
}
framework.Logf("arping result is %s ", output)

cmd = strings.Fields(fmt.Sprintf("curl -q -s --connect-timeout 2 --max-time 2 %s/hostname", net.JoinHostPort(targetIP, targetPort)))
output, _, err = docker.Exec(containerID, nil, cmd...)
framework.ExpectNoError(err)
Expand Down
Loading