- include_role: name: tripleo_podman tasks_from: tripleo_podman_rsyslog_cleanup name: remove rsyslog configuration for podman healthcheck log - block: - become: true name: Get haproxy image from pacemaker register: xmllint_pcmk_haproxy_image shell: xmllint --xpath "string(//bundle[@id='haproxy-bundle']/podman/@image)" /var/lib/pacemaker/cib/cib.xml - name: Get container haproxy image set_fact: haproxy_image: registry.redhat.io/rhosp-rhel9/openstack-haproxy:17.1 haproxy_image_latest: cluster.common.tag/haproxy:pcmklatest pcmk_haproxy_image: '{{xmllint_pcmk_haproxy_image.stdout}}' when: (step|int == 0 or step|int == 2) - assert: fail_msg: haproxy image change detected, run overcloud external-update --tags ha_image_update first that: pcmk_haproxy_image == haproxy_image_latest name: Check for update of haproxy container image name when: step|int == 0 - block: - become: true name: Get galera image from pacemaker register: xmllint_pcmk_galera_image shell: xmllint --xpath "string(//bundle[@id='galera-bundle']/podman/@image)" /var/lib/pacemaker/cib/cib.xml - name: Get container galera image set_fact: galera_image: registry.redhat.io/rhosp-rhel9/openstack-mariadb:17.1 galera_image_latest: cluster.common.tag/mariadb:pcmklatest pcmk_galera_image: '{{xmllint_pcmk_galera_image.stdout}}' when: (step|int == 0 or step|int == 2) - assert: fail_msg: galera image change detected, run overcloud external-update --tags ha_image_update first that: pcmk_galera_image == galera_image_latest name: Check for update of galera container image name when: step|int == 0 - check_mode: true name: check systemd-container package present or not package: name: systemd-container state: present register: is_systemd_container_package - name: download systemd-container package if not present when: is_systemd_container_package.changed yum: download_dir: /var/tmp/ download_only: true name: systemd-container state: present - async: 30 name: Check pacemaker cluster running before the minor update pacemaker_cluster: state=online check_and_fail=true poll: 4 when: step|int == 0 - block: - become: true name: Get rabbitmq image from pacemaker register: xmllint_pcmk_rabbitmq_rpc_image shell: xmllint --xpath "string(//bundle[@id='rabbitmq-bundle']/podman/@image)" /var/lib/pacemaker/cib/cib.xml - name: Get container rabbitmq image set_fact: pcmk_rabbitmq_rpc_image: '{{xmllint_pcmk_rabbitmq_rpc_image.stdout}}' rabbitmq_rpc_image: registry.redhat.io/rhosp-rhel9/openstack-rabbitmq:17.1 rabbitmq_rpc_image_latest: cluster.common.tag/rabbitmq:pcmklatest when: (step|int == 0 or step|int == 2) - assert: fail_msg: rabbitmq image change detected, run overcloud external-update --tags ha_image_update first that: pcmk_rabbitmq_rpc_image == rabbitmq_rpc_image_latest name: Check for update of rabbitmq container image name when: step|int == 0 - include_role: name: tripleo_redhat_enforce name: Enforce RHOSP rules regarding subscription. vars: skip_rhel_enforcement: false when: - step|int == 0 - ansible_facts['distribution'] == 'RedHat' - not (skip_rhel_enforcement | bool) - loop: '{{ dnf_module_list|list }}' name: Ensure DNF modules have the right stream enabled tripleo_dnf_stream: name: '{{ item.module }}:{{ item.stream }}' state: enabled vars: dnf_module_list: [] when: - step|int == 0 - dnf_module_list|length > 0 - item.distribution_version is defined - ansible_facts['distribution_major_version'] is version(item.distribution_version, '==') - name: Check for existing yum.pid register: yum_pid_file stat: path=/run/yum.pid when: step|int == 0 or step|int == 3 - fail: msg="ERROR existing yum.pid detected - can't continue! Please ensure there is no other package update process for the duration of the minor update worfklow. Exiting." name: Exit if existing yum process when: (step|int == 0 or step|int == 3) and yum_pid_file.stat.exists