These stack lists were useful for debugging while creating the stack
retry script however is a bit too spammy in logs. Let's remove them
until we need them again.
Change-Id: I9f3c1da114ef42439622c0a81ff3fa3b50c501d7
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
for try in $(seq $STACK_RETRIES); do
# shellcheck disable=SC1083
openstack stack create --timeout "$OS_TIMEOUT" -t {stack-template} -e "$WORKSPACE/opendaylight-infra-environment.yaml" --parameter "job_name=$VM_NAME" --parameter "silo=$SILO" "$STACK_NAME"
- openstack stack list
echo "$try: Waiting for $OS_TIMEOUT minutes to create $STACK_NAME."
for i in $(seq $OS_TIMEOUT); do
sleep 60
;;
CREATE_FAILED)
echo "ERROR: Failed to initialize infrastructure. Deleting stack and possibly retrying to create..."
- openstack stack list
openstack stack delete --yes "$STACK_NAME"
openstack stack show "$STACK_NAME"
# after stack delete, poll for 10m to know when stack is fully removed