]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
windows: use "net.exe start" instead of Start-Service 2162/head
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Tue, 29 Aug 2023 07:50:37 +0000 (07:50 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Tue, 29 Aug 2023 07:52:08 +0000 (07:52 +0000)
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 <lpetrut@cloudbasesolutions.com>
scripts/ceph-windows/run_tests

index fad5fe9e33d10da7a4f033d9b94288638006c2cd..b0e214a82f4ad9c0b216b23571942bd5723fc8a5 100644 (file)
@@ -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