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

Skip to content
Snippets Groups Projects
Commit 100711cd authored by entlein's avatar entlein
Browse files

flushing the handlers and afterwards waiting for Openstack CCM to boot before enforcing SELinux

parent 96824fdc
No related branches found
No related tags found
1 merge request!1Restore main as the default branch
- name: Sleep for 120 seconds so that the helm operator has deployed the deamonset #- name: Sleep for 30 seconds so that the helm operator has deployed the deamonset
ansible.builtin.wait_for: # ansible.builtin.wait_for:
timeout: 120 # timeout: 30
delegate_to: localhost # delegate_to: localhost
#- name: kill the openstack ccm pods to make sure they boot in permissive mode #- 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 " # shell: "/var/lib/rancher/rke2/bin/kubectl --kubeconfig /etc/rancher/rke2/rke2.yaml rollout restart -n kube-system ds openstack-cloud-controller-manager "
...@@ -32,12 +32,13 @@ ...@@ -32,12 +32,13 @@
# - kube-controller-manager # - kube-controller-manager
# - kube-scheduler # - kube-scheduler
# - name: Wait for openstack-cloud-controller deamon set to be ready - name: Wait for openstack-cloud-controller deamon set to be ready
# shell: "/var/lib/rancher/rke2/bin/kubectl --kubeconfig /etc/rancher/rke2/rke2.yaml wait --namespace=kube-system --for=condition=Ready pods --selector app=openstack-cloud-controller-manager --timeout=360s" shell: "/var/lib/rancher/rke2/bin/kubectl --kubeconfig /etc/rancher/rke2/rke2.yaml wait --namespace=kube-system --for=condition=Ready pods --selector app=openstack-cloud-controller-manager --timeout=360s"
# register: openstack_ccm_ready register: openstack_ccm_ready
# until: openstack_ccm_ready.stout until: openstack_ccm_ready.stdout
# when: ('master' in group_names) retries: 2
# ignore_errors: True delay: 30
ignore_errors: True
- name: Enable SELinux - name: Enable SELinux
selinux: selinux:
......
...@@ -6,22 +6,25 @@ ...@@ -6,22 +6,25 @@
- block: - block:
- include_tasks: setup_host.yml - include_tasks: setup_host.yml
- include_tasks: install_rke2.yml - include_tasks: install_rke2.yml
when: ( not rke2_installed.stat.exists and state != 'absent' and not postinstall) or (upgrade and state != 'absent' and not postinstall ) when: ( not rke2_installed.stat.exists and state != 'absent' ) or (upgrade and state != 'absent' )
- include_tasks: templates.yml - include_tasks: templates.yml
when: "state != 'absent' and 'master' in group_names and not postinstall " when: "state != 'absent' and 'master' in group_names "
- block: - block:
- include_tasks: registries.yml - include_tasks: registries.yml
- include_tasks: config_rke2.yml - include_tasks: config_rke2.yml
when: state != 'absent' and not postinstall when: state != 'absent'
- include_tasks: kubeconfig.yml - include_tasks: kubeconfig.yml
when: state != 'absent' and 'master' in group_names and not postinstall when: state != 'absent' and 'master' in group_names
- name: Flush handlers
meta: flush_handlers
#This task runs only after the full installer went through and had a bit of time to boot, then starts to enforce SELinux #This task runs only after the full installer went through and had a bit of time to boot, then starts to enforce SELinux
- include_tasks: fix_selinux.yml - include_tasks: fix_selinux.yml
when: state != 'absent' and postinstall when: state != 'absent' and 'control-plane' in group_names
- name: uninstall rke2 - name: uninstall rke2
command: rke2-uninstall.sh command: rke2-uninstall.sh
...@@ -29,4 +32,4 @@ ...@@ -29,4 +32,4 @@
- include_tasks: rotate_encryption.yml - include_tasks: rotate_encryption.yml
when: state != 'absent' and 'control-plane' in group_names and rotate and not postinstall when: state != 'absent' and 'control-plane' in group_names and rotate
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment