devstack fails when using l2gw

Bug #1560822 reported by Hiroyuki Ito
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-midonet
Fix Released
Medium
Kengo Hobo

Bug Description

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.

Revision history for this message
YAMAMOTO Takashi (yamamoto) wrote :

both of networking-l2gw's configure_l2gw_plugin and our l2gw_configure_midonet are
executed in post-config phase.

Changed in networking-midonet:
importance: Undecided → Medium
milestone: none → 2.0.0
status: New → Confirmed
Kengo Hobo (hobo-kengo)
Changed in networking-midonet:
assignee: nobody → Kengo Hobo (hobo-kengo)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to networking-midonet (master)

Fix proposed to branch: master
Review: https://review.openstack.org/319132

Changed in networking-midonet:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-midonet (master)

Reviewed: https://review.openstack.org/319132
Committed: https://git.openstack.org/cgit/openstack/networking-midonet/commit/?id=0c7e722e55918398b8ce9aae352f0b88450cc441
Submitter: Jenkins
Branch: master

commit 0c7e722e55918398b8ce9aae352f0b88450cc441
Author: hobo.kengo <email address hidden>
Date: Fri May 20 08:50:44 2016 +0000

    Solve devstack failure with L2 Gateway

    Change-Id: I525b2344a0cf77b1007d9e8f474103a3708eb8cd
    Closes-Bug: #1560822

Changed in networking-midonet:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.