-
Notifications
You must be signed in to change notification settings - Fork 370
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
|
||
ARG WIN_BUILD_TAG | ||
ARG NANOSERVER_VERSION | ||
ARG WIN_BUILD_OVS_TAG | ||
|
||
FROM antrea/base-windows:${WIN_BUILD_TAG} as antrea-build-windows | ||
|
||
|
@@ -27,6 +28,8 @@ COPY . /antrea | |
|
||
RUN sh -c 'make windows-bin' | ||
|
||
FROM antrea/windows-ovs:${WIN_BUILD_OVS_TAG} as windows-ovs | ||
|
||
FROM mcr.microsoft.com/powershell:lts-nanoserver-${NANOSERVER_VERSION} | ||
SHELL ["pwsh", "-NoLogo", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | ||
|
||
|
@@ -44,3 +47,8 @@ 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 commentThe reason will be displayed to describe this comment to others. Learn more. have we checked if this file is also the only dependency to run ovsdb-server and ovs-vswitchd? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have verified that this file is not the only dependency, we need other two following dll files as well to run ovs commands. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So do you mean we can run ovs-vswitchd and ovsdb-server inside nano-server as long as vcruntime140 and the two ssl dll files exist? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Atish-iaf , -a---- 5/10/2023 7:01 AM 414104 vcamp140.dll There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we can run ovsdb-server and ovs-vswitchd with container image antrea-windows, it would be best to use a single image in antrea manifest. A concern is if ovsdb-server and ovs-vswitchd can run correctly in nano-server base or not, not only with your mentioned "--help" command. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
@wenyingd In PR #5305 containerd-e2e test passed, so i think it works. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
COPY --from=windows-ovs /Windows/System32/libeay32.dll /Windows/System32/ | ||
COPY --from=windows-ovs /Windows/System32/ssleay32.dll /Windows/System32/ | ||
COPY --from=windows-ovs /openvswitch/usr/bin /k/antrea/bin/ |
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.
Since this image is including files from ovs image layer, we should make sure whenever we have new antrea-ovs image, we shld generate new antrea-windows image .