Skip to content
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

Fix a flaky failure in VM Agent e2e test "testExternalNode" #6154

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

wenyingd
Copy link
Contributor

The failure occurs when the check is performed before the default route on the uplink is removed, then two interfaces are found, which leads to a mismatch with the expectation.

The fix is to introduce a retry when checking the VM network configurations, and and a check on the count of the default route before return.

Fix: #6147

@wenyingd
Copy link
Contributor Author

/test-vm-e2e

@wenyingd
Copy link
Contributor Author

/test-all
/test-vm-e2e

@wenyingd
Copy link
Contributor Author

/test-vm-e2e

2 similar comments
@wenyingd
Copy link
Contributor Author

/test-vm-e2e

@wenyingd
Copy link
Contributor Author

/test-vm-e2e

Copy link
Contributor

@luolanzone luolanzone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall, one nit

test/e2e/vmagent_test.go Outdated Show resolved Hide resolved
The failure occurs when the check is performed before the default route on the
uplink is removed, then two interfaces are found, which leads to a mismatch with
the expectation.

The fix is to introduce a retry when checking the VM network configurations, and
and a check on the count of the default route before return.

Signed-off-by: Wenying Dong <wenyingd@vmware.com>
@wenyingd
Copy link
Contributor Author

wenyingd commented Apr 1, 2024

/test-vm-e2e
/test-all

@wenyingd wenyingd requested a review from luolanzone April 2, 2024 02:41
@luolanzone luolanzone requested review from antoninbas and tnqn April 2, 2024 06:23
@wenyingd wenyingd requested review from luolanzone and antoninbas and removed request for antoninbas April 2, 2024 06:55
Copy link
Member

@tnqn tnqn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tnqn
Copy link
Member

tnqn commented Apr 2, 2024

/skip-conformance

@tnqn tnqn merged commit a8d78bc into antrea-io:main Apr 2, 2024
52 of 57 checks passed
@wenyingd
Copy link
Contributor Author

wenyingd commented Apr 3, 2024

@tnqn @luolanzone Thanks for reviewing and merging it. May I know if we need to back port it or not?

@tnqn
Copy link
Member

tnqn commented Apr 3, 2024

@tnqn @luolanzone Thanks for reviewing and merging it. May I know if we need to back port it or not?

We can backport to 1.14 and 1.15 if it helps stablize e2e tests.

wenyingd added a commit to wenyingd/antrea that referenced this pull request Apr 3, 2024
…o#6154)

The failure occurs when the check is performed before the default route on the
uplink is removed, then two interfaces are found, which leads to a mismatch with
the expectation.

The fix is to introduce a retry when checking the VM network configurations, and
add a check on the count of the default route before return.

Signed-off-by: Wenying Dong <wenyingd@vmware.com>
wenyingd added a commit to wenyingd/antrea that referenced this pull request Apr 3, 2024
…o#6154)

The failure occurs when the check is performed before the default route on the
uplink is removed, then two interfaces are found, which leads to a mismatch with
the expectation.

The fix is to introduce a retry when checking the VM network configurations, and
add a check on the count of the default route before return.

Signed-off-by: Wenying Dong <wenyingd@vmware.com>
wenyingd added a commit to wenyingd/antrea that referenced this pull request Apr 3, 2024
…o#6154)

The failure occurs when the check is performed before the default route on the
uplink is removed, then two interfaces are found, which leads to a mismatch with
the expectation.

The fix is to introduce a retry when checking the VM network configurations, and
add a check on the count of the default route before return.

Signed-off-by: Wenying Dong <wenyingd@vmware.com>
wenyingd added a commit to wenyingd/antrea that referenced this pull request Apr 3, 2024
…o#6154)

The failure occurs when the check is performed before the default route on the
uplink is removed, then two interfaces are found, which leads to a mismatch with
the expectation.

The fix is to introduce a retry when checking the VM network configurations, and
add a check on the count of the default route before return.

Signed-off-by: Wenying Dong <wenyingd@vmware.com>
wenyingd added a commit to wenyingd/antrea that referenced this pull request Apr 3, 2024
…o#6154)

The failure occurs when the check is performed before the default route on the
uplink is removed, then two interfaces are found, which leads to a mismatch with
the expectation.

The fix is to introduce a retry when checking the VM network configurations, and
add a check on the count of the default route before return.

Signed-off-by: Wenying Dong <wenyingd@vmware.com>
tnqn pushed a commit that referenced this pull request Apr 3, 2024
…6184)

The failure occurs when the check is performed before the default route on the
uplink is removed, then two interfaces are found, which leads to a mismatch with
the expectation.

The fix is to introduce a retry when checking the VM network configurations, and
add a check on the count of the default route before return.

Signed-off-by: Wenying Dong <wenyingd@vmware.com>
tnqn pushed a commit that referenced this pull request Apr 3, 2024
…6185)

The failure occurs when the check is performed before the default route on the
uplink is removed, then two interfaces are found, which leads to a mismatch with
the expectation.

The fix is to introduce a retry when checking the VM network configurations, and
add a check on the count of the default route before return.

Signed-off-by: Wenying Dong <wenyingd@vmware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TestVMAgent/testExternalNode fail occasionally
3 participants