The --ip_range in stack.sh remains due to nova-manage needing to be fixed.
(Rebased 05Dec2013)
Change-Id: Ic0f93d41b6edfdc5deb82ae820e2c0c5a8bce24e
| ... | ... |
@@ -149,7 +149,7 @@ fi |
| 149 | 149 |
|
| 150 | 150 |
# Create the bootable volume |
| 151 | 151 |
start_time=$(date +%s) |
| 152 |
-cinder create --image-id $IMAGE --display_name=$VOL_NAME --display_description "test bootable volume: $VOL_NAME" $DEFAULT_VOLUME_SIZE || \ |
|
| 152 |
+cinder create --image-id $IMAGE --display-name=$VOL_NAME --display-description "test bootable volume: $VOL_NAME" $DEFAULT_VOLUME_SIZE || \ |
|
| 153 | 153 |
die $LINENO "Failure creating volume $VOL_NAME" |
| 154 | 154 |
if ! timeout $ACTIVE_TIMEOUT sh -c "while ! cinder list | grep $VOL_NAME | grep available; do sleep 1; done"; then |
| 155 | 155 |
echo "Volume $VOL_NAME not created" |
| ... | ... |
@@ -165,10 +165,10 @@ die_if_not_set $LINENO VOL_ID "Failure retrieving volume ID for $VOL_NAME" |
| 165 | 165 |
# Boot instance |
| 166 | 166 |
# ------------- |
| 167 | 167 |
|
| 168 |
-# Boot using the --block_device_mapping param. The format of mapping is: |
|
| 168 |
+# Boot using the --block-device-mapping param. The format of mapping is: |
|
| 169 | 169 |
# <dev_name>=<id>:<type>:<size(GB)>:<delete_on_terminate> |
| 170 | 170 |
# Leaving the middle two fields blank appears to do-the-right-thing |
| 171 |
-VM_UUID=$(nova boot --flavor $INSTANCE_TYPE --image $IMAGE --block-device-mapping vda=$VOL_ID --security_groups=$SECGROUP --key_name $KEY_NAME $VM_NAME | grep ' id ' | get_field 2) |
|
| 171 |
+VM_UUID=$(nova boot --flavor $INSTANCE_TYPE --image $IMAGE --block-device-mapping vda=$VOL_ID --security-groups=$SECGROUP --key-name $KEY_NAME $VM_NAME | grep ' id ' | get_field 2) |
|
| 172 | 172 |
die_if_not_set $LINENO VM_UUID "Failure launching $VM_NAME" |
| 173 | 173 |
|
| 174 | 174 |
# Check that the status is active within ACTIVE_TIMEOUT seconds |
| ... | ... |
@@ -56,10 +56,8 @@ unset OS_PASSWORD |
| 56 | 56 |
unset OS_AUTH_URL |
| 57 | 57 |
|
| 58 | 58 |
# Common authentication args |
| 59 |
-TENANT_ARG="--os_tenant_name=$x_TENANT_NAME" |
|
| 60 |
-TENANT_ARG_DASH="--os-tenant-name=$x_TENANT_NAME" |
|
| 61 |
-ARGS="--os_username=$x_USERNAME --os_password=$x_PASSWORD --os_auth_url=$x_AUTH_URL" |
|
| 62 |
-ARGS_DASH="--os-username=$x_USERNAME --os-password=$x_PASSWORD --os-auth-url=$x_AUTH_URL" |
|
| 59 |
+TENANT_ARG="--os-tenant-name=$x_TENANT_NAME" |
|
| 60 |
+ARGS="--os-username=$x_USERNAME --os-password=$x_PASSWORD --os-auth-url=$x_AUTH_URL" |
|
| 63 | 61 |
|
| 64 | 62 |
# Set global return |
| 65 | 63 |
RETURN=0 |
| ... | ... |
@@ -71,7 +69,7 @@ if [[ "$ENABLED_SERVICES" =~ "key" ]]; then |
| 71 | 71 |
STATUS_KEYSTONE="Skipped" |
| 72 | 72 |
else |
| 73 | 73 |
echo -e "\nTest Keystone" |
| 74 |
- if keystone $TENANT_ARG_DASH $ARGS_DASH catalog --service identity; then |
|
| 74 |
+ if keystone $TENANT_ARG $ARGS catalog --service identity; then |
|
| 75 | 75 |
STATUS_KEYSTONE="Succeeded" |
| 76 | 76 |
else |
| 77 | 77 |
STATUS_KEYSTONE="Failed" |
| ... | ... |
@@ -90,7 +88,7 @@ if [[ "$ENABLED_SERVICES" =~ "n-api" ]]; then |
| 90 | 90 |
else |
| 91 | 91 |
# Test OSAPI |
| 92 | 92 |
echo -e "\nTest Nova" |
| 93 |
- if nova $TENANT_ARG_DASH $ARGS_DASH flavor-list; then |
|
| 93 |
+ if nova $TENANT_ARG $ARGS flavor-list; then |
|
| 94 | 94 |
STATUS_NOVA="Succeeded" |
| 95 | 95 |
else |
| 96 | 96 |
STATUS_NOVA="Failed" |
| ... | ... |
@@ -107,7 +105,7 @@ if [[ "$ENABLED_SERVICES" =~ "c-api" ]]; then |
| 107 | 107 |
STATUS_CINDER="Skipped" |
| 108 | 108 |
else |
| 109 | 109 |
echo -e "\nTest Cinder" |
| 110 |
- if cinder $TENANT_ARG_DASH $ARGS_DASH list; then |
|
| 110 |
+ if cinder $TENANT_ARG $ARGS list; then |
|
| 111 | 111 |
STATUS_CINDER="Succeeded" |
| 112 | 112 |
else |
| 113 | 113 |
STATUS_CINDER="Failed" |
| ... | ... |
@@ -124,7 +122,7 @@ if [[ "$ENABLED_SERVICES" =~ "g-api" ]]; then |
| 124 | 124 |
STATUS_GLANCE="Skipped" |
| 125 | 125 |
else |
| 126 | 126 |
echo -e "\nTest Glance" |
| 127 |
- if glance $TENANT_ARG_DASH $ARGS_DASH image-list; then |
|
| 127 |
+ if glance $TENANT_ARG $ARGS image-list; then |
|
| 128 | 128 |
STATUS_GLANCE="Succeeded" |
| 129 | 129 |
else |
| 130 | 130 |
STATUS_GLANCE="Failed" |
| ... | ... |
@@ -141,7 +139,7 @@ if [[ "$ENABLED_SERVICES" =~ "swift" || "$ENABLED_SERVICES" =~ "s-proxy" ]]; the |
| 141 | 141 |
STATUS_SWIFT="Skipped" |
| 142 | 142 |
else |
| 143 | 143 |
echo -e "\nTest Swift" |
| 144 |
- if swift $TENANT_ARG_DASH $ARGS_DASH stat; then |
|
| 144 |
+ if swift $TENANT_ARG $ARGS stat; then |
|
| 145 | 145 |
STATUS_SWIFT="Succeeded" |
| 146 | 146 |
else |
| 147 | 147 |
STATUS_SWIFT="Failed" |
| ... | ... |
@@ -127,7 +127,7 @@ fi |
| 127 | 127 |
# Boot instance |
| 128 | 128 |
# ------------- |
| 129 | 129 |
|
| 130 |
-VM_UUID=$(nova boot --flavor $INSTANCE_TYPE --image $IMAGE --security_groups=$SECGROUP $VM_NAME | grep ' id ' | get_field 2) |
|
| 130 |
+VM_UUID=$(nova boot --flavor $INSTANCE_TYPE --image $IMAGE --security-groups=$SECGROUP $VM_NAME | grep ' id ' | get_field 2) |
|
| 131 | 131 |
die_if_not_set $LINENO VM_UUID "Failure launching $VM_NAME" |
| 132 | 132 |
|
| 133 | 133 |
# Check that the status is active within ACTIVE_TIMEOUT seconds |
| ... | ... |
@@ -238,9 +238,9 @@ function create_network {
|
| 238 | 238 |
source $TOP_DIR/openrc admin admin |
| 239 | 239 |
local TENANT_ID=$(get_tenant_id $TENANT) |
| 240 | 240 |
source $TOP_DIR/openrc $TENANT $TENANT |
| 241 |
- local NET_ID=$(neutron net-create --tenant_id $TENANT_ID $NET_NAME $EXTRA| grep ' id ' | awk '{print $4}' )
|
|
| 241 |
+ local NET_ID=$(neutron net-create --tenant-id $TENANT_ID $NET_NAME $EXTRA| grep ' id ' | awk '{print $4}' )
|
|
| 242 | 242 |
die_if_not_set $LINENO NET_ID "Failure creating NET_ID for $TENANT_ID $NET_NAME $EXTRA" |
| 243 |
- neutron subnet-create --ip_version 4 --tenant_id $TENANT_ID --gateway $GATEWAY $NET_ID $CIDR |
|
| 243 |
+ neutron subnet-create --ip-version 4 --tenant-id $TENANT_ID --gateway $GATEWAY $NET_ID $CIDR |
|
| 244 | 244 |
neutron-debug probe-create --device-owner compute $NET_ID |
| 245 | 245 |
source $TOP_DIR/openrc demo demo |
| 246 | 246 |
} |
| ... | ... |
@@ -130,7 +130,7 @@ fi |
| 130 | 130 |
# Boot instance |
| 131 | 131 |
# ------------- |
| 132 | 132 |
|
| 133 |
-VM_UUID=$(nova boot --flavor $INSTANCE_TYPE --image $IMAGE --security_groups=$SECGROUP $VM_NAME | grep ' id ' | get_field 2) |
|
| 133 |
+VM_UUID=$(nova boot --flavor $INSTANCE_TYPE --image $IMAGE --security-groups=$SECGROUP $VM_NAME | grep ' id ' | get_field 2) |
|
| 134 | 134 |
die_if_not_set $LINENO VM_UUID "Failure launching $VM_NAME" |
| 135 | 135 |
|
| 136 | 136 |
# Check that the status is active within ACTIVE_TIMEOUT seconds |
| ... | ... |
@@ -156,7 +156,7 @@ fi |
| 156 | 156 |
|
| 157 | 157 |
# Create a new volume |
| 158 | 158 |
start_time=$(date +%s) |
| 159 |
-cinder create --display_name $VOL_NAME --display_description "test volume: $VOL_NAME" $DEFAULT_VOLUME_SIZE || \ |
|
| 159 |
+cinder create --display-name $VOL_NAME --display-description "test volume: $VOL_NAME" $DEFAULT_VOLUME_SIZE || \ |
|
| 160 | 160 |
die $LINENO "Failure creating volume $VOL_NAME" |
| 161 | 161 |
if ! timeout $ACTIVE_TIMEOUT sh -c "while ! cinder list | grep $VOL_NAME | grep available; do sleep 1; done"; then |
| 162 | 162 |
die $LINENO "Volume $VOL_NAME not created" |
| ... | ... |
@@ -1083,7 +1083,7 @@ if is_service_enabled key && is_service_enabled swift3 && is_service_enabled nov |
| 1083 | 1083 |
die_if_not_set $LINENO NOVA_USER_ID "Failure retrieving NOVA_USER_ID for nova" |
| 1084 | 1084 |
NOVA_TENANT_ID=$(keystone tenant-list | grep " $SERVICE_TENANT_NAME " | get_field 1) |
| 1085 | 1085 |
die_if_not_set $LINENO NOVA_TENANT_ID "Failure retrieving NOVA_TENANT_ID for $SERVICE_TENANT_NAME" |
| 1086 |
- CREDS=$(keystone ec2-credentials-create --user_id $NOVA_USER_ID --tenant_id $NOVA_TENANT_ID) |
|
| 1086 |
+ CREDS=$(keystone ec2-credentials-create --user-id $NOVA_USER_ID --tenant-id $NOVA_TENANT_ID) |
|
| 1087 | 1087 |
ACCESS_KEY=$(echo "$CREDS" | awk '/ access / { print $4 }')
|
| 1088 | 1088 |
SECRET_KEY=$(echo "$CREDS" | awk '/ secret / { print $4 }')
|
| 1089 | 1089 |
iniset $NOVA_CONF DEFAULT s3_access_key "$ACCESS_KEY" |