Include l2gw_plugin.ini while starting Neutron server

The patch set fixes the problem in the l2gw devstack scripts
where the l2gw_plugin.ini file neither gets copied to /etc/neutron,
nor is supplied while starting the neutron server.

Change-Id: If519e1a5394954d14673302aa8792f27017f60fa
Closes-Bug: 1511614
stable/ocata 1.0.0
Maruti 7 years ago committed by Maruti Kamat
parent 2a69d92a51
commit fc09cb4961
  1. 3
      devstack/README.rst
  2. 3
      devstack/plugin.sh
  3. 1
      devstack/settings

@ -11,7 +11,8 @@
enable_plugin networking-l2gw https://github.com/openstack/networking-l2gw
enable_service l2gw-plugin l2gw-agent
OVSDB_HOSTS=<ovsdb_name>:<ip address>:<port>
Q_PLUGIN_EXTRA_CONF_PATH=/etc/neutron
Q_PLUGIN_EXTRA_CONF_FILES=(l2gw_plugin.ini)
3. run ``stack.sh``

@ -17,7 +17,7 @@ function install_l2gw {
}
function configure_agent_conf {
cp $L2GW_DIR/etc/l2gateway_agent.ini $L2GW_CONF_FILE
cp $L2GW_DIR/etc/l2gateway_agent.ini $L2GW_CONF_FILE
iniset $L2GW_CONF_FILE ovsdb ovsdb_hosts $OVSDB_HOSTS
}
@ -30,6 +30,7 @@ function run_l2gw_alembic_migration {
}
function configure_l2gw_plugin {
cp $L2GW_DIR/etc/l2gw_plugin.ini $L2GW_PLUGIN_CONF_FILE
_neutron_service_plugin_class_add $L2GW_PLUGIN
}

@ -3,6 +3,7 @@ L2GW_DIR=$DEST/networking-l2gw
L2GW_AGENT_BINARY="$NEUTRON_BIN_DIR/neutron-l2gateway-agent"
L2GW_PLUGIN=${L2GW_PLUGIN:-"networking_l2gw.services.l2gateway.plugin.L2GatewayPlugin"}
L2GW_CONF_FILE=/etc/neutron/l2gateway_agent.ini
L2GW_PLUGIN_CONF_FILE=/etc/neutron/l2gw_plugin.ini
#
# Each service you enable has the following meaning:
# l2gw-plugin - Add this config flag to enable l2gw service plugin

Loading…
Cancel
Save