*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit 968666ae authored by entlein's avatar entlein
Browse files

adding heuristic wait loops to make sure CCM has had time enough to boot

parent 585083ef
No related branches found
No related tags found
1 merge request!1Restore main as the default branch
- name: Sleep for 45 seconds so that the helm operator has deployed the deamonset
ansible.builtin.wait_for:
timeout: 45
delegate_to: localhost
- name: kill the openstack ccm pods to make sure they boot in permissive mode
shell: "/var/lib/rancher/rke2/bin/kubectl --kubeconfig /etc/rancher/rke2/rke2.yaml rollout restart -n kube-system ds openstack-cloud-controller-manager "
register: openstack_ccm_ready
until: openstack_ccm_ready.sdtout
retries: 2
delay: 30
when: ( 'master' in group_names )
ignore_errors: True
- name: Sleep for 300 seconds and continue with play
- name: Sleep for another 30 seconds so that the OS-CCM has had time to boot up
ansible.builtin.wait_for:
timeout: 30
delegate_to: localhost
# - name: Wait for all control-plane pods to become created
# shell: "/var/lib/rancher/rke2/bin/kubectl --kubeconfig /etc/rancher/rke2/rke2.yaml get po --namespace=kube-system --selector tier=control-plane --output=jsonpath='{.items[*].metadata.name}'"
# register: control_plane_pods_created
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment