147ae801cb
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
19 lines
501 B
Django/Jinja
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
|