From 3d94736b60d9f3c2f159e81eab5841dba255515a Mon Sep 17 00:00:00 2001 From: Soren Hansen Date: Wed, 27 Nov 2013 10:06:58 +0100 Subject: [PATCH] Assign unique name to each fake nova-compute Without a unique name, the scheduler (and anything else, really) will consider each of these nova-compute processes as being one and the same, so only one entry in the services table, only one hypervisor seen by the scheduler, etc. Assigning unique names lets us simulate an arbitrary amount of nova-computes which is very handy for benchmarking the scheduler. Change-Id: Ie03aad81bd2a8e73b876a9eae934bc00bf2f71e9 --- lib/nova | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nova b/lib/nova index 6ab2000111..43a33127a9 100644 --- a/lib/nova +++ b/lib/nova @@ -650,7 +650,7 @@ function start_nova_compute() { screen_it n-cpu "cd $NOVA_DIR && sg $LIBVIRT_GROUP '$NOVA_BIN_DIR/nova-compute --config-file $compute_cell_conf'" elif [[ "$VIRT_DRIVER" = 'fake' ]]; then for i in `seq 1 $NUMBER_FAKE_NOVA_COMPUTE`; do - screen_it n-cpu "cd $NOVA_DIR && $NOVA_BIN_DIR/nova-compute --config-file $compute_cell_conf" + 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}')" done else if is_service_enabled n-cpu && [[ -r $NOVA_PLUGINS/hypervisor-$VIRT_DRIVER ]]; then