-
Notifications
You must be signed in to change notification settings - Fork 373
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
Conversation
4263190
to
e23ef56
Compare
e23ef56
to
38d7dbf
Compare
38d7dbf
to
e0cba14
Compare
Please update the README. https://github.com/antrea-io/antrea/blob/main/docs/windows.md#add-windows-antrea-agent-daemonset |
e0cba14
to
3a47a98
Compare
build/yamls/windows/ovs-containerd/conf/Install-WindowsCNI-Containerd.ps1
Outdated
Show resolved
Hide resolved
3a47a98
to
0c892b7
Compare
942c13b
to
3061a98
Compare
build/yamls/windows/ovs-containerd/conf/Run-AntreaOVS-Containerd.ps1
Outdated
Show resolved
Hide resolved
3061a98
to
1706c48
Compare
/test-windows-containerd-e2e |
44b2118
to
11518c0
Compare
/test-windows-containerd-e2e |
11518c0
to
9b4427d
Compare
/test-windows-containerd-e2e |
9b4427d
to
db2eb46
Compare
/test-windows-containerd-e2e |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this 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.
build/yamls/windows/containerd-with-ovs/containerd-with-ovs.yml
Outdated
Show resolved
Hide resolved
db2eb46
to
9f12dc7
Compare
/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 |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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
/test-windows-containerd-e2e |
1 similar comment
/test-windows-containerd-e2e |
There was a problem hiding this 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/ |
There was a problem hiding this comment.
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.
build/yamls/windows/containerd-with-ovs/containerd-with-ovs.yml
Outdated
Show resolved
Hide resolved
hack/windows/Clean-AntreaNetwork.ps1
Outdated
if (Test-Path -Path $OVS_DB_PATH) { | ||
Write-Host "Failed to delete file: $OVS_DB_PATH" | ||
exit 1 | ||
} |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
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>
9f12dc7
to
1eb9e12
Compare
/test-windows-containerd-e2e |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/test-windows-containerd-conformance |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/skip-all |
For #4952