| ... | ... |
@@ -163,7 +163,7 @@ services are started in background and managed by `swift-init` tool. |
| 163 | 163 |
Basic Setup |
| 164 | 164 |
|
| 165 | 165 |
In order to enable Neutron a single node setup, you'll need the |
| 166 |
-following settings in your `localrc` section: |
|
| 166 |
+following settings in your `local.conf`: |
|
| 167 | 167 |
|
| 168 | 168 |
disable_service n-net |
| 169 | 169 |
enable_service q-svc |
| ... | ... |
@@ -172,7 +172,6 @@ following settings in your `localrc` section: |
| 172 | 172 |
enable_service q-l3 |
| 173 | 173 |
enable_service q-meta |
| 174 | 174 |
enable_service q-metering |
| 175 |
- enable_service neutron |
|
| 176 | 175 |
# Optional, to enable tempest configuration as part of DevStack |
| 177 | 176 |
enable_service tempest |
| 178 | 177 |
|
| ... | ... |
@@ -180,24 +179,44 @@ Then run `stack.sh` as normal. |
| 180 | 180 |
|
| 181 | 181 |
DevStack supports setting specific Neutron configuration flags to the |
| 182 | 182 |
service, Open vSwitch plugin and LinuxBridge plugin configuration files. |
| 183 |
-To make use of this feature, the following variables are defined and can |
|
| 184 |
-be configured in your `localrc` section: |
|
| 183 |
+To make use of this feature, the settings can be added to ``local.conf``. |
|
| 184 |
+The old ``Q_XXX_EXTRA_XXX_OPTS`` variables are deprecated and will be removed |
|
| 185 |
+in the near future. The ``local.conf`` headers for the replacements are: |
|
| 185 | 186 |
|
| 186 |
- Variable Name Config File Section Modified |
|
| 187 |
- ------------------------------------------------------------------------------------- |
|
| 188 |
- Q_SRV_EXTRA_OPTS Plugin `OVS` (for Open Vswitch) or `LINUX_BRIDGE` (for LinuxBridge) |
|
| 189 |
- Q_AGENT_EXTRA_AGENT_OPTS Plugin AGENT |
|
| 190 |
- Q_AGENT_EXTRA_SRV_OPTS Plugin `OVS` (for Open Vswitch) or `LINUX_BRIDGE` (for LinuxBridge) |
|
| 191 |
- Q_SRV_EXTRA_DEFAULT_OPTS Service DEFAULT |
|
| 187 |
+* ``Q_SRV_EXTRA_OPTS``: |
|
| 188 |
+ |
|
| 189 |
+ [[post-config|/$Q_PLUGIN_CONF_FILE]] |
|
| 190 |
+ [linuxbridge] # or [ovs] |
|
| 191 |
+ |
|
| 192 |
+* ``Q_AGENT_EXTRA_AGENT_OPTS``: |
|
| 193 |
+ |
|
| 194 |
+ [[post-config|/$Q_PLUGIN_CONF_FILE]] |
|
| 195 |
+ [agent] |
|
| 196 |
+ |
|
| 197 |
+* ``Q_AGENT_EXTRA_SRV_OPTS``: |
|
| 192 | 198 |
|
| 193 |
-An example of using the variables in your `localrc` section is below: |
|
| 199 |
+ [[post-config|/$Q_PLUGIN_CONF_FILE]] |
|
| 200 |
+ [linuxbridge] # or [ovs] |
|
| 201 |
+ |
|
| 202 |
+* ``Q_SRV_EXTRA_DEFAULT_OPTS``: |
|
| 203 |
+ |
|
| 204 |
+ [[post-config|$NEUTRON_CONF]] |
|
| 205 |
+ [DEFAULT] |
|
| 194 | 206 |
|
| 195 |
- Q_AGENT_EXTRA_AGENT_OPTS=(tunnel_type=vxlan vxlan_udp_port=8472) |
|
| 196 |
- Q_SRV_EXTRA_OPTS=(tenant_network_type=vxlan) |
|
| 207 |
+Example extra config in `local.conf`: |
|
| 208 |
+ |
|
| 209 |
+ [[post-config|/$Q_PLUGIN_CONF_FILE]] |
|
| 210 |
+ [agent] |
|
| 211 |
+ tunnel_type=vxlan |
|
| 212 |
+ vxlan_udp_port=8472 |
|
| 213 |
+ |
|
| 214 |
+ [[post-config|$NEUTRON_CONF]] |
|
| 215 |
+ [DEFAULT] |
|
| 216 |
+ tenant_network_type=vxlan |
|
| 197 | 217 |
|
| 198 | 218 |
DevStack also supports configuring the Neutron ML2 plugin. The ML2 plugin |
| 199 |
-can run with the OVS, LinuxBridge, or Hyper-V agents on compute hosts. A |
|
| 200 |
-simple way to configure the ml2 plugin is shown below: |
|
| 219 |
+can run with the OVS, LinuxBridge, or Hyper-V agents on compute hosts. This |
|
| 220 |
+is a simple way to configure the ml2 plugin: |
|
| 201 | 221 |
|
| 202 | 222 |
# VLAN configuration |
| 203 | 223 |
Q_PLUGIN=ml2 |
| ... | ... |
@@ -223,7 +242,6 @@ To change this, set the `Q_AGENT` variable to the agent you want to run |
| 223 | 223 |
Q_ML2_PLUGIN_GRE_TYPE_OPTIONS GRE TypeDriver options. Defaults to none. |
| 224 | 224 |
Q_ML2_PLUGIN_VXLAN_TYPE_OPTIONS VXLAN TypeDriver options. Defaults to none. |
| 225 | 225 |
Q_ML2_PLUGIN_VLAN_TYPE_OPTIONS VLAN TypeDriver options. Defaults to none. |
| 226 |
- Q_AGENT_EXTRA_AGENT_OPTS Extra configuration options to pass to the OVS or LinuxBridge Agent. |
|
| 227 | 226 |
|
| 228 | 227 |
# Heat |
| 229 | 228 |
|
| ... | ... |
@@ -1356,12 +1356,14 @@ if [[ -n "$DEPRECATED_TEXT" ]]; then |
| 1356 | 1356 |
echo_summary "WARNING: $DEPRECATED_TEXT" |
| 1357 | 1357 |
fi |
| 1358 | 1358 |
|
| 1359 |
+# TODO(dtroyer): Remove EXTRA_OPTS after stable/icehouse branch is cut |
|
| 1359 | 1360 |
# Specific warning for deprecated configs |
| 1360 | 1361 |
if [[ -n "$EXTRA_OPTS" ]]; then |
| 1361 | 1362 |
echo "" |
| 1362 | 1363 |
echo_summary "WARNING: EXTRA_OPTS is used" |
| 1363 | 1364 |
echo "You are using EXTRA_OPTS to pass configuration into nova.conf." |
| 1364 | 1365 |
echo "Please convert that configuration in localrc to a nova.conf section in local.conf:" |
| 1366 |
+ echo "EXTRA_OPTS will be removed early in the Juno development cycle" |
|
| 1365 | 1367 |
echo " |
| 1366 | 1368 |
[[post-config|\$NOVA_CONF]] |
| 1367 | 1369 |
[DEFAULT] |
| ... | ... |
@@ -1372,11 +1374,13 @@ if [[ -n "$EXTRA_OPTS" ]]; then |
| 1372 | 1372 |
done |
| 1373 | 1373 |
fi |
| 1374 | 1374 |
|
| 1375 |
+# TODO(dtroyer): Remove EXTRA_BAREMETAL_OPTS after stable/icehouse branch is cut |
|
| 1375 | 1376 |
if [[ -n "$EXTRA_BAREMETAL_OPTS" ]]; then |
| 1376 | 1377 |
echo "" |
| 1377 |
- echo_summary "WARNING: EXTRA_OPTS is used" |
|
| 1378 |
- echo "You are using EXTRA_OPTS to pass configuration into nova.conf." |
|
| 1378 |
+ echo_summary "WARNING: EXTRA_BAREMETAL_OPTS is used" |
|
| 1379 |
+ echo "You are using EXTRA_BAREMETAL_OPTS to pass configuration into nova.conf." |
|
| 1379 | 1380 |
echo "Please convert that configuration in localrc to a nova.conf section in local.conf:" |
| 1381 |
+ echo "EXTRA_BAREMETAL_OPTS will be removed early in the Juno development cycle" |
|
| 1380 | 1382 |
echo " |
| 1381 | 1383 |
[[post-config|\$NOVA_CONF]] |
| 1382 | 1384 |
[baremetal] |
| ... | ... |
@@ -1387,13 +1391,49 @@ if [[ -n "$EXTRA_BAREMETAL_OPTS" ]]; then |
| 1387 | 1387 |
done |
| 1388 | 1388 |
fi |
| 1389 | 1389 |
|
| 1390 |
+# TODO(dtroyer): Remove Q_AGENT_EXTRA_AGENT_OPTS after stable/juno branch is cut |
|
| 1391 |
+if [[ -n "$Q_AGENT_EXTRA_AGENT_OPTS" ]]; then |
|
| 1392 |
+ echo "" |
|
| 1393 |
+ echo_summary "WARNING: Q_AGENT_EXTRA_AGENT_OPTS is used" |
|
| 1394 |
+ echo "You are using Q_AGENT_EXTRA_AGENT_OPTS to pass configuration into $NEUTRON_CONF." |
|
| 1395 |
+ echo "Please convert that configuration in localrc to a $NEUTRON_CONF section in local.conf:" |
|
| 1396 |
+ echo "Q_AGENT_EXTRA_AGENT_OPTS will be removed early in the 'K' development cycle" |
|
| 1397 |
+ echo " |
|
| 1398 |
+[[post-config|/\$Q_PLUGIN_CONF_FILE]] |
|
| 1399 |
+[DEFAULT] |
|
| 1400 |
+" |
|
| 1401 |
+ for I in "${Q_AGENT_EXTRA_AGENT_OPTS[@]}"; do
|
|
| 1402 |
+ # Replace the first '=' with ' ' for iniset syntax |
|
| 1403 |
+ echo ${I}
|
|
| 1404 |
+ done |
|
| 1405 |
+fi |
|
| 1406 |
+ |
|
| 1407 |
+# TODO(dtroyer): Remove Q_AGENT_EXTRA_SRV_OPTS after stable/juno branch is cut |
|
| 1408 |
+if [[ -n "$Q_AGENT_EXTRA_SRV_OPTS" ]]; then |
|
| 1409 |
+ echo "" |
|
| 1410 |
+ echo_summary "WARNING: Q_AGENT_EXTRA_SRV_OPTS is used" |
|
| 1411 |
+ echo "You are using Q_AGENT_EXTRA_SRV_OPTS to pass configuration into $NEUTRON_CONF." |
|
| 1412 |
+ echo "Please convert that configuration in localrc to a $NEUTRON_CONF section in local.conf:" |
|
| 1413 |
+ echo "Q_AGENT_EXTRA_AGENT_OPTS will be removed early in the 'K' development cycle" |
|
| 1414 |
+ echo " |
|
| 1415 |
+[[post-config|/\$Q_PLUGIN_CONF_FILE]] |
|
| 1416 |
+[DEFAULT] |
|
| 1417 |
+" |
|
| 1418 |
+ for I in "${Q_AGENT_EXTRA_SRV_OPTS[@]}"; do
|
|
| 1419 |
+ # Replace the first '=' with ' ' for iniset syntax |
|
| 1420 |
+ echo ${I}
|
|
| 1421 |
+ done |
|
| 1422 |
+fi |
|
| 1423 |
+ |
|
| 1424 |
+# TODO(dtroyer): Remove Q_DHCP_EXTRA_DEFAULT_OPTS after stable/icehouse branch is cut |
|
| 1390 | 1425 |
if [[ -n "$Q_DHCP_EXTRA_DEFAULT_OPTS" ]]; then |
| 1391 | 1426 |
echo "" |
| 1392 | 1427 |
echo_summary "WARNING: Q_DHCP_EXTRA_DEFAULT_OPTS is used" |
| 1393 | 1428 |
echo "You are using Q_DHCP_EXTRA_DEFAULT_OPTS to pass configuration into $Q_DHCP_CONF_FILE." |
| 1394 | 1429 |
echo "Please convert that configuration in localrc to a $Q_DHCP_CONF_FILE section in local.conf:" |
| 1430 |
+ echo "Q_DHCP_EXTRA_DEFAULT_OPTS will be removed early in the Juno development cycle" |
|
| 1395 | 1431 |
echo " |
| 1396 |
-[[post-config|\$Q_DHCP_CONF_FILE]] |
|
| 1432 |
+[[post-config|/\$Q_DHCP_CONF_FILE]] |
|
| 1397 | 1433 |
[DEFAULT] |
| 1398 | 1434 |
" |
| 1399 | 1435 |
for I in "${Q_DHCP_EXTRA_DEFAULT_OPTS[@]}"; do
|
| ... | ... |
@@ -1402,11 +1442,13 @@ if [[ -n "$Q_DHCP_EXTRA_DEFAULT_OPTS" ]]; then |
| 1402 | 1402 |
done |
| 1403 | 1403 |
fi |
| 1404 | 1404 |
|
| 1405 |
+# TODO(dtroyer): Remove Q_SRV_EXTRA_DEFAULT_OPTS after stable/icehouse branch is cut |
|
| 1405 | 1406 |
if [[ -n "$Q_SRV_EXTRA_DEFAULT_OPTS" ]]; then |
| 1406 | 1407 |
echo "" |
| 1407 | 1408 |
echo_summary "WARNING: Q_SRV_EXTRA_DEFAULT_OPTS is used" |
| 1408 | 1409 |
echo "You are using Q_SRV_EXTRA_DEFAULT_OPTS to pass configuration into $NEUTRON_CONF." |
| 1409 | 1410 |
echo "Please convert that configuration in localrc to a $NEUTRON_CONF section in local.conf:" |
| 1411 |
+ echo "Q_SRV_EXTRA_DEFAULT_OPTS will be removed early in the Juno development cycle" |
|
| 1410 | 1412 |
echo " |
| 1411 | 1413 |
[[post-config|\$NEUTRON_CONF]] |
| 1412 | 1414 |
[DEFAULT] |