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

Install-OVS.ps1 failed to start ovsdb service without ssl files on windows #4027

Closed
XinShuYang opened this issue Jul 18, 2022 · 1 comment · Fixed by #4029
Closed

Install-OVS.ps1 failed to start ovsdb service without ssl files on windows #4027

XinShuYang opened this issue Jul 18, 2022 · 1 comment · Fixed by #4029
Assignees
Labels
area/OS/windows Issues or PRs related to the Windows operating system. kind/bug Categorizes issue or PR as related to a bug.

Comments

@XinShuYang
Copy link
Contributor

XinShuYang commented Jul 18, 2022

Describe the bug
ovsdb-server fails to start without openssl files:

To Reproduce
Remove ssleay32.dll and libeay32.dll in $env:PATH.
Run Install-OVS.ps1 to install latest ovs (e.g. 2.16.4)

Expected
ovsdb-server should start

Actual behavior

 
7/18/2022 2:50 AM Skipping OVS download, using local file: ovs-master-Release.zip

7/18/2022 2:50 AM Extract ovs-master-Release.zip to C:\Users\Administrator

7/18/2022 2:50 AM Copying OVS package from C:\Users\Administrator\openvswitch to C:\openvswitch

7/18/2022 2:50 AM Installing OVS driver certificate.

7/18/2022 2:50 AM Installing OVS kernel driver

7/18/2022 2:50 AM Hyper-V Virtual Machine Management service status: Running


C:\openvswitch\driver>netcfg -l .\ovsext.inf -c s -i OVSExt
Trying to install OVSExt ...

... .\ovsext.inf was copied to C:\Windows\INF\oem17.inf.

... done.


C:\openvswitch\driver>net stop vmms
The Hyper-V Virtual Machine Management service is stopping.
The Hyper-V Virtual Machine Management service was stopped successfully.


C:\openvswitch\driver>net start vmms
The Hyper-V Virtual Machine Management service is starting.
The Hyper-V Virtual Machine Management service was started successfully.

7/18/2022 2:50 AM Creating ovsdb file

7/18/2022 2:50 AM Create and start ovsdb-server service

[SC] CreateService SUCCESS
[SC] ChangeServiceConfig2 SUCCESS
Start-Service : Service 'ovsdb-server (ovsdb-server)' cannot be started due to the following error: Cannot start service ovsdb-server on computer '.'. 
At C:\Users\Administrator\Install-OVS.ps1:209 char:5
+     Start-Service ovsdb-server
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service], ServiceCommandException
    + FullyQualifiedErrorId : CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand```


@XinShuYang XinShuYang added the kind/bug Categorizes issue or PR as related to a bug. label Jul 18, 2022
@XinShuYang XinShuYang self-assigned this Jul 18, 2022
@XinShuYang XinShuYang added the area/OS/windows Issues or PRs related to the Windows operating system. label Jul 18, 2022
XinShuYang added a commit to XinShuYang/antrea that referenced this issue Jul 18, 2022
Windows OVS needs SSL files to start service.

Add new funtion in Install-OVS.ps1 to check files exist and install
SSL library if files don't exist.

issue antrea-io#4027

Signed-off-by: Shuyang Xin <gavinx@vmware.com>
Co-authored-by: wenyingd <wenyingd@vmware.com>
@jayunit100
Copy link
Contributor

Yes, ive been pretty confused about this, this breaks antrea on sig-windows-dev-tools i think

kubernetes-sigs/sig-windows-dev-tools#198

cc @wenyingd i think this might be part of our problem

XinShuYang added a commit to XinShuYang/antrea that referenced this issue Jul 20, 2022
Windows OVS needs SSL files to start service.

Add new funtion in Install-OVS.ps1 to check files exist and install
SSL library if files don't exist.

issue antrea-io#4027

Signed-off-by: Shuyang Xin <gavinx@vmware.com>
Co-authored-by: wenyingd <wenyingd@vmware.com>
XinShuYang added a commit to XinShuYang/antrea that referenced this issue Jul 22, 2022
Windows OVS needs SSL files to start service.

Add new funtion in Install-OVS.ps1 to check files exist and install
SSL library if files don't exist.

issue antrea-io#4027

Signed-off-by: Shuyang Xin <gavinx@vmware.com>
Co-authored-by: wenyingd <wenyingd@vmware.com>
XinShuYang added a commit to XinShuYang/antrea that referenced this issue Jul 22, 2022
Windows OVS needs SSL files to start service.

Add new funtion in Install-OVS.ps1 to check files exist and install
SSL library if files don't exist.

issue antrea-io#4027

Signed-off-by: Shuyang Xin <gavinx@vmware.com>
Co-authored-by: wenyingd <wenyingd@vmware.com>
XinShuYang added a commit to XinShuYang/antrea that referenced this issue Jul 22, 2022
Windows OVS needs SSL files to start service.

Add new funtion in Install-OVS.ps1 to check files exist and install
SSL library if files don't exist.

Fixes antrea-io#4027

Signed-off-by: Shuyang Xin <gavinx@vmware.com>
Co-authored-by: wenyingd <wenyingd@vmware.com>
tnqn pushed a commit that referenced this issue Jul 22, 2022
Windows OVS needs SSL files to start service.

Add new funtion in Install-OVS.ps1 to check files exist and install
SSL library if files don't exist.

Fixes #4027

Signed-off-by: Shuyang Xin <gavinx@vmware.com>
Co-authored-by: wenyingd <wenyingd@vmware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/OS/windows Issues or PRs related to the Windows operating system. kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants