Merge pull request #39 from matelakat/update-flavors

Use standard flavors
This commit is contained in:
matelakat 2014-02-06 12:31:33 +00:00
commit 4a79b428b8
2 changed files with 4 additions and 2 deletions

View File

@ -7,6 +7,7 @@ KEY_NAME="$1"
KEY_PATH="$2" KEY_PATH="$2"
IMAGE="node" IMAGE="node"
INSTANCE_NAME="$3" INSTANCE_NAME="$3"
FLAVOR="$4"
. $THISDIR/functions . $THISDIR/functions
@ -17,7 +18,7 @@ nova delete "$INSTANCE_NAME" || true
nova boot \ nova boot \
--poll \ --poll \
--image "$IMAGE" \ --image "$IMAGE" \
--flavor "performance1-8" \ --flavor "$FLAVOR" \
--key-name $KEY_NAME $INSTANCE_NAME --key-name $KEY_NAME $INSTANCE_NAME
IP=$(xitc-get-ip-address-of-instance $INSTANCE_NAME) IP=$(xitc-get-ip-address-of-instance $INSTANCE_NAME)

View File

@ -10,6 +10,7 @@ KEY_NAME="$1"
KEY_PATH="$2" KEY_PATH="$2"
INSTANCE_NAME="$3" INSTANCE_NAME="$3"
NODE_IMAGE="node" NODE_IMAGE="node"
FLAVOR="$4"
# Use this configuration to start with a cloud image # Use this configuration to start with a cloud image
IMAGE="62df001e-87ee-407c-b042-6f4e13f5d7e1" IMAGE="62df001e-87ee-407c-b042-6f4e13f5d7e1"
@ -26,7 +27,7 @@ nova image-delete "$NODE_IMAGE" || true
nova boot \ nova boot \
--poll \ --poll \
--image "$IMAGE" \ --image "$IMAGE" \
--flavor "performance1-8" \ --flavor "$FLAVOR" \
--key-name $KEY_NAME $INSTANCE_NAME --key-name $KEY_NAME $INSTANCE_NAME
IP=$(xitc-get-ip-address-of-instance $INSTANCE_NAME) IP=$(xitc-get-ip-address-of-instance $INSTANCE_NAME)