[ovs-git] [openvswitch/ovs] 09991e: ovn-controller: add new external_id 'ovn-cms-optio...

GitHub noreply at github.com
Tue Jan 23 17:58:01 UTC 2018


  Branch: refs/heads/branch-2.9
  Home:   https://github.com/openvswitch/ovs
  Commit: 09991ed70cf5779afb98eebbae8b3edcbd9c1e7b
      https://github.com/openvswitch/ovs/commit/09991ed70cf5779afb98eebbae8b3edcbd9c1e7b
  Author: Daniel Alvarez <dalvarez at redhat.com>
  Date:   2018-01-23 (Tue, 23 Jan 2018)

  Changed paths:
    M ovn/controller/chassis.c
    M ovn/controller/ovn-controller.8.xml
    M ovn/ovn-sb.xml

  Log Message:
  -----------
  ovn-controller: add new external_id 'ovn-cms-options' to Chassis table

This patch makes ovn-controller sets the external_ids key
'ovn-cms-options' to its own Chassis table entry copying its
contents from the same external_ids key in the local OpenvSwitch
database.

The idea behind this patch is to allow setting general options
from the CMS Plugin to a particular chassis.

A good example of an use case is when we want to schedule a router
on a chassis from OpenStack. In this case, we may want to exclude
some nodes because they are more likely to be restarted for
maintenance operations or they simply won't have external connectivity.
This way, if the CMS/deployment tool would set the external_ids
as:

ovs-vsctl set open . external_ids:ovn-cms-options="enable-chassis-as-gw"

Then ovn-controller will write the options to the Chassis table in
southbound database. This value can be later read by the CMS in order
to decide which Chassis are eligible to schedule a router on.

Similarly, this new key would allow to specify additional options to
be consumed by the CMS.

Signed-off-by: Daniel Alvarez <dalvarez at redhat.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>




More information about the git mailing list