From cb9be7f7861f5baa01b735cab873ac9de607fa01 Mon Sep 17 00:00:00 2001 From: Lucian Petrut Date: Tue, 29 Aug 2023 07:50:37 +0000 Subject: [PATCH] windows: use "net.exe start" instead of Start-Service The "Start-Serice" command doesn't really say why the service could not be started: Start-Service : Service 'ceph-rbd (ceph-rbd)' cannot be started due to the following error: Cannot start service We'll use the "net.exe start" command instead, which provides additional information. Signed-off-by: Lucian Petrut --- scripts/ceph-windows/run_tests | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ceph-windows/run_tests b/scripts/ceph-windows/run_tests index fad5fe9e..b0e214a8 100644 --- a/scripts/ceph-windows/run_tests +++ b/scripts/ceph-windows/run_tests @@ -41,7 +41,7 @@ scp_upload $CEPH_KEYRING /ProgramData/ceph/keyring SSH_TIMEOUT=5m scp_upload $WORKSPACE/ceph.zip /ceph.zip SSH_TIMEOUT=10m ssh_exec powershell.exe "\$ProgressPreference='SilentlyContinue'; Expand-Archive -Path /ceph.zip -DestinationPath / -Force" ssh_exec powershell.exe "New-Service -Name ceph-rbd -BinaryPathName 'c:\ceph\rbd-wnbd.exe service'" -ssh_exec powershell.exe Start-Service -Name ceph-rbd +ssh_exec powershell.exe net.exe start ceph-rbd # # Collect artifacts on script exit -- 2.39.5