Browse code

Prevent setting tempest fixed_network_name for cells

Instead of creating a network in both the API cell and child cell,
let tempest use the old behavior of not querying networks from the
API for testing server create.

Change-Id: I9809d2b2e796ff1a5ea7e4f25bbeb21bd4817a72

melanie witt authored on 2015/04/11 07:20:07
Showing 2 changed files
... ...
@@ -340,7 +340,9 @@ function configure_tempest {
340 340
     iniset $TEMPEST_CONFIG compute flavor_ref $flavor_ref
341 341
     iniset $TEMPEST_CONFIG compute flavor_ref_alt $flavor_ref_alt
342 342
     iniset $TEMPEST_CONFIG compute ssh_connect_method $ssh_connect_method
343
-    iniset $TEMPEST_CONFIG compute fixed_network_name $PRIVATE_NETWORK_NAME
343
+    if ! is_service_enabled n-cell; then
344
+        iniset $TEMPEST_CONFIG compute fixed_network_name $PRIVATE_NETWORK_NAME
345
+    fi
344 346
 
345 347
     # Compute Features
346 348
     # Run ``verify_tempest_config -ur`` to retrieve enabled extensions on API endpoints
... ...
@@ -1214,13 +1214,6 @@ if is_service_enabled q-svc; then
1214 1214
 elif is_service_enabled $DATABASE_BACKENDS && is_service_enabled n-net; then
1215 1215
     NM_CONF=${NOVA_CONF}
1216 1216
     if is_service_enabled n-cell; then
1217
-        # Both cells should have the same network uuid for server create
1218
-        if [[ ! "$NETWORK_CREATE_ARGS" =~ "--uuid" ]]; then
1219
-            NETWORK_CREATE_ARGS="$NETWORK_CREATE_ARGS --uuid $(uuidgen)"
1220
-        fi
1221
-        # Create a small network in the API cell
1222
-        $NOVA_BIN_DIR/nova-manage --config-file $NM_CONF network create "$PRIVATE_NETWORK_NAME" $FIXED_RANGE 1 $FIXED_NETWORK_SIZE $NETWORK_CREATE_ARGS
1223
-        # Everything else should go in the child cell
1224 1217
         NM_CONF=${NOVA_CELLS_CONF}
1225 1218
     fi
1226 1219