Browse code

Merge "Specify network UUID for network create with cells"

Jenkins authored on 2015/04/11 00:31:46
Showing 1 changed files
... ...
@@ -1214,6 +1214,10 @@ 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
1217 1221
         # Create a small network in the API cell
1218 1222
         $NOVA_BIN_DIR/nova-manage --config-file $NM_CONF network create "$PRIVATE_NETWORK_NAME" $FIXED_RANGE 1 $FIXED_NETWORK_SIZE $NETWORK_CREATE_ARGS
1219 1223
         # Everything else should go in the child cell