#!/bin/bash
#
set -euo pipefail

source {{ undercloud_rc }}
openstack overcloud upgrade run \
    --stack {{ overcloud_stack_name }} \
    {% if overcloud_ssh_user %}
    --ssh-user {{ overcloud_ssh_user }} \
    {% endif %}
    --roles {{ item }} \
    --skip-tags validation | tee {{ working_dir}}/overcloud_upgrade_{{ item }}.log
