OVS bridges and ports are not marked as managed by the charm

Bug #1917025 reported by Przemyslaw Lal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Neutron Open vSwitch Charm
Fix Released
Undecided
Przemyslaw Lal

Bug Description

There's an inconsistent behaviour between neutron-openvswtich and neutron-gateway charms in marking OVS bridges and ports as managed by the charm.

The neutron-gateway charm sets `external_ids` to `{charm-neutron-gateway=managed}` for bridges and ports configured and populated by the charm:

$ juju ssh neutron-gateway/2 sudo ovs-vsctl get bridge br-data external_ids
{charm-neutron-gateway=managed}

$ juju ssh neutron-gateway/2 sudo ovs-vsctl get bridge br-int external_ids
{charm-neutron-gateway=managed}

$ juju ssh neutron-gateway/2 sudo ovs-vsctl get interface ens7 external_ids master
{charm-neutron-gateway=br-data}

This behaviour allows the operator to determine which interfaces are managed by the charm and enables further work towards fully managed bridges and ports as discussed in related bug reports [0] and [1].

However, despite very similar configuration options and functionality, this behaviour is currently missing in the neutron-openvswitch charm:

$ juju ssh neutron-openvswitch/0 sudo ovs-vsctl get bridge br-int external_ids
{}

$ juju ssh neutron-openvswitch/0 sudo ovs-vsctl get bridge br-data external_ids
{}

$ juju ssh neutron-openvswitch/0 sudo ovs-vsctl get interface ens7 external_ids
{}

The expected behaviour would be that the neutron-openvswitch charm populates `external_ids` for all bridges and ports that it has configured, e.g.:

$ juju ssh neutron-openvswitch/0 sudo ovs-vsctl get bridge br-int external_ids
{charm-neutron-openvswitch=managed}

$ juju ssh neutron-openvswitch/0 sudo ovs-vsctl get bridge br-data external_ids
{charm-neutron-openvswitch=managed}

$ juju ssh neutron-openvswitch/0 sudo ovs-vsctl get interface ens7 external_ids
{charm-neutron-openvswitch=br-data}

The solution would be to replicate functionality implemented for charm-neutron-gateway in this patchset [2].

[0] https://bugs.launchpad.net/charm-neutron-openvswitch/+bug/1915967
[1] https://bugs.launchpad.net/charm-neutron-gateway/+bug/1809190/
[2] https://review.opendev.org/c/openstack/charm-neutron-gateway/+/717074/

Changed in charm-neutron-openvswitch:
assignee: nobody → Przemysław Lal (przemeklal)
status: New → In Progress
Revision history for this message
Przemyslaw Lal (przemeklal) wrote :
Revision history for this message
Przemyslaw Lal (przemeklal) wrote :

Patch has been successfully merged by Zuul.

Changed in charm-neutron-openvswitch:
status: In Progress → Fix Committed
Changed in charm-neutron-openvswitch:
milestone: none → 21.04
Changed in charm-neutron-openvswitch:
status: Fix Committed → 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.