Pacemaker support for OVN DB servers
authorBabu Shanmugam <bschanmu@redhat.com>
Mon, 19 Sep 2016 07:41:44 +0000 (07:41 +0000)
committerNuman Siddique <nusiddiq@redhat.com>
Thu, 1 Jun 2017 06:24:53 +0000 (11:54 +0530)
commit48a6a0985d3b532a7f7712704706a03be6127a42
treed90439677e37b618a938fdc24a51251f275812e9
parent09b9b70c5d64608d7d8432aa371f537ce3bdef25
Pacemaker support for OVN DB servers

This patch enables OVN DB servers to be started in master/slave
mode in the pacemaker cluster.

A virtual IP resource is created first and then the pacemaker OVN OCF
resource - "ovn:ovndb-servers" is created. The OVN OCF resource is
configured to be colocated with the vip resource. The ovn-controller and
Neutron OVN ML2 mechanism driver which depends on OVN DB servers will
always connect to the vip address on which the master OVN DB servers
listen on.

The OVN OCF resource itself takes care of (re)starting ovn-northd service
on the master node and we don't have to manage it.

When HA is enabled for OVN DB servers, haproxy does not configure the OVN DB
servers in its configuration.

This patch requires OVS 2.7 in the overcloud.

Co-authored:by: Numan Siddique <nusiddiq@redhat.com>
Change-Id: I9dc366002ef5919339961e5deebbf8aa815c73db
Partial-bug: #1670564
manifests/haproxy.pp
manifests/profile/pacemaker/ovn_northd.pp [new file with mode: 0644]
releasenotes/notes/ovn-ha-c7668c26aefb8f2d.yaml [new file with mode: 0644]