← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2019217] [NEW] [OVN] L3 port scheduler, defaults to use all chassis; stop this behaviour

 

Public bug reported:

The OVN L3 port scheduler assigns the chassis for the router ports. It
retrieves the chassis list that are configured as gateway nodes
(external_ids:ovn-cms-options=enable-chassis-as-gw). This list could be
also filtered by availability zones; the scheduler will filter out those
chassis without the requested AZ.

In case of not returning any chassis ("candidates") [1], the scheduler
assumes that "any hypervisor/chassis can host a router gateway port"
(from the patch [2] introducing this functionality).

The scope of this patch is to revert this default behaviour. If there
are no candidates available, the L3 scheduler will fail and report the
issue. The OVN router port won't be scheduled in any chassis. This error
will be written in the logs. If that comes from an API call (for example
when assigning an external GW to a router), the call will fail.

[1]https://opendev.org/openstack/neutron/src/commit/47d4ec4e99d5aae62656c88206eb6a77f70d4a8b/neutron/scheduler/l3_ovn_scheduler.py#L63
[2]https://review.opendev.org/c/openstack/networking-ovn/+/332434

** Affects: neutron
     Importance: Low
     Assignee: Rodolfo Alonso (rodolfo-alonso-hernandez)
         Status: New

** Changed in: neutron
     Assignee: (unassigned) => Rodolfo Alonso (rodolfo-alonso-hernandez)

** Changed in: neutron
   Importance: Undecided => Low

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/2019217

Title:
  [OVN] L3 port scheduler, defaults to use all chassis; stop this
  behaviour

Status in neutron:
  New

Bug description:
  The OVN L3 port scheduler assigns the chassis for the router ports. It
  retrieves the chassis list that are configured as gateway nodes
  (external_ids:ovn-cms-options=enable-chassis-as-gw). This list could
  be also filtered by availability zones; the scheduler will filter out
  those chassis without the requested AZ.

  In case of not returning any chassis ("candidates") [1], the scheduler
  assumes that "any hypervisor/chassis can host a router gateway port"
  (from the patch [2] introducing this functionality).

  The scope of this patch is to revert this default behaviour. If there
  are no candidates available, the L3 scheduler will fail and report the
  issue. The OVN router port won't be scheduled in any chassis. This
  error will be written in the logs. If that comes from an API call (for
  example when assigning an external GW to a router), the call will
  fail.

  [1]https://opendev.org/openstack/neutron/src/commit/47d4ec4e99d5aae62656c88206eb6a77f70d4a8b/neutron/scheduler/l3_ovn_scheduler.py#L63
  [2]https://review.opendev.org/c/openstack/networking-ovn/+/332434

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/2019217/+subscriptions



Follow ups