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

chore: double wait time for SSH #2066

Merged
merged 3 commits into from
Jan 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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