From 5bc957711ddefddc686af6a3be7ef8f984ee4779 Mon Sep 17 00:00:00 2001 From: Ryu Ishimoto Date: Thu, 15 Jan 2015 17:00:03 +0000 Subject: [PATCH] Clone neutron_lbaas for midonet plugin MidoNet plugin needs the 'neutron_lbaas' module available when it starts up without needing to start the LBaaS service. After the advanced service split, however, devstack clones 'neutron_lbaas' only when the 'lbaas' service is enabled. To get around this conflict, clone 'neutron_lbaas' everytime midonet is configured as the Neutron plugin. Change-Id: Ide620db383fc44a66a84d00b2365ec2e846469fe Closes-Bug: 1402242 --- lib/neutron_plugins/midonet | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/neutron_plugins/midonet b/lib/neutron_plugins/midonet index eb27ed63dd..23ad8b2020 100644 --- a/lib/neutron_plugins/midonet +++ b/lib/neutron_plugins/midonet @@ -29,6 +29,18 @@ function neutron_plugin_configure_common { Q_PLUGIN_CONF_PATH=etc/neutron/plugins/midonet Q_PLUGIN_CONF_FILENAME=midonet.ini Q_PLUGIN_CLASS="neutron.plugins.midonet.plugin.MidonetPluginV2" + + # MidoNet implements LBaaS API in the plugin, not as an LBaaS driver. + # In this model, the plugin references the 'neutron_lbaas' module but + # does not require starting an LBaaS service. Devstack, however, clones + # 'neutron_lbaas' only if 'lbaas' service is enabled. To get around this, + # always clone 'neutron_lbaas' so that it is made available to the plugin. + # Also, discontinue if the 'lbaas' service is enabled. + if is_service_enabled q-lbaas; then + die $LINENO "LBaaS service should be disabled for the MidoNet plugin" + fi + git_clone $NEUTRON_LBAAS_REPO $NEUTRON_LBAAS_DIR $NEUTRON_LBAAS_BRANCH + setup_develop $NEUTRON_LBAAS_DIR } function neutron_plugin_configure_debug_command {