antrea: Latest OVS Windows driver does not seem to be signed
Describe the bug I am trying to install Antrea on Windows Nodes using the latest release (v1.14.1). I followed the steps to Enable Loading of Test Signed Drivers:
Bcdedit.exe -set TESTSIGNING ON
Restart-Computer
However, when I try to install the OVS Windows driver, it fails:
PS C:\Windows\system32> Invoke-WebRequest -UseBasicParsing https://raw.githubusercontent.com/antrea-io/antrea/v1.14.1/hack/windows/Install-OVS.ps1 -o Install-OVS.ps1
PS C:\Windows\system32> .\Install-OVS.ps1 -InstallUserspace $false
12/15/2023 7:37 PM Installation log location: C:\Windows\system32\install_ovs.log
12/15/2023 7:37 PM Downloading OVS package from https://downloads.antrea.io/ovs/ovs-3.0.5-antrea.0-win64.zip to C:\Windows\system32\ovs-win64.zip
12/15/2023 7:37 PM Download OVS package success.
12/15/2023 7:37 PM Extract C:\Windows\system32\ovs-win64.zip to C:\Windows\system32
12/15/2023 7:37 PM Copying OVS package from C:\Windows\system32\openvswitch to C:\openvswitch
12/15/2023 7:37 PM Installing OVS driver certificate.
PSParentPath: Microsoft.PowerShell.Security\Certificate::LocalMachine\TrustedPublisher
Thumbprint Subject
---------- -------
DC433CFE4053A6300813C89BD44B5B4849EA6E86 CN="WDKTestCert appveyor,133304119867243994"
PSParentPath: Microsoft.PowerShell.Security\Certificate::LocalMachine\Root
Thumbprint Subject
---------- -------
DC433CFE4053A6300813C89BD44B5B4849EA6E86 CN="WDKTestCert appveyor,133304119867243994"
12/15/2023 7:37 PM Installing OVS kernel driver
12/15/2023 7:37 PM Hyper-V Virtual Machine Management service status: Running
C:\openvswitch\driver>netcfg -l .\ovsext.inf -c s -i OVSExt
Trying to install OVSExt ...
... failed. Error code: 0xe0000247.
Notice how https://downloads.antrea.io/ovs/ovs-3.0.5-antrea.0-win64.zip is used as the OVS package.
To Reproduce
Create a Windows Server 2019 VM, install prerequisites, try to install OVS drivers using .\Install-OVS.ps1 -InstallUserspace $false.
Expected Driver installation should succeed.
Actual behavior Notice this failure in the output:
C:\openvswitch\driver>netcfg -l .\ovsext.inf -c s -i OVSExt
Trying to install OVSExt ...
... failed. Error code: 0xe0000247.
Unfortunately the script thinks it “succeeds” and will proceed with the installation, which is not correct and is a bug in the script…
Versions:
Any Antrea version using the ovs-3.0.5-antrea.0-win64.zip package. That includes v1.14.1.
Additional context
When using https://downloads.antrea.io/ovs/ovs-2.15.2-antrea.0-win64.zip instead, driver installation succeeds.
I tested this using an older version of Antrea (v1.11.4):
PS C:\Windows\system32> Invoke-WebRequest -UseBasicParsing https://raw.githubusercontent.com/antrea-io/antrea/v1.11.4/hack/windows/Install-OVS.ps1 -o Install-OVS.ps1
PS C:\Windows\system32> .\Install-OVS.ps1
12/15/2023 7:33 PM Installation log location: C:\Windows\system32\install_ovs.log
12/15/2023 7:33 PM Downloading OVS package from https://downloads.antrea.io/ovs/ovs-2.15.2-antrea.0-win64.zip to C:\Windows\system32\ovs-win64.zip
12/15/2023 7:33 PM Download OVS package success.
12/15/2023 7:33 PM Extract C:\Windows\system32\ovs-win64.zip to C:\Windows\system32
12/15/2023 7:33 PM Copying OVS package from C:\Windows\system32\openvswitch to C:\openvswitch
12/15/2023 7:33 PM Installing OVS driver certificate.
PSParentPath: Microsoft.PowerShell.Security\Certificate::LocalMachine\TrustedPublisher
Thumbprint Subject
---------- -------
9E27F7B475263235DF5A75A4936D0B21460F4630 CN="WDKTestCert appveyor,132785990465004813"
PSParentPath: Microsoft.PowerShell.Security\Certificate::LocalMachine\Root
Thumbprint Subject
---------- -------
9E27F7B475263235DF5A75A4936D0B21460F4630 CN="WDKTestCert appveyor,132785990465004813"
12/15/2023 7:33 PM Installing OVS kernel driver
12/15/2023 7:33 PM 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\oem84.inf.
... done.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (15 by maintainers)
Commits related to this issue
- Update windows ovs download link to remove the redundant certificate Fixes #5805 Signed-off-by: Shuyang Xin <gavinx@vmware.com> — committed to XinShuYang/antrea by XinShuYang 3 years ago
- Update windows ovs download link to remove the redundant certificate Fixes #5805 Signed-off-by: Shuyang Xin <gavinx@vmware.com> — committed to XinShuYang/antrea by XinShuYang 3 years ago
- Update windows ovs download link to remove the invalid certificate (#5839) Fixes #5805 Signed-off-by: Shuyang Xin <gavinx@vmware.com> — committed to antrea-io/antrea by XinShuYang 3 years ago
- Update windows ovs download link to remove the redundant certificate Fixes #5805 Signed-off-by: Shuyang Xin <gavinx@vmware.com> — committed to XinShuYang/antrea by XinShuYang 3 years ago
- Update windows ovs download link to remove the redundant certificate Fixes #5805 Signed-off-by: Shuyang Xin <gavinx@vmware.com> — committed to XinShuYang/antrea by XinShuYang 3 years ago
- Update windows ovs download link to remove the redundant certificate (#5848) Fixes #5805 Signed-off-by: Shuyang Xin <gavinx@vmware.com> — committed to antrea-io/antrea by XinShuYang 3 years ago
- Update windows ovs download link to remove the redundant certificate (#5847) Fixes #5805 Signed-off-by: Shuyang Xin <gavinx@vmware.com> — committed to antrea-io/antrea by XinShuYang 3 years ago
BTW, it may be good to have an extra log line in https://github.com/antrea-io/antrea/blob/7702924aab90d8b94859e79903dc1a1647e7ab0e/hack/windows/Install-OVS.ps1#L156-L160, when we generate the certificate