[ovs-discuss] ovn-bridge-mappings configuration issue.

Rana, JaiSingh JaiSingh.Rana at cavium.com
Mon Aug 21 11:43:01 UTC 2017


For configuring external gateway, ovn-controller man page says:


                     A list of key-value pairs that map a physical network name to a local ovs bridge that  provides  connectivity
                     to  that  network.   An  example  value mapping two physical network names to two ovs bridges would be: phys‐

Created bridge br-ex and attached an interface p1p2 having external connectivity.

# ovs-vsctl --may-exist add-br br-ex -- set bridge br-ex protocols=OpenFlow13

# ovs-vsctl set open . external-ids:ovn-bridge-mappings=provider:br-ex
# ovs-vsctl --may-exist add-port br-ex p1p2

After configuring Openstack with external networks, ovn-controller on compute actually looks for bridge named "provider" in  ovn/controller/patch.c : add_bridge_mappings, which of-course is not created but throws error that "br-ex" not found as can be seen in ovn-controller.log

"2017-08-18T11:20:30.477Z|04536|patch|ERR| bridge not found for localnet port 'provnet-031111bf-ad69-4225-b69c-0cd23d7969af' with network name 'br-ex'"

When this external-id is defined as ovn-bridge-mappings=br-ex:br-ex, it works fine and no error is thrown.

Is this a bug or the field before ":" in this external-id represents bridge name.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20170821/8c627465/attachment-0001.html>

More information about the discuss mailing list