#!/bin/bash set -eux ### --start_docs ## Prepare images for deploying the overcloud ## ========================================== ## Prepare Your Environment ## ------------------------ ## * Source in the undercloud credentials. ## :: source /home/zuul/stackrc ## * Create and upload image to glance, this step is specific to nodepool based deployments. ## :: rpm -q qemu-img || sudo yum install -y qemu-img qemu-img create -f qcow2 overcloud-full.qcow2 1G glance image-create --container-format bare \ --disk-format qcow2 \ --name overcloud-full \ --file overcloud-full.qcow2 ## * List out all the available OpenStack flavors. ## :: for i in `openstack flavor list -c Name -f value`; do echo $i; openstack flavor show $i; done || true container_cli="podman" cont=$(sudo $container_cli ps | grep executor | awk {'print $1'}) sudo $container_cli exec --user root $cont bash -c "easy_install pip && pip install 'ara==1.0.0' || pip3 install 'ara==1.0.0'" # check it sudo $container_cli exec --user root $cont find /usr -type d -name ara ### --stop_docs