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

Enhance HNS network initialization #5841

Merged
merged 1 commit into from
Jan 23, 2024
Merged

Conversation

XinShuYang
Copy link
Contributor

The current windows agent initialization couldn't guarantee that the EnableHNSNetworkExtension was executed after creating the HNS network.
In certain corner cases where the Windows agent pod was restarted after creating HNS network, the agent might miss executing EnableHNSNetworkExtension.

To address this issue, this enhancement runs EnableHNSNetworkExtension even if the HNS network has been created, which ensures the OVS Extension is properly enabled.

@XinShuYang
Copy link
Contributor Author

/test-windows-all

@XinShuYang XinShuYang marked this pull request as draft January 4, 2024 08:36
@XinShuYang XinShuYang force-pushed the enhancewinagent branch 2 times, most recently from fd2cb58 to c3216c0 Compare January 11, 2024 01:34
@XinShuYang
Copy link
Contributor Author

/test-windows-containerd-e2e

pkg/agent/util/net_windows.go Outdated Show resolved Hide resolved
pkg/agent/util/net_windows.go Outdated Show resolved Hide resolved
@XinShuYang
Copy link
Contributor Author

/test-windows-containerd-e2e

@XinShuYang
Copy link
Contributor Author

/test-windows-containerd-e2e
/test-all

@XinShuYang
Copy link
Contributor Author

/test-e2e

1 similar comment
@XinShuYang
Copy link
Contributor Author

/test-e2e

@XinShuYang
Copy link
Contributor Author

/test-windows-containerd-e2e

The current windows agent initialization couldn't guarantee that the `EnableHNSNetworkExtension` was executed
after creating the HNS network.
In certain corner cases where the Windows agent pod was restarted after creating HNS network, the agent might miss
executing `EnableHNSNetworkExtension`.

To address this issue, this enhancement runs `EnableHNSNetworkExtension` even if the HNS network has been created,
which ensures the OVS Extension is properly enabled.

Signed-off-by: Shuyang Xin <gavinx@vmware.com>
@XinShuYang XinShuYang marked this pull request as ready for review January 18, 2024 04:41
@XinShuYang
Copy link
Contributor Author

/test-windows-all

Copy link
Contributor

@wenyingd wenyingd left a comment

Choose a reason for hiding this comment

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

LGTM

@XinShuYang XinShuYang requested a review from tnqn January 23, 2024 08:22
@XinShuYang
Copy link
Contributor Author

hi @tnqn , do you have more comments?

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. However the commit message is not formatted well, I will format it when merging, please apply https://cbea.ms/git-commit/ for future PRs.

@tnqn
Copy link
Member

tnqn commented Jan 23, 2024

/skip-all

@tnqn tnqn merged commit 053751d into antrea-io:main Jan 23, 2024
50 of 57 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.

None yet

3 participants