From d86f7e478f31b1ed0a26efe452d6cf5a06ea7414 Mon Sep 17 00:00:00 2001 From: David Valin Date: Wed, 6 Dec 2023 10:06:34 -0500 Subject: [PATCH 1/2] Fix reboot timeout --- reboot_measurement/reboot_measure.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reboot_measurement/reboot_measure.yml b/reboot_measurement/reboot_measure.yml index a7964d6..6d9ae3b 100755 --- a/reboot_measurement/reboot_measure.yml +++ b/reboot_measurement/reboot_measure.yml @@ -107,14 +107,14 @@ - name: Simply reboot the system reboot: - reboot_timeout: 240 + reboot_timeout: 1800 - name: wait for ssh to come up local_action: wait_for host="{{ dyn_data.test_hostname }}" port=22 state=started - delay=1 + delay=10 timeout=1200 - name: grab reboot end time From 962ed6ffea624c1658b1b017e6ed3e38d6c4f206 Mon Sep 17 00:00:00 2001 From: David Valin Date: Wed, 6 Dec 2023 10:25:26 -0500 Subject: [PATCH 2/2] Do it all from the reboot command --- reboot_measurement/reboot_measure.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/reboot_measurement/reboot_measure.yml b/reboot_measurement/reboot_measure.yml index 6d9ae3b..37c0865 100755 --- a/reboot_measurement/reboot_measure.yml +++ b/reboot_measurement/reboot_measure.yml @@ -108,14 +108,9 @@ - name: Simply reboot the system reboot: reboot_timeout: 1800 - - - name: wait for ssh to come up - local_action: wait_for - host="{{ dyn_data.test_hostname }}" - port=22 - state=started - delay=10 - timeout=1200 + connect_timeout: 10 + post_reboot_delay: 30 + test_command: whoami - name: grab reboot end time command: "date -u +%s"