Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Adjust wait time for bootstrap complete #208

Merged
merged 1 commit into from
Oct 4, 2023
Merged
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
16 changes: 8 additions & 8 deletions roles/wait_for_bootstrap/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
---

- name: Start openshift-installer with 'wait-for bootstrap-complete' (async task)
tags: wait_for_bootstrap
ansible.builtin.command: openshift-install wait-for bootstrap-complete --dir=/root/ocpinst
# Set wait time to 75 min, because it depends highly on system performance and network speed
async: 4500
poll: 0
register: watch_bootstrap

- name: "Wait for first node-bootstrapper request. Takes < 10 min with good network connection (retry every 30s)...To watch progress, \
SSH to root@bastion, SSH to core@bootstrap-ip and run 'journalctl -b -f -u release-image.service -u bootkube.service'"
tags: wait_for_bootstrap
Expand All @@ -24,6 +16,14 @@ SSH to root@bastion, SSH to core@bootstrap-ip and run 'journalctl -b -f -u relea
ansible.builtin.debug:
var: csr_check.stdout_lines

- name: Start openshift-installer with 'wait-for bootstrap-complete' (async task)
tags: wait_for_bootstrap
ansible.builtin.command: openshift-install wait-for bootstrap-complete --dir=/root/ocpinst
# Installer will wait up to ~50 min
async: 3060
poll: 0
register: watch_bootstrap

- name: "Retry wait-for bootstrap-complete job ID check until it's finished. This may take some time... To watch progress, \
SSH to bastion, switch to root, from there, SSH to core@bootstrap-ip and run 'journalctl -b -f -u release-image.service -u bootkube.service'"
tags: wait_for_bootstrap
Expand Down