- block: - become: true name: Get cinder_backup image from pacemaker register: xmllint_pcmk_cinder_backup_image shell: xmllint --xpath "string(//bundle[@id='openstack-cinder-backup']/podman/@image)" /var/lib/pacemaker/cib/cib.xml - name: Get container cinder_backup image set_fact: cinder_backup_image: registry.redhat.io/rhosp-rhel9/openstack-cinder-backup:17.1 cinder_backup_image_latest: cluster.common.tag/cinder-backup:pcmklatest pcmk_cinder_backup_image: '{{xmllint_pcmk_cinder_backup_image.stdout}}' when: (step|int == 0 or step|int == 2) - block: - include_role: name: tripleo_container_tag name: Retag pcmklatest to latest cinder_backup image vars: container_image: '{{cinder_backup_image}}' container_image_latest: '{{cinder_backup_image_latest}}' name: cinder_backup fetch and retag container image for pacemaker when: step|int == 2 - block: - become: true name: Get cinder_volume image from pacemaker register: xmllint_pcmk_cinder_volume_image shell: xmllint --xpath "string(//bundle[@id='openstack-cinder-volume']/podman/@image)" /var/lib/pacemaker/cib/cib.xml - name: Get container cinder_volume image set_fact: cinder_volume_image: registry.redhat.io/rhosp-rhel9/openstack-cinder-volume:17.1 cinder_volume_image_latest: cluster.common.tag/cinder-volume:pcmklatest pcmk_cinder_volume_image: '{{xmllint_pcmk_cinder_volume_image.stdout}}' when: (step|int == 0 or step|int == 2) - block: - include_role: name: tripleo_container_tag name: Retag pcmklatest to latest cinder_volume image vars: container_image: '{{cinder_volume_image}}' container_image_latest: '{{cinder_volume_image_latest}}' name: cinder_volume fetch and retag container image for pacemaker when: step|int == 2 - 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) - block: - include_role: name: tripleo_container_tag name: Retag pcmklatest to latest haproxy image vars: container_image: '{{haproxy_image}}' container_image_latest: '{{haproxy_image_latest}}' name: Haproxy fetch and retag container image for pacemaker tags: haproxy_syn_block when: - step|int == 2 - block: - become: true name: Get manila_share image from pacemaker register: xmllint_pcmk_manila_share_image shell: xmllint --xpath "string(//bundle[@id='openstack-manila-share']/podman/@image)" /var/lib/pacemaker/cib/cib.xml - name: Get container manila_share image set_fact: manila_share_image: registry.redhat.io/rhosp-rhel9/openstack-manila-share:17.1 manila_share_image_latest: cluster.common.tag/manila-share:pcmklatest pcmk_manila_share_image: '{{xmllint_pcmk_manila_share_image.stdout}}' when: (step|int == 0 or step|int == 2) - block: - include_role: name: tripleo_container_tag name: Retag pcmklatest to latest manila_share image vars: container_image: '{{manila_share_image}}' container_image_latest: '{{manila_share_image_latest}}' name: manila_share fetch and retag container image for pacemaker when: step|int == 2 - 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) - block: - include_role: name: tripleo_container_tag name: Retag pcmklatest to latest galera image vars: container_image: '{{galera_image}}' container_image_latest: '{{galera_image_latest}}' name: Mariadb fetch and retag container image for pacemaker when: step|int == 2 - name: Ensure mariadb-server is not installed on the host when: step|int == 2 yum: name: mariadb-server* state: absent - 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) - block: - include_role: name: tripleo_container_tag name: Retag pcmklatest to latest rabbitmq image vars: container_image: '{{rabbitmq_rpc_image}}' container_image_latest: '{{rabbitmq_rpc_image_latest}}' name: Rabbitmq fetch and retag container image for pacemaker when: step|int == 2 - block: - become: true name: Get redis image from pacemaker register: xmllint_pcmk_redis_image shell: xmllint --xpath "string(//bundle[@id='redis-bundle']/podman/@image)" /var/lib/pacemaker/cib/cib.xml - name: Get container redis image set_fact: pcmk_redis_image: '{{xmllint_pcmk_redis_image.stdout}}' redis_image: registry.redhat.io/rhosp-rhel9/openstack-redis:17.1 redis_image_latest: cluster.common.tag/redis:pcmklatest when: (step|int == 0 or step|int == 2) - block: - include_role: name: tripleo_container_tag name: Retag pcmklatest to latest redis image vars: container_image: '{{redis_image}}' container_image_latest: '{{redis_image_latest}}' name: Redis fetch and retag container image for pacemaker when: step|int == 2 - name: Check swift containers log folder/symlink exists register: swift_log_link stat: path: /var/log/containers/swift - file: path: /var/log/containers/swift state: absent name: Delete if symlink when: swift_log_link.stat.islnk is defined and swift_log_link.stat.islnk - name: Special treatment for OpenvSwitch register: ovs_upgrade tripleo_ovs_upgrade: null when: - step|int == 2 - name: Always ensure the openvswitch service is enabled and running after upgrades service: enabled: true name: openvswitch state: started when: - step|int == 2 - ovs_upgrade.changed|bool