Add support for existing bridges in data-port config

Bug #1761835 reported by Michael Skalka
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Neutron Gateway Charm
In Progress
Undecided
Michael Skalka

Bug Description

Currently the data port option does not allow support for existing bridges. With the current behavior NG will add the supplied bridge to OVS without checking if it is used or not, which results in a loss of network connectivity unexpectedly. This behavior is undesirable in circumstances where there are a limited number of physical interfaces available.

This can be worked around by instead adding a veth pair using an existing bridge and the desired OVS bridge and adding the veth-<existing-bridge> as the OVS bridge port.

For example, using the data-port config "br-data:br-bond0" where br-bond0 exists on the NG node would result in the following OVS configuration:

    Bridge br-data
        Controller "tcp:127.0.0.1:6633"
            is_connected: true
        fail_mode: secure
        Port br-data
            Interface br-data
                type: internal
        Port "veth-br-bond0"
            Interface "veth-br-bond0"
        Port phy-br-data
            Interface phy-br-data
                type: patch
                options: {peer=int-br-data}

The OVS charm already supports this functionality through charmhelpers/contrib/networking/ovs/__init__.add_ovsbridge_linuxbridge(). NG should make a similar check in neutron_utils.configure_ovs() and leverage this code to add a veth pair.

Tags: cpe-onsite
Michael Skalka (mskalka)
Changed in charm-neutron-gateway:
assignee: nobody → Michael Skalka (mskalka)
tags: added: cpe-onsite
Revision history for this message
Michael Skalka (mskalka) wrote :

This was previously addressed in https://bugs.launchpad.net/charms/+source/neutron-openvswitch/+bug/1635067 however the implementation was never carried over to the NG charm. Additionally the fix has since broken, as reported in https://bugs.launchpad.net/charm-helpers/+bug/1761840

Frode Nordahl (fnordahl)
Changed in charm-neutron-gateway:
status: New → In Progress
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.