OVN configures ovn-bridge-mappings on all the nodes even if they don't provide external connectivity

Bug #1730711 reported by Numan Siddique
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Numan Siddique

Bug Description

For OVN deployments, in order for any node (be it compute or controller) to provide external connectivity to the tenant traffic, ovn-controller service should be running and the ovn-bridge-mappings (eg. OVNBridgeMappings=datacentre:br-ex) should be defined. Tripleo when deployed with OVN does it, but it does on all the nodes where (ovn-controller service is enabled) even if those nodes do not have external connectivity. Neutron ML2 OVN driver considers all the nodes configured with "ovn-bridge-mappings" as candidates and could schedule on any node. This will cause problems on deployments where only controller (or network) nodes provide external connectivity.

This should be fixed.

Changed in tripleo:
assignee: nobody → Numan Siddique (numansiddique)
status: New → In Progress
Changed in tripleo:
milestone: none → queens-2
importance: Undecided → Medium
tags: added: networking
Revision history for this message
Steven Hardy (shardy) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/519680

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.openstack.org/518440
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=1e43e5b08f9d324e910cf1842d566d2372e5aeff
Submitter: Zuul
Branch: master

commit 1e43e5b08f9d324e910cf1842d566d2372e5aeff
Author: Numan Siddique <email address hidden>
Date: Wed Nov 8 09:23:08 2017 +0530

    OVN: Provide the option to define NeutronBridgeMappings as a role parameter

    In order for a node to provide external connectivity to tenant traffic,
    ovn-bridge-mappings should be defined which is read by ovn-controller service.
    This value comes from the T-H-T param 'NeutronBridgeMappings'. Presently
    this param is defined with the default value "datacentre:br-ex" and is configured
    on every node where ovn-controller service is enabled. This would cause problems
    if some of the hosts do not provide external connectvity.

    To solve this problem, this patch adds 'NeutronBridgeMappings' as a role parameter
    so that it can set to empty string if the role doesn't provide external connectivity.

    In the OVN environment template files, this param is set to empty for Compute role.

    Since NeutronBridgeMappings is also used by neutron-ovs-agent service, this patch
    also modifies puppet/services/neutron-ovs-agent.yaml to define NeutronBridgeMappings
    as a role parameter.

    Change-Id: I6a00b8dc1ff387cc5e1e62b4d9d7da5e1239ee31
    Closes-bug: #1730711

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-heat-templates (stable/pike)

Change abandoned by Alex Schultz (<email address hidden>) on branch: stable/pike
Review: https://review.openstack.org/519680

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/pike)

Reviewed: https://review.openstack.org/519680
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=7c3865d213bfb32593a68ab2d774efd131f7f32e
Submitter: Zuul
Branch: stable/pike

commit 7c3865d213bfb32593a68ab2d774efd131f7f32e
Author: Numan Siddique <email address hidden>
Date: Wed Nov 8 09:23:08 2017 +0530

    OVN: Provide the option to define NeutronBridgeMappings as a role parameter

    In order for a node to provide external connectivity to tenant traffic,
    ovn-bridge-mappings should be defined which is read by ovn-controller service.
    This value comes from the T-H-T param 'NeutronBridgeMappings'. Presently
    this param is defined with the default value "datacentre:br-ex" and is configured
    on every node where ovn-controller service is enabled. This would cause problems
    if some of the hosts do not provide external connectvity.

    To solve this problem, this patch adds 'NeutronBridgeMappings' as a role parameter
    so that it can set to empty string if the role doesn't provide external connectivity.

    In the OVN environment template files, this param is set to empty for Compute role.

    Since NeutronBridgeMappings is also used by neutron-ovs-agent service, this patch
    also modifies puppet/services/neutron-ovs-agent.yaml to define NeutronBridgeMappings
    as a role parameter.

    Change-Id: I6a00b8dc1ff387cc5e1e62b4d9d7da5e1239ee31
    Closes-bug: #1730711
    (cherry picked from commit 1e43e5b08f9d324e910cf1842d566d2372e5aeff)

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 7.0.5

This issue was fixed in the openstack/tripleo-heat-templates 7.0.5 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 8.0.0.0b2

This issue was fixed in the openstack/tripleo-heat-templates 8.0.0.0b2 development milestone.

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.