Browse code

Merge "Assign unique name to each fake nova-compute"

Jenkins authored on 2013/12/10 05:38:26
Showing 1 changed files
... ...
@@ -652,7 +652,7 @@ function start_nova_compute() {
652 652
         screen_it n-cpu "cd $NOVA_DIR && sg $LIBVIRT_GROUP '$NOVA_BIN_DIR/nova-compute --config-file $compute_cell_conf'"
653 653
     elif [[ "$VIRT_DRIVER" = 'fake' ]]; then
654 654
         for i in `seq 1 $NUMBER_FAKE_NOVA_COMPUTE`; do
655
-            screen_it n-cpu "cd $NOVA_DIR && $NOVA_BIN_DIR/nova-compute --config-file $compute_cell_conf"
655
+            screen_it n-cpu "cd $NOVA_DIR && $NOVA_BIN_DIR/nova-compute --config-file $compute_cell_conf --config-file <(echo -e '[DEFAULT]\nhost=${HOSTNAME}${i}')"
656 656
         done
657 657
     else
658 658
         if is_service_enabled n-cpu && [[ -r $NOVA_PLUGINS/hypervisor-$VIRT_DRIVER ]]; then