[ovs-git] [openvswitch/ovs] f732a1: OVN: introduce Controller_Event table

Lorenzo Bianconi noreply at github.com
Fri Jul 12 20:42:54 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: f732a1ab9c574c1c17858a84cf7d25f294dfb151
      https://github.com/openvswitch/ovs/commit/f732a1ab9c574c1c17858a84cf7d25f294dfb151
  Author: Lorenzo Bianconi <lorenzo.bianconi at redhat.com>
  Date:   2019-07-12 (Fri, 12 Jul 2019)

  Changed paths:
    M include/ovn/logical-fields.h
    M ovn/controller/ovn-controller.c
    M ovn/controller/pinctrl.c
    M ovn/controller/pinctrl.h
    M ovn/lib/logical-fields.c
    M ovn/ovn-sb.ovsschema
    M ovn/ovn-sb.xml

  Log Message:
  -----------
  OVN: introduce Controller_Event table

Add Controller_Event table to OVN SBDB in order to
report CMS related event.
Introduce event_table hashmap array and controller_event related
structures to ovn-controller in order to track pending events
forwarded by ovs-vswitchd. Moreover integrate event_table hashmap
array with event_table ovn-sbdb table

Signed-off-by: Mark Michelson <mmichels at redhat.com>
Co-authored-by: Mark Michelson <mmichels at redhat.com>
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi at redhat.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>


  Commit: 5e0d2837c64a12e573b80fff00cb91cdd86db9c2
      https://github.com/openvswitch/ovs/commit/5e0d2837c64a12e573b80fff00cb91cdd86db9c2
  Author: Lorenzo Bianconi <lorenzo.bianconi at redhat.com>
  Date:   2019-07-12 (Fri, 12 Jul 2019)

  Changed paths:
    M include/ovn/actions.h
    M ovn/controller/lflow.c
    M ovn/controller/pinctrl.c
    M ovn/lib/actions.c
    M ovn/lib/ovn-l7.h
    M ovn/ovn-sb.xml
    M ovn/utilities/ovn-trace.c
    M tests/ovn.at
    M tests/test-ovn.c

  Log Message:
  -----------
  OVN: introduce trigger_event() action

Add trigger_event() ovn action in order to allow ovs-vswitchd to report
CMS related events.
This commit introduces a new event, empty_lb_backends. This event is
raised if a received packet is destined for a load balancer VIP that has
no configured backend destinations. For this event, the event info
includes the load balancer VIP, the load balancer UUID, and the
transport protocol.
The use case for this particular event is for the CMS to supply backend
resources to handle this traffic. For example, in Openshift, this event
can be used to spin up new containers to handle the incoming traffic.

Signed-off-by: Mark Michelson <mmichels at redhat.com>
Co-authored-by: Mark Michelson <mmichels at redhat.com>
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi at redhat.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>


  Commit: 821e1e54abcb5dd95c0c5efdab67dc7c0246a17b
      https://github.com/openvswitch/ovs/commit/821e1e54abcb5dd95c0c5efdab67dc7c0246a17b
  Author: Lorenzo Bianconi <lorenzo.bianconi at redhat.com>
  Date:   2019-07-12 (Fri, 12 Jul 2019)

  Changed paths:
    M ovn/northd/ovn-northd.c
    M ovn/ovn-nb.xml
    M tests/ovn.at

  Log Message:
  -----------
  OVN: use trigger_event action to report 'empty_lb_rule' events

Add northd logical flows in order to reports that the controller
received an IP packet for LB rule witn no backends.
This configuration is used by OpenShift to spin up a idle POD

Signed-off-by: Mark Michelson <mmichels at redhat.com>
Co-authored-by: Mark Michelson <mmichels at redhat.com>
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi at redhat.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>


Compare: https://github.com/openvswitch/ovs/compare/5fe179987d14...821e1e54abcb


More information about the git mailing list