Skip to content

Commit

Permalink
make ssh_retry within the openstack workflow hyper-aggressive
Browse files Browse the repository at this point in the history
Case RE-928: make ssh_retry hyper-aggressive

Changelog:
  • Loading branch information
David Lanning committed Nov 1, 2024
1 parent 1749bb1 commit 45381c9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/openstack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ jobs:
- name: Checkout Repo and Commit
if: github.event_name != 'pull_request'
uses: appleboy/ssh-action@v1.0.3
uses: appleboy/ssh-action@v1.1.0
with:
host: ${{ steps.VM_IP.outputs.VM_IP }}
username: 'root'
Expand All @@ -129,7 +129,7 @@ jobs:
- name: Checking out Repo and Pull Request
if: github.event_name == 'pull_request'
uses: appleboy/ssh-action@v1.0.3
uses: appleboy/ssh-action@v1.1.0
with:
host: ${{ steps.VM_IP.outputs.VM_IP }}
username: 'root'
Expand Down Expand Up @@ -168,7 +168,7 @@ jobs:
run: echo "VM_IP is ${{ steps.VM_IP.outputs.VM_IP }}"

- name: Setup for Integration Checks Prior to Running Elevate
uses: appleboy/ssh-action@v1.0.3
uses: appleboy/ssh-action@v1.1.0
with:
host: ${{ steps.VM_IP.outputs.VM_IP }}
username: 'root'
Expand Down Expand Up @@ -203,7 +203,7 @@ jobs:
run: echo "VM_IP is ${{ steps.VM_IP.outputs.VM_IP }}"

- name: Starting Elevate
uses: appleboy/ssh-action@v1.0.3
uses: appleboy/ssh-action@v1.1.0
with:
host: ${{ steps.VM_IP.outputs.VM_IP }}
username: 'root'
Expand Down Expand Up @@ -270,7 +270,7 @@ jobs:
VM_IP: ${{ steps.VM_IP.outputs.VM_IP }}
run: echo "VM_IP is ${{ steps.VM_IP.outputs.VM_IP }}"
- name: Monitor Elevate for Reboot from Stage 1 into Stage 2
uses: appleboy/ssh-action@v1.0.3
uses: appleboy/ssh-action@v1.1.0
with:
host: ${{ steps.VM_IP.outputs.VM_IP }}
username: 'root'
Expand Down Expand Up @@ -335,7 +335,7 @@ jobs:
VM_IP: ${{ steps.VM_IP.outputs.VM_IP }}
run: echo "VM_IP is ${{ steps.VM_IP.outputs.VM_IP }}"
- name: Monitor Elevate for Stage 3 Reboot
uses: appleboy/ssh-action@v1.0.3
uses: appleboy/ssh-action@v1.1.0
with:
host: ${{ steps.VM_IP.outputs.VM_IP }}
username: 'root'
Expand Down Expand Up @@ -400,7 +400,7 @@ jobs:
VM_IP: ${{ steps.VM_IP.outputs.VM_IP }}
run: echo "VM_IP is ${{ steps.VM_IP.outputs.VM_IP }}"
- name: Monitor Elevate for Stage 4 Reboot
uses: appleboy/ssh-action@v1.0.3
uses: appleboy/ssh-action@v1.1.0
with:
host: ${{ steps.VM_IP.outputs.VM_IP }}
username: 'root'
Expand Down Expand Up @@ -464,7 +464,7 @@ jobs:
VM_IP: ${{ steps.VM_IP.outputs.VM_IP }}
run: echo "VM_IP is ${{ steps.VM_IP.outputs.VM_IP }}"
- name: Monitor Elevate for Stage 5 Reboot
uses: appleboy/ssh-action@v1.0.3
uses: appleboy/ssh-action@v1.1.0
with:
host: ${{ steps.VM_IP.outputs.VM_IP }}
username: 'root'
Expand Down Expand Up @@ -528,7 +528,7 @@ jobs:
VM_IP: ${{ steps.VM_IP.outputs.VM_IP }}
run: echo "VM_IP is ${{ steps.VM_IP.outputs.VM_IP }}"
- name: Monitor Elevate for Final Reboot
uses: appleboy/ssh-action@v1.0.3
uses: appleboy/ssh-action@v1.1.0
with:
host: ${{ steps.VM_IP.outputs.VM_IP }}
username: 'root'
Expand Down Expand Up @@ -592,7 +592,7 @@ jobs:
VM_IP: ${{ steps.VM_IP.outputs.VM_IP }}
run: echo "VM_IP is ${{ steps.VM_IP.outputs.VM_IP }}"
- name: Verify End Result Integration Tests
uses: appleboy/ssh-action@v1.0.3
uses: appleboy/ssh-action@v1.1.0
with:
host: ${{ steps.VM_IP.outputs.VM_IP }}
username: 'root'
Expand All @@ -617,4 +617,4 @@ jobs:
name: ${{ github.run_id }}-tf.out.json
path: ${{ github.workspace }}/tf.out.json
- name: Destroy OpenStack VM
run: terraform destroy -no-color -auto-approve
run: terraform destroy -no-color -auto-approve
4 changes: 2 additions & 2 deletions .github/workflows/openstack/ssh_retry
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ my $HOST = $ARGV[0];
my $PORT = $ARGV[1] // 22;
my $RETVAL = 1;
my $RETRIES = 0;
my $RETRY = $ARGV[2] // 240;
my $RETRY = $ARGV[2] // 900;

return unless defined $HOST;

Expand All @@ -32,5 +32,5 @@ while ( $RETVAL != 0 ) {
print "## [$time] [ERROR]: ssh_retry.pl: MAX_RETRIES has been reached.\n";
exit 1;
}
sleep 5;
sleep 1;
}

0 comments on commit 45381c9

Please sign in to comment.