tripleo-upgrade/templates/overcloud_prepare_containers.sh.j2
Yurii Prokulevych 147ae801cb Add container image prepare script to upgrade workflow.
During Q->R upgrade container images have to be prepared after
'overcloud upgrade prepare' command finished.
Same command is used during minor update of Q.

Change-Id: Ibcdcf0e5e2cb0528f142e2d9c8188eda000b20f3
2018-11-01 08:45:42 +01:00

19 lines
501 B
Django/Jinja

#!/bin/env bash
#
# Prepare conatainer images for overcloud update/upgrade
#
{% if overcloud_update|bool -%}
{% set operation_type = 'update' -%}
{% elif overcloud_upgrade|bool -%}
{% set operation_type = 'upgrade' -%}
{% endif -%}
set -euo pipefail
source {{undercloud_rc }}
echo "[$(date)] Start preparing container images for overcloud {{ operation_type }}"
openstack overcloud external-{{ operation_type }} run \
--stack {{ overcloud_stack_name }} \
--tags container_image_prepare 2>&1