From 357e06cbb4a25fc8bf9b6432e4fd596db5955402 Mon Sep 17 00:00:00 2001 From: uk-bolly <69214557+uk-bolly@users.noreply.github.com> Date: Tue, 26 Jul 2022 11:03:17 +0100 Subject: [PATCH 1/5] Update linux_benchmark_testing.yml updated system status check --- .github/workflows/linux_benchmark_testing.yml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/linux_benchmark_testing.yml b/.github/workflows/linux_benchmark_testing.yml index 3c4cf3f..8a9805c 100644 --- a/.github/workflows/linux_benchmark_testing.yml +++ b/.github/workflows/linux_benchmark_testing.yml @@ -81,20 +81,13 @@ jobs: working-directory: .github/workflows run: cat hosts.yml -# Centos 7 images take a while to come up insert sleep or playbook fails +# Ensure system is up for connections before continuing - - name: Check if test os is rhel7 + - name: Check system is up and running working-directory: .github/workflows id: test_os run: >- - echo "::set-output name=RHEL7::$( - grep -c RHEL7 OS.tfvars - )" - - - name: if RHEL7 - Sleep for 60 seconds - if: steps.test_os.outputs.RHEL7 >= 1 - run: sleep 60s - shell: bash + ansible all -i hosts.yml -m ping -e retries=20 -e delay=20 # Run the ansible playbook - name: Run_Ansible_Playbook From ab698c07771668c729a84e27cbe4ade76ee41031 Mon Sep 17 00:00:00 2001 From: uk-bolly <69214557+uk-bolly@users.noreply.github.com> Date: Tue, 26 Jul 2022 11:34:13 +0100 Subject: [PATCH 2/5] fixed ansible test connect delay --- .github/workflows/linux_benchmark_testing.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linux_benchmark_testing.yml b/.github/workflows/linux_benchmark_testing.yml index 8a9805c..f30c263 100644 --- a/.github/workflows/linux_benchmark_testing.yml +++ b/.github/workflows/linux_benchmark_testing.yml @@ -87,7 +87,7 @@ jobs: working-directory: .github/workflows id: test_os run: >- - ansible all -i hosts.yml -m ping -e retries=20 -e delay=20 + ansible all -i hosts.yml -m wait_for_connection -a "connect_timeout=120 delay=10 timeout=10 sleep=5" # Run the ansible playbook - name: Run_Ansible_Playbook From 3746686927370e50addf807400b00fdc81e9ac85 Mon Sep 17 00:00:00 2001 From: uk-bolly <69214557+uk-bolly@users.noreply.github.com> Date: Tue, 26 Jul 2022 11:50:10 +0100 Subject: [PATCH 3/5] updated timeout test connection --- .github/workflows/linux_benchmark_testing.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linux_benchmark_testing.yml b/.github/workflows/linux_benchmark_testing.yml index f30c263..74b38cf 100644 --- a/.github/workflows/linux_benchmark_testing.yml +++ b/.github/workflows/linux_benchmark_testing.yml @@ -87,7 +87,7 @@ jobs: working-directory: .github/workflows id: test_os run: >- - ansible all -i hosts.yml -m wait_for_connection -a "connect_timeout=120 delay=10 timeout=10 sleep=5" + ansible all -i hosts.yml -m wait_for_connection -a "connect_timeout=300 delay=10 timeout=10 sleep=5" # Run the ansible playbook - name: Run_Ansible_Playbook From f5e9fb96afca76b7eb5ebd790aa97afd80a28e6c Mon Sep 17 00:00:00 2001 From: uk-bolly <69214557+uk-bolly@users.noreply.github.com> Date: Tue, 26 Jul 2022 12:04:54 +0100 Subject: [PATCH 4/5] fix correct timeout --- .github/workflows/linux_benchmark_testing.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linux_benchmark_testing.yml b/.github/workflows/linux_benchmark_testing.yml index 74b38cf..91ee722 100644 --- a/.github/workflows/linux_benchmark_testing.yml +++ b/.github/workflows/linux_benchmark_testing.yml @@ -87,7 +87,7 @@ jobs: working-directory: .github/workflows id: test_os run: >- - ansible all -i hosts.yml -m wait_for_connection -a "connect_timeout=300 delay=10 timeout=10 sleep=5" + ansible all -i hosts.yml -m wait_for_connection -a "connect_timeout=10 delay=10 timeout=300 sleep=5" # Run the ansible playbook - name: Run_Ansible_Playbook From 15a6cf4c3d78b62592d4ac598eafaeaecf4e3075 Mon Sep 17 00:00:00 2001 From: uk-bolly <69214557+uk-bolly@users.noreply.github.com> Date: Tue, 26 Jul 2022 12:44:25 +0100 Subject: [PATCH 5/5] change to wait_for module --- .github/workflows/linux_benchmark_testing.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linux_benchmark_testing.yml b/.github/workflows/linux_benchmark_testing.yml index 91ee722..03f9d4e 100644 --- a/.github/workflows/linux_benchmark_testing.yml +++ b/.github/workflows/linux_benchmark_testing.yml @@ -87,7 +87,7 @@ jobs: working-directory: .github/workflows id: test_os run: >- - ansible all -i hosts.yml -m wait_for_connection -a "connect_timeout=10 delay=10 timeout=300 sleep=5" + ansible all -i hosts.yml -m wait_for -a "port=22 connect_timeout=10 delay=10 timeout=300 sleep=5" # Run the ansible playbook - name: Run_Ansible_Playbook