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

Add support to run Windows OVS in container #5052

Merged
merged 1 commit into from
Jul 26, 2023

Conversation

Atish-iaf
Copy link
Contributor

For #4952

@rajnkamr rajnkamr added the area/OS/windows Issues or PRs related to the Windows operating system. label May 29, 2023
@Atish-iaf Atish-iaf requested a review from XinShuYang May 30, 2023 09:40
@Atish-iaf Atish-iaf marked this pull request as ready for review May 30, 2023 10:15
@rajnkamr rajnkamr added this to the Antrea v1.13 release milestone May 30, 2023
@XinShuYang
Copy link
Contributor

Please update the README. https://github.com/antrea-io/antrea/blob/main/docs/windows.md#add-windows-antrea-agent-daemonset

build/yamls/windows/containerd/kustomization.yml Outdated Show resolved Hide resolved
build/yamls/antrea-windows-ovs-containerd.yml Outdated Show resolved Hide resolved
docs/windows.md Outdated Show resolved Hide resolved
@Atish-iaf
Copy link
Contributor Author

/test-windows-containerd-e2e

@XinShuYang
Copy link
Contributor

/test-windows-containerd-e2e

@Atish-iaf
Copy link
Contributor Author

/test-windows-containerd-e2e

@Atish-iaf
Copy link
Contributor Author

/test-windows-containerd-e2e

XinShuYang
XinShuYang previously approved these changes Jul 25, 2023
Copy link
Contributor

@XinShuYang XinShuYang left a comment

Choose a reason for hiding this comment

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

LGTM

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.

Overall LGTM. Besides, remember to revert the changes in test.sh before ready for merge.

@Atish-iaf
Copy link
Contributor Author

/test-windows-containerd-e2e

- $env:CONTAINER_SANDBOX_MOUNT_POINT/var/lib/antrea-windows/Run-AntreaOVS-Containerd.ps1
command:
- powershell
image: antrea/windows-ovs:1809-3.0.5
Copy link
Contributor

Choose a reason for hiding this comment

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

Shall we use image antrea/antrea-windows:latest to run antrea-ovs ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, we can do that. please see my comment here #5052 (comment)

Copy link
Contributor

Choose a reason for hiding this comment

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

@Atish-iaf , as confirmed, ovs server side bins are working fine with antrea-windows:latest image, we should go ahead with single image antrea-windows:latest for ovs container as well

@Atish-iaf
Copy link
Contributor Author

/test-windows-containerd-e2e

1 similar comment
@XinShuYang
Copy link
Contributor

/test-windows-containerd-e2e

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 overall

@@ -44,3 +47,10 @@ COPY --from=antrea-build-windows /antrea/bin/antrea-cni.exe /k/antrea/cni/antre

RUN mkdir C:\k\antrea\utils
COPY --from=antrea-build-windows /wins/wins.exe /k/antrea/utils/wins.exe

COPY --from=windows-ovs /Windows/System32/vcruntime140.dll /Windows/System32/
Copy link
Member

Choose a reason for hiding this comment

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

We can continue the current approach first, then have a separate PR to unify the image and validate everything works fine. I feel we'd better get it done in this release to avoid the inconsistency that user needs to pull an extra image in v1.13 only.

hack/generate-manifest-windows.sh Outdated Show resolved Hide resolved
hack/generate-manifest-windows.sh Outdated Show resolved Hide resolved
hack/generate-manifest-windows.sh Outdated Show resolved Hide resolved
Comment on lines 132 to 135
if (Test-Path -Path $OVS_DB_PATH) {
Write-Host "Failed to delete file: $OVS_DB_PATH"
exit 1
}
Copy link
Member

Choose a reason for hiding this comment

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

Doesn't Remove-Item return error and exit the script if it fails? Is it necessary to check the file again?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Set $ErrorActionPreference='Stop' and removed checking file again.

hack/windows/Install-OVS.ps1 Show resolved Hide resolved
For antrea-io#4952

Signed-off-by: Shuyang Xin <[email protected]>
Signed-off-by: Naman Agarwal <[email protected]>
Signed-off-by: Kumar Atish <[email protected]>
@XinShuYang
Copy link
Contributor

/test-windows-containerd-e2e

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

@XinShuYang
Copy link
Contributor

/test-windows-containerd-conformance
/test-windows-containerd-networkpolicy

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

@tnqn
Copy link
Member

tnqn commented Jul 26, 2023

/skip-all

@tnqn tnqn merged commit fea8ddd into antrea-io:main Jul 26, 2023
43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action/release-note Indicates a PR that should be included in release notes. area/OS/windows Issues or PRs related to the Windows operating system.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants