From 60d5bf54565edf3939e85ed2a7cb27639988a095 Mon Sep 17 00:00:00 2001 From: David Valin Date: Wed, 26 Apr 2023 09:07:02 -0400 Subject: [PATCH 1/3] ansible reboot broke! --- reboot_measurement/reboot_measure.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reboot_measurement/reboot_measure.yml b/reboot_measurement/reboot_measure.yml index 6763e15..a1f9a49 100755 --- a/reboot_measurement/reboot_measure.yml +++ b/reboot_measurement/reboot_measure.yml @@ -108,6 +108,8 @@ - name: Simply reboot the system reboot: reboot_timeout: 1800 + test_command: /usr/bin/whoami + connect_timeout: 5 - name: grab reboot end time command: "date -u +%s" From 95940d802123fbb7ee8a09063e0261c9507371a3 Mon Sep 17 00:00:00 2001 From: David Valin Date: Wed, 26 Apr 2023 09:29:12 -0400 Subject: [PATCH 2/3] Next attempt --- reboot_measurement/reboot_measure.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/reboot_measurement/reboot_measure.yml b/reboot_measurement/reboot_measure.yml index a1f9a49..a7993dc 100755 --- a/reboot_measurement/reboot_measure.yml +++ b/reboot_measurement/reboot_measure.yml @@ -107,9 +107,15 @@ - name: Simply reboot the system reboot: - reboot_timeout: 1800 - test_command: /usr/bin/whoami - connect_timeout: 5 + reboot_timeout: 6 + + - name: wait for ssh to come up + local_action: wait_for + host="{{ dyn_data.test_hostname }}" + port=22 + state=started + delay=1 + timeout=1200 - name: grab reboot end time command: "date -u +%s" From eaf9cb34377a6cdc97749395b60fab02ce4f76c9 Mon Sep 17 00:00:00 2001 From: David Valin Date: Wed, 6 Dec 2023 08:42:14 -0500 Subject: [PATCH 3/3] Fix timeout --- reboot_measurement/reboot_measure.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reboot_measurement/reboot_measure.yml b/reboot_measurement/reboot_measure.yml index a7993dc..a7964d6 100755 --- a/reboot_measurement/reboot_measure.yml +++ b/reboot_measurement/reboot_measure.yml @@ -107,7 +107,7 @@ - name: Simply reboot the system reboot: - reboot_timeout: 6 + reboot_timeout: 240 - name: wait for ssh to come up local_action: wait_for