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 force-pushed the ovs-containerd-yaml branch from 4263190 to e23ef56 Compare May 30, 2023 03:17
@Atish-iaf Atish-iaf force-pushed the ovs-containerd-yaml branch from e23ef56 to 38d7dbf Compare May 30, 2023 09:38
@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
@Atish-iaf Atish-iaf force-pushed the ovs-containerd-yaml branch from 38d7dbf to e0cba14 Compare June 2, 2023 08:26
@Atish-iaf Atish-iaf requested a review from XinShuYang June 2, 2023 09:48
@XinShuYang
Copy link
Contributor

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

@Atish-iaf Atish-iaf force-pushed the ovs-containerd-yaml branch from e0cba14 to 3a47a98 Compare June 5, 2023 03:08
@XinShuYang XinShuYang requested a review from wenyingd June 6, 2023 03:18
@Atish-iaf Atish-iaf force-pushed the ovs-containerd-yaml branch from 3a47a98 to 0c892b7 Compare June 6, 2023 18:51
@Atish-iaf Atish-iaf requested a review from wenyingd June 6, 2023 19:01
@Atish-iaf Atish-iaf force-pushed the ovs-containerd-yaml branch 2 times, most recently from 942c13b to 3061a98 Compare June 7, 2023 18:31
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

@Atish-iaf Atish-iaf force-pushed the ovs-containerd-yaml branch from 44b2118 to 11518c0 Compare July 24, 2023 09:59
@XinShuYang
Copy link
Contributor

/test-windows-containerd-e2e

@Atish-iaf Atish-iaf force-pushed the ovs-containerd-yaml branch from 11518c0 to 9b4427d Compare July 24, 2023 16:33
@Atish-iaf
Copy link
Contributor Author

/test-windows-containerd-e2e

@Atish-iaf Atish-iaf force-pushed the ovs-containerd-yaml branch from 9b4427d to db2eb46 Compare July 24, 2023 17:52
@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 <gavinx@vmware.com>
Signed-off-by: Naman Agarwal <naman.agarwal75@gmail.com>
Signed-off-by: Kumar Atish <atish.iaf@gmail.com>
@Atish-iaf Atish-iaf force-pushed the ovs-containerd-yaml branch from 9f12dc7 to 1eb9e12 Compare July 25, 2023 18:30
@Atish-iaf Atish-iaf requested review from tnqn and wenyingd July 25, 2023 18:42
@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

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