When setting L2 Gateway Management Service enabled referring to midonet/local.conf.sample and run stack.sh, it fails with the following error:
++ /opt/stack/networking-midonet/devstack/plugin.sh:source:L76: configure_neutron_midonet
++ /opt/stack/networking-midonet/devstack/midonet/functions:configure_neutron_midonet:L54: :
++ /opt/stack/networking-midonet/devstack/plugin.sh:source:L77: is_service_enabled l2gw-plugin
++ /home/ubuntu/devstack/functions-common:is_service_enabled:L2025: local xtrace
+++ /home/ubuntu/devstack/functions-common:is_service_enabled:L2026: set +o
+++ /home/ubuntu/devstack/functions-common:is_service_enabled:L2026: grep xtrace
++ /home/ubuntu/devstack/functions-common:is_service_enabled:L2026: xtrace='set -o xtrace'
++ /home/ubuntu/devstack/functions-common:is_service_enabled:L2027: set +o xtrace
++ /home/ubuntu/devstack/functions-common:is_service_enabled:L2055: return 0
++ /opt/stack/networking-midonet/devstack/plugin.sh:source:L78: l2gw_configure_midonet
++ /opt/stack/networking-midonet/devstack/functions:l2gw_configure_midonet:L62: L2GW_SERVICE_PROVIDER=L2GW:Midonet:midonet.neutron.services.l2gateway.service_drivers.l2gw_midonet.MidonetL2gwDriver:default
++ /opt/stack/networking-midonet/devstack/functions:l2gw_configure_midonet:L63: inicomment /etc/neutron/l2gw_plugin.ini service_providers service_provider
++ /home/ubuntu/devstack/inc/ini-config:inicomment:L42: local xtrace
+++ /home/ubuntu/devstack/inc/ini-config:inicomment:L43: set +o
+++ /home/ubuntu/devstack/inc/ini-config:inicomment:L43: grep xtrace
++ /home/ubuntu/devstack/inc/ini-config:inicomment:L43: xtrace='set -o xtrace'
++ /home/ubuntu/devstack/inc/ini-config:inicomment:L44: set +o xtrace
sed: can't read /etc/neutron/l2gw_plugin.ini: No such file or directory
Error on exit
It seems that an execution order of devstack plugins causes this error.
both of networking-l2gw's configure_ l2gw_plugin and our l2gw_configure_ midonet are
executed in post-config phase.