| ... | ... |
@@ -20,6 +20,7 @@ |
| 20 | 20 |
# - init_neutron_third_party |
| 21 | 21 |
# - start_neutron_third_party |
| 22 | 22 |
# - create_nova_conf_neutron |
| 23 |
+# - configure_neutron_after_post_config |
|
| 23 | 24 |
# - start_neutron_service_and_check |
| 24 | 25 |
# - check_neutron_third_party_integration |
| 25 | 26 |
# - start_neutron_agents |
| ... | ... |
@@ -331,7 +332,6 @@ function configure_mutnauq {
|
| 331 | 331 |
_configure_neutron_common |
| 332 | 332 |
iniset_rpc_backend neutron $NEUTRON_CONF |
| 333 | 333 |
|
| 334 |
- # goes before q-svc to init Q_SERVICE_PLUGIN_CLASSES |
|
| 335 | 334 |
if is_service_enabled q-metering; then |
| 336 | 335 |
_configure_neutron_metering |
| 337 | 336 |
fi |
| ... | ... |
@@ -446,6 +446,13 @@ function install_neutron_agent_packages_mutnauq {
|
| 446 | 446 |
fi |
| 447 | 447 |
} |
| 448 | 448 |
|
| 449 |
+# Finish neutron configuration |
|
| 450 |
+function configure_neutron_after_post_config {
|
|
| 451 |
+ if [[ $Q_SERVICE_PLUGIN_CLASSES != '' ]]; then |
|
| 452 |
+ iniset $NEUTRON_CONF DEFAULT service_plugins $Q_SERVICE_PLUGIN_CLASSES |
|
| 453 |
+ fi |
|
| 454 |
+} |
|
| 455 |
+ |
|
| 449 | 456 |
# Start running processes, including screen |
| 450 | 457 |
function start_neutron_service_and_check {
|
| 451 | 458 |
local service_port=$Q_PORT |
| ... | ... |
@@ -794,10 +801,6 @@ function _configure_neutron_service {
|
| 794 | 794 |
# Update either configuration file with plugin |
| 795 | 795 |
iniset $NEUTRON_CONF DEFAULT core_plugin $Q_PLUGIN_CLASS |
| 796 | 796 |
|
| 797 |
- if [[ $Q_SERVICE_PLUGIN_CLASSES != '' ]]; then |
|
| 798 |
- iniset $NEUTRON_CONF DEFAULT service_plugins $Q_SERVICE_PLUGIN_CLASSES |
|
| 799 |
- fi |
|
| 800 |
- |
|
| 801 | 797 |
iniset $NEUTRON_CONF DEFAULT debug $ENABLE_DEBUG_LOG_LEVEL |
| 802 | 798 |
iniset $NEUTRON_CONF oslo_policy policy_file $Q_POLICY_FILE |
| 803 | 799 |
iniset $NEUTRON_CONF DEFAULT allow_overlapping_ips $Q_ALLOW_OVERLAPPING_IP |
| ... | ... |
@@ -1261,6 +1261,7 @@ if is_service_enabled neutron-api; then |
| 1261 | 1261 |
start_neutron_api |
| 1262 | 1262 |
elif is_service_enabled q-svc; then |
| 1263 | 1263 |
echo_summary "Starting Neutron" |
| 1264 |
+ configure_neutron_after_post_config |
|
| 1264 | 1265 |
start_neutron_service_and_check |
| 1265 | 1266 |
elif is_service_enabled $DATABASE_BACKENDS && is_service_enabled n-net; then |
| 1266 | 1267 |
NM_CONF=${NOVA_CONF}
|