Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
chore: double wait time for SSH (#2066)
Browse files Browse the repository at this point in the history
* chore: dible wait time for SSH

It seems that for CentOS machines, SSH takes more than 1min to come

* chore: use multiline

* chore: include OpenTelemetry traces for Ansible

(cherry picked from commit a176d63)
  • Loading branch information
mdelapenya authored and mergify-bot committed Jan 28, 2022
1 parent 6f9cfec commit ee7fc56
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,9 @@ def getMachineInfo(workspace, platform){
}

def ansible(workspace, run_id, args){
pyrun("ansible-playbook --private-key=\"${workspace}/e2essh\" --extra-vars=\"workspace=${workspace}/ runId=${run_id} sshPublicKey=${workspace}/e2essh.pub\" --ssh-common-args='-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null' ${workspace}/.ci/ansible/playbook.yml ${args}")
withOtelEnv() {
pyrun("ansible-playbook --private-key=\"${workspace}/e2essh\" --extra-vars=\"workspace=${workspace}/ runId=${run_id} sshPublicKey=${workspace}/e2essh.pub\" --ssh-common-args='-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null' ${workspace}/.ci/ansible/playbook.yml ${args}")
}
}


Expand Down
2 changes: 2 additions & 0 deletions .ci/ansible/ansible.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[defaults]
callbacks_enabled = community.general.opentelemetry
6 changes: 5 additions & 1 deletion .ci/ansible/tasks/wait_for_ssh.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
- name: Wait for SSH to come up
wait_for: host={{ inventory_hostname }} port=22 delay=10 timeout=60
wait_for:
host: "{{ inventory_hostname }}"
port: 22
delay: 10
timeout: 120

0 comments on commit ee7fc56

Please sign in to comment.