- flag telling nova quantum manager to use DHCP is incorrect
- OVS quantum plugin no longer has default sql_connection string.
- only run quantum OVS agent is openvswitch is enabled
- add ovs-vsctl to sudoers file.
Change-Id: I1e9b3fe987b3e29d0d4f670b2d964777d9cc3e1b
| ... | ... |
@@ -1104,7 +1104,7 @@ if [[ "$ENABLED_SERVICES" =~ "quantum" ]]; then |
| 1104 | 1104 |
add_nova_flag "--libvirt_vif_type=ethernet" |
| 1105 | 1105 |
add_nova_flag "--libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtOpenVswitchDriver" |
| 1106 | 1106 |
add_nova_flag "--linuxnet_interface_driver=nova.network.linux_net.LinuxOVSInterfaceDriver" |
| 1107 |
- add_nova_flag "--quantum-use-dhcp" |
|
| 1107 |
+ add_nova_flag "--quantum_use_dhcp" |
|
| 1108 | 1108 |
fi |
| 1109 | 1109 |
else |
| 1110 | 1110 |
add_nova_flag "--network_manager=nova.network.manager.$NET_MAN" |
| ... | ... |
@@ -1315,10 +1315,13 @@ if [[ "$ENABLED_SERVICES" =~ "q-agt" ]]; then |
| 1315 | 1315 |
sudo ovs-vsctl --no-wait -- --if-exists del-br $OVS_BRIDGE |
| 1316 | 1316 |
sudo ovs-vsctl --no-wait add-br $OVS_BRIDGE |
| 1317 | 1317 |
sudo ovs-vsctl --no-wait br-set-external-id $OVS_BRIDGE bridge-id br-int |
| 1318 |
+ |
|
| 1319 |
+ # Start up the quantum <-> openvswitch agent |
|
| 1320 |
+ QUANTUM_OVS_CONFIG_FILE=$QUANTUM_DIR/etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini |
|
| 1321 |
+ sed -i -e "s/^sql_connection =.*$/sql_connection = mysql:\/\/$MYSQL_USER:$MYSQL_PASSWORD@$MYSQL_HOST\/ovs_quantum/g" $QUANTUM_OVS_CONFIG_FILE |
|
| 1322 |
+ screen_it q-agt "sleep 4; sudo python $QUANTUM_DIR/quantum/plugins/openvswitch/agent/ovs_quantum_agent.py $QUANTUM_OVS_CONFIG_FILE -v" |
|
| 1318 | 1323 |
fi |
| 1319 | 1324 |
|
| 1320 |
- # Start up the quantum <-> openvswitch agent |
|
| 1321 |
- screen_it q-agt "sleep 4; sudo python $QUANTUM_DIR/quantum/plugins/openvswitch/agent/ovs_quantum_agent.py $QUANTUM_DIR/etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini -v" |
|
| 1322 | 1325 |
fi |
| 1323 | 1326 |
|
| 1324 | 1327 |
# If we're using Quantum (i.e. q-svc is enabled), network creation has to |