On Sat, Sep 18, 2021 at 4:29 AM Ammad Syed <[email protected]> wrote:
>
> Hi,
>
> I am using openstack neutron and using distributed floating IP with ovn 
> backend. The VMs that have floating IP NATed have distributed traffic and its 
> traffic goes out directly from compute node uplink.
>
> While the traffic of SNAT goes from lrp that is scheduled on the gateway 
> chassis. Routers are scheduled on HA node.
>
> # ovn-nbctl list logical_router_port f3ab4336-559a-4081-b975-cf3c9a1dd6ad
> _uuid               : f3ab4336-559a-4081-b975-cf3c9a1dd6ad
> enabled             : []
> external_ids        : 
> {"neutron:network_name"=neutron-1ce2354f-7a83-45ab-80f5-1e9dc1c16be9, 
> "neutron:revision_number"="2341", 
> "neutron:router_name"="ed24659b-6345-4ea7-b651-b8a0af875b5e", 
> "neutron:subnet_ids"="d3c02380-17d3-4381-ac42-f1260e7f8b79"}
> gateway_chassis     : [3bae14ea-6fe2-4c43-a8bb-1a99504662ef, 
> 42762997-1f91-404c-a170-3f6547b2e0a3, eb4f0959-d4b5-4129-8c02-6d48e15d3a68]
> ha_chassis_group    : []
> ipv6_prefix         : []
> ipv6_ra_configs     : {}
> mac                 : "fa:16:3e:c5:c9:64"
> name                : lrp-95b381bb-8dd7-47ba-a673-6724e8163c12
> networks            : ["x.x.x.x/x"]
> options             : {}
> peer                : []
>
> How can I check that the router is currently scheduled on which chassis ? and 
> how to migrate manually gateway router (lrp) from one gateway chassis to 
> another gateway chassis ?

In your case you can either do

ovn-sbctl show and see which chassis has claimed the chassis redirect
port -  "cr-lrp-95b381bb-8dd7-47ba-a673-6724e8163c12"
or you can run

ovn-sbctl list port_binding cr-lrp-95b381bb-8dd7-47ba-a673-6724e8163c12

Normally the gateway chassis with the highest priority will claim the
cr-lrp-* port.
To move over to another gateway chassis you need to adjust the
priority accordingly.

I think the neutron ml2ovn driver manages the priority.  However you
can definitely override the priority  by running -
ovn-nbctl lrp-set-gateway-chassis
lrp-95b381bb-8dd7-47ba-a673-6724e8163c12  <chassis_name>  <prirority>

I'm not sure if the neutron ml2ovn driver would revert back your changes or not.

Thanks
Numan


>
>
> --
> Ammad Ali
> _______________________________________________
> discuss mailing list
> [email protected]
> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
_______________________________________________
discuss mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Reply via email to