Browse code

allow specification of scheduler and take flat interface from environmnet

Jesse Andrews authored on 2011/09/26 14:28:08
Showing 1 changed files
... ...
@@ -83,17 +83,18 @@ fi
83 83
 
84 84
 # Nova network configuration
85 85
 PUBLIC_INTERFACE=${PUBLIC_INTERFACE:-eth0}
86
-VLAN_INTERFACE=${PUBLIC_INTERFACE:-$PUBLIC_INTERFACE}
86
+VLAN_INTERFACE=${VLAN_INTERFACE:-$PUBLIC_INTERFACE}
87 87
 FLOATING_RANGE=${FLOATING_RANGE:-172.24.4.1/28}
88 88
 FIXED_RANGE=${FIXED_RANGE:-10.0.0.0/16}
89 89
 NET_MAN=${NET_MAN:-FlatDHCPManager}
90 90
 EC2_DMZ_HOST=${EC2_DMZ_HOST:-$HOST_IP}
91 91
 FLAT_NETWORK_BRIDGE=${FLAT_NETWORK_BRIDGE:-br100}
92
+SCHEDULER=${SCHEDULER:-nova.scheduler.simple.SimpleScheduler}
92 93
 
93 94
 # If you are using FlatDHCP on multiple hosts, set the ``FLAT_INTERFACE``
94 95
 # variable but make sure that the interface doesn't already have an
95 96
 # ip or you risk breaking things.
96
-FLAT_INTERFACE=eth0
97
+FLAT_INTERFACE=${FLAT_INTERFACE:-eth0}
97 98
 
98 99
 # Nova hypervisor configuration.  We default to **kvm** but will drop back to
99 100
 # **qemu** if we are unable to load the kvm module.
... ...
@@ -346,6 +347,7 @@ function add_nova_flag {
346 346
 rm -f $NOVA_DIR/bin/nova.conf
347 347
 add_nova_flag "--verbose"
348 348
 add_nova_flag "--nodaemon"
349
+add_nova_flag "--scheduler_driver=$SCHEDULER"
349 350
 add_nova_flag "--dhcpbridge_flagfile=$NOVA_DIR/bin/nova.conf"
350 351
 add_nova_flag "--network_manager=nova.network.manager.$NET_MAN"
351 352
 add_nova_flag "--my_ip=$HOST_IP"