[ovs-dev] [PATCH] OVN pacemaker: Fix issues when started as pacemaker container bundles
Numan Siddique
nusiddiq at redhat.com
Wed Jan 10 16:59:59 UTC 2018
On Jan 10, 2018 3:21 AM, "Russell Bryant" <russell at ovn.org> wrote:
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.
Thanks Russell for the review and applying it.
Regards
Numan
--
Russell Bryant
More information about the dev
mailing list