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 flaky e2e test due to mac address re-used #198

Merged

Conversation

LionelJouin
Copy link
Collaborator

What this PR does / why we need it:

The mac addresses used during the e2e tests are now generated during the tests instead of being hard-coded.
The hard-coded mac address was causing flaky tests probably due to the kernel refusing a new macvlan interface to be created with an already existing mac address.

Which issue(s) this PR fixes:
Fixes #194 (1.)

Special notes for your reviewer (optional):

@maiqueb
Copy link
Collaborator

maiqueb commented Jan 16, 2024

Darn, need to understand this new namespace error first.

Sorry for holding this PR hostage ...

@LionelJouin
Copy link
Collaborator Author

No problem, do you have a way to reproduce it? It's the first time I saw it before

@maiqueb
Copy link
Collaborator

maiqueb commented Jan 16, 2024

No problem, do you have a way to reproduce it? It's the first time I saw it before

Not yet, I just saw this on a couple PRs in CI.

@LionelJouin
Copy link
Collaborator Author

I tried Kind v0.12.0 as used in the CI, but I could not even create a cluster for some reason. Probably it should be updated (not sure if it's related): https://github.com/k8snetworkplumbingwg/multus-cni/blob/a70da3556a41a04386e1f8049c2ea18f5feebc61/e2e/get_tools.sh#L8

@LionelJouin
Copy link
Collaborator Author

Also, merging this k8snetworkplumbingwg/multus-cni#1208 might fix the first issue (timed out waiting for the condition) as the CI uses that file (e2e/templates/multus-daemonset-thick.yml.j2) to deploy Multus.

@maiqueb
Copy link
Collaborator

maiqueb commented Jan 22, 2024

Could you rebase ? @LionelJouin

The mac addresses used during the e2e tests are now generated during the
tests instead of being hard-coded.
The hard-coded mac address was causing flacky tests probably due to the
kernel refusing a new macvlan interface to be created with an already
existing mac address.
@LionelJouin
Copy link
Collaborator Author

Done

Copy link
Collaborator

@maiqueb maiqueb left a comment

Choose a reason for hiding this comment

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

Thanks for these changes.

@maiqueb maiqueb merged commit 4e491f1 into k8snetworkplumbingwg:main Jan 22, 2024
2 checks passed
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.

[BUG] Failing e2e tests
2 participants