Scenarios were failing to deploy due to lack of disk space after making
multiple overcloud images for each role. This removes the per role
images after uploading into glance.
JIRA: APEX-279
Change-Id: I09df89e778d36cb08df26df83ae0d7cda267799f
Signed-off-by: Tim Rozet <trozet@redhat.com>
(cherry picked from commit
c552a3c5b0c1c34293930fef8525057fc519a457)
KERNEL=$(glance image-show overcloud-full | grep 'kernel_id' | cut -d '|' -f 3 | xargs)
RAMDISK_ID=$(glance image-show ${RAMDISK} | grep id | awk {'print $4'})
glance image-create --name $ROLE-overcloud-full --disk-format qcow2 --file $ROLE-overcloud-full.qcow2 --container-format bare --property ramdisk_id=$RAMDISK_ID --property kernel_id=$KERNEL --is-public True
+ rm -f $ROLE-overcloud-full.qcow2
fi
if [ "$ROLE" == "Controller" ]; then