Great!  Thanks for following up to confirm that it works for you.

On Tue, Aug 22, 2017 at 6:14 AM, Rana, JaiSingh
<jaisingh.r...@cavium.com> wrote:
> Hi Russel,
>
>
> Thanks for quick reply. Yes i created external network on controller node
> with
>
>
> neutron net-create NET-EXT --provider:network_type flat
> --provider:physical_network br-ex --router:external=true --shared
>
> Once i corrected option '--provider' option with
> '--provider:physical_network provider', its working fine on compute node.
>
> -Jai
>
>
> ________________________________
> From: Russell Bryant <russ...@ovn.org>
> Sent: 21 August 2017 21:17
> To: Rana, JaiSingh
> Cc: ovs-discuss@openvswitch.org
> Subject: Re: [ovs-discuss] ovn-bridge-mappings configuration issue.
>
> On Mon, Aug 21, 2017 at 7:43 AM, Rana, JaiSingh
> <jaisingh.r...@cavium.com> wrote:
>> Hi,
>>
>> For configuring external gateway, ovn-controller man page says:
>>
>> "
>>
>> external_ids:ovn-bridge-mappings
>>                      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‐
>>                      net1:br-eth0,physnet2:br-eth1.
>> "
>>
>>
>> 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.
>
> The error message indicates that a "localnet" was created with a
> "network_name" of "br-ex".  The "network_name" should be set to
> "provider" in this example.
>
> --
> Russell Bryant



-- 
Russell Bryant
_______________________________________________
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Reply via email to