Merge "yaml file for bundle-based-reconciliaion script"
[releng/builder.git] / jjb / opendaylight-infra-stack.sh
index 0659504abc0fd2b416357dafd047d71e83c93cb9..af5d2fa13ed7e5bc1034242eb184af610d349717 100644 (file)
 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
 
@@ -48,6 +49,7 @@ for try in $(seq $STACK_RETRIES); do
             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"