[ci] print available images, volumes, nets

It would be nice to print all available images, volumes and networks before
rally launch. It can be helpful while debugging.

Change-Id: I1990ea601ad4e21785b7710d4fb531cf75e7bfa8
This commit is contained in:
Andrey Kurilin 2017-04-03 11:18:34 +03:00
parent 3929e5a995
commit 2135dfb940

View File

@ -34,12 +34,26 @@ function setUp () {
source ~/.rally/openrc admin admin source ~/.rally/openrc admin admin
if [[ $(rally deployment config) == *"project_name"* ]]; then
export OS_IDENTITY_API_VERSION=3
else
export OS_IDENTITY_API_VERSION="2.0"
fi
OPENSTACK_SERVICES=$(openstack service list)
if [[ $OPENSTACK_SERVICES == *"glance"* ]]; then
openstack image list
fi
if [[ $OPENSTACK_SERVICES == *"cinder"* ]]; then
openstack volume list --all-projects
fi
if [[ $OPENSTACK_SERVICES == *"neutron"* ]]; then
openstack network list
fi
# NOTE(ikhudoshyn): Create additional users and register a new env # NOTE(ikhudoshyn): Create additional users and register a new env
# so that we could run scenarios using 'existing_users' context # so that we could run scenarios using 'existing_users' context
if [ "$DEVSTACK_GATE_PREPOPULATE_USERS" = "1" ]; then if [ "$DEVSTACK_GATE_PREPOPULATE_USERS" = "1" ]; then
# NOTE(andreykurilin): let's hardcode version, since we already
# hardcoded arguments for users...
export OS_IDENTITY_API_VERSION=3
openstack --version openstack --version
openstack project create rally-test-project-1 openstack project create rally-test-project-1
@ -136,4 +150,4 @@ function run () {
| gzip > rally-plot/resources_diff.txt.gz | gzip > rally-plot/resources_diff.txt.gz
exit $retval exit $retval
} }