Some Neutron plugins require controllers and multiple backend services
to operate correctly. This patch adds the framework for third party
plugins to run sanity checks after Neutron Server has started.
This simple addition may reveal potential configuration pitfalls
much earlier in the dev/test cycle, thus speeding up the build
churn process.
The first plugin that uses this framework is the VMware NSX one.
Closes-bug: #1265671
Change-Id: I17f9c5c8e828316ff03f0eff42ae4ae6c6c58733
| ... | ... |
@@ -958,6 +958,11 @@ function stop_neutron_third_party() {
|
| 958 | 958 |
_neutron_third_party_do stop |
| 959 | 959 |
} |
| 960 | 960 |
|
| 961 |
+# check_neutron_third_party_integration() - Check that third party integration is sane |
|
| 962 |
+function check_neutron_third_party_integration() {
|
|
| 963 |
+ _neutron_third_party_do check |
|
| 964 |
+} |
|
| 965 |
+ |
|
| 961 | 966 |
|
| 962 | 967 |
# Restore xtrace |
| 963 | 968 |
$XTRACE |
| ... | ... |
@@ -1116,6 +1116,7 @@ fi |
| 1116 | 1116 |
if is_service_enabled q-svc; then |
| 1117 | 1117 |
echo_summary "Starting Neutron" |
| 1118 | 1118 |
start_neutron_service_and_check |
| 1119 |
+ check_neutron_third_party_integration |
|
| 1119 | 1120 |
elif is_service_enabled $DATABASE_BACKENDS && is_service_enabled n-net; then |
| 1120 | 1121 |
NM_CONF=${NOVA_CONF}
|
| 1121 | 1122 |
if is_service_enabled n-cell; then |