Exercise cleanup
* Make common steps consistent
* Make comments consistent
aggregates.sh
boot_from_volume.sh
client-args.sh
client-env.sh
euca.sh
floating_ips.sh
sec_groups.sh
swift.sh
volumes.sh
Change-Id: Ib93dcdfdead93c259e3cd184fbc5ccc0a4a87c9a
diff --git a/exercises/client-args.sh b/exercises/client-args.sh
index b3e2ad8..894da74 100755
--- a/exercises/client-args.sh
+++ b/exercises/client-args.sh
@@ -8,6 +8,14 @@
echo "Begin DevStack Exercise: $0"
echo "*********************************************************************"
+# This script exits on an error so that errors don't compound and you see
+# only the first error that occured.
+set -o errexit
+
+# Print the commands being run so that we can see the command that triggers
+# an error. It is also useful for following allowing as the install occurs.
+set -o xtrace
+
# Settings
# ========
@@ -63,7 +71,7 @@
STATUS_KEYSTONE="Skipped"
else
echo -e "\nTest Keystone"
- if keystone $TENANT_ARG $ARGS catalog --service identity; then
+ if keystone $TENANT_ARG_DASH $ARGS_DASH catalog --service identity; then
STATUS_KEYSTONE="Succeeded"
else
STATUS_KEYSTONE="Failed"
@@ -82,7 +90,7 @@
else
# Test OSAPI
echo -e "\nTest Nova"
- if nova $TENANT_ARG $ARGS flavor-list; then
+ if nova $TENANT_ARG_DASH $ARGS_DASH flavor-list; then
STATUS_NOVA="Succeeded"
else
STATUS_NOVA="Failed"
@@ -91,6 +99,23 @@
fi
fi
+# Cinder client
+# -------------
+
+if [[ "$ENABLED_SERVICES" =~ "c-api" ]]; then
+ if [[ "$SKIP_EXERCISES" =~ "c-api" ]] ; then
+ STATUS_CINDER="Skipped"
+ else
+ echo -e "\nTest Cinder"
+ if cinder $TENANT_ARG_DASH $ARGS_DASH list; then
+ STATUS_CINDER="Succeeded"
+ else
+ STATUS_CINDER="Failed"
+ RETURN=1
+ fi
+ fi
+fi
+
# Glance client
# -------------
@@ -116,7 +141,7 @@
STATUS_SWIFT="Skipped"
else
echo -e "\nTest Swift"
- if swift $TENANT_ARG $ARGS stat; then
+ if swift $TENANT_ARG_DASH $ARGS_DASH stat; then
STATUS_SWIFT="Succeeded"
else
STATUS_SWIFT="Failed"
@@ -125,6 +150,8 @@
fi
fi
+set +o xtrace
+
# Results
# -------
@@ -137,6 +164,7 @@
echo -e "\n"
report "Keystone" $STATUS_KEYSTONE
report "Nova" $STATUS_NOVA
+report "Cinder" $STATUS_CINDER
report "Glance" $STATUS_GLANCE
report "Swift" $STATUS_SWIFT