Source instack.answers in test-overcloud to use IMAGE_PATH

This commit is contained in:
Giulio Fidente 2014-10-23 17:20:24 +02:00
parent 5fdc9b4f89
commit 51bc46ab03
1 changed files with 4 additions and 1 deletions

View File

@ -17,6 +17,9 @@ fi
export NODES_JSON=${NODES_JSON:-"instackenv.json"}
export TE_DATAFILE=$NODES_JSON
echo "Sourcing answers file from instack.answers..."
source ~/instack.answers
source tripleo-overcloud-passwords
export OVERCLOUD_IP=$(nova list | grep controller0.*ctlplane | sed -e "s/.*=\\([0-9.]*\\).*/\1/")
@ -30,7 +33,7 @@ export no_proxy=$no_proxy,$OVERCLOUD_IP
if ! glance image-show user 2>&1 1>/dev/null; then
glance image-create --name user --public --disk-format qcow2 \
--container-format bare --file fedora-user.qcow2
--container-format bare --file $IMAGE_PATH/fedora-user.qcow2
fi
tripleo wait_for 30 10 nova service-list --binary nova-compute 2\>/dev/null \| grep 'enabled.*\ up\ '