integration-tests: Wait for initial SSH to succeed

This commit is contained in:
Zhaofeng Li 2023-01-27 23:44:41 -07:00
parent 79e4ff1337
commit bf6b88867d

View file

@ -91,7 +91,7 @@ let
${lib.optionalString (length targets != 0) ''
for node in ${targetList}:
node.wait_for_unit("sshd.service")
deployer.succeed(f"ssh -o StrictHostKeyChecking=accept-new {node.name} true", timeout=30)
deployer.wait_until_succeeds(f"ssh -o StrictHostKeyChecking=accept-new {node.name} true", timeout=30)
''}
deployer.succeed("cp --no-preserve=mode -r ${bundle} /tmp/bundle && chmod u+w /tmp/bundle")