[ovs-dev] [PATCH] OVN pacemaker: Fix issues when started as pacemaker container bundles

Russell Bryant russell at ovn.org
Tue Jan 9 21:51:14 UTC 2018


On Mon, Jan 8, 2018 at 2:35 AM,  <nusiddiq at redhat.com> wrote:
> From: Numan Siddique <nusiddiq at redhat.com>
>
> When OVN dbs are created as a pacemaker container bundle resource with
> meta attribute "container-attribute-target=host" defined, the OVN OCF script
> is not working properly. It should use the function provided by the OCF lib
> 'ocf_attribute_target' [1] to get the physical hostname and use that to set the
> master/slave scores. This patch makes use of this function when setting the
> scores. Also fixes other issues seen and deletes the local unused function
> 'ovsdb_server_find_active_peers'.
>
> [1] - Please see this commit in ResourceAgents for more information on
> 'ocf_attribute_target'
> https://github.com/ClusterLabs/resource-agents/commit/9bd94137d77f770967d35db5de716590cfaf0435
>
> Signed-off-by: Numan Siddique <nusiddiq at redhat.com>
> CC: Russell Bryant <russell at ovn.org>
> ---
>  ovn/utilities/ovndb-servers.ocf | 51 ++++++++++++++++++++++-------------------
>  1 file changed, 27 insertions(+), 24 deletions(-)

Thanks, Numan.  I applied this to master, branch-2.8, and branch-2.7.

-- 
Russell Bryant


More information about the dev mailing list