From 593828d4de9acc35228943c130e9880348771de6 Mon Sep 17 00:00:00 2001 From: Jesse Andrews Date: Wed, 14 Sep 2011 22:44:50 -0700 Subject: [PATCH] attempt to write a script that exercises nova cli --- exercise.sh | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/exercise.sh b/exercise.sh index d6771b0..b7c42d7 100755 --- a/exercise.sh +++ b/exercise.sh @@ -49,8 +49,26 @@ export NOVA_URL=${NOVA_URL:-http://$HOST:5000/v2.0/} export NOVA_VERSION=1.1 -# Servers -# ======= +# Launching a server +# ================== -# retreive a list of servers for our tenant +# List servers for tenant: nova list + +# List of flavors: +nova flavor-list + +# Images +# ------ + +# Nova has a **deprecated** way of listing images. +nova image-list + +# But we recommend using glance directly +glance index + +# show details of the active servers:: +# +# nova show 1234 +# +nova list | grep ACTIVE | cut -d \| -f2 | xargs -n1 nova show