virtualenv "/tmp/v/openstack"
# shellcheck source=/tmp/v/openstack/bin/activate disable=SC1091
source "/tmp/v/openstack/bin/activate"
-pip install --upgrade pip
-pip install --upgrade python-openstackclient python-heatclient
-pip install --upgrade pipdeptree
-pipdeptree
+pip install --upgrade "pip<10.0.0" setuptools
+# hardcoding cmd2 version as the most recent version seems to be broken.
+# reference: https://pypi.org/project/cmd2/#history
+pip install --upgrade cmd2==0.8.5 python-openstackclient python-heatclient
+pip freeze
cd /builder/openstack-hot || exit 1
CREATE_FAILED)
reason=$(openstack stack show "$STACK_NAME" -f value -c stack_status_reason)
echo "ERROR: Failed to initialize infrastructure. Reason: $reason"
+ openstack stack resource list -n 25 "$STACK_NAME"
echo "Deleting stack and possibly retrying to create..."
openstack stack delete --yes "$STACK_NAME"