Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OVN pacemaker: Fix issues when started as pacemaker container bundles
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' ClusterLabs/resource-agents@9bd9413 Signed-off-by: Numan Siddique <nusiddiq@redhat.com> CC: Russell Bryant <russell@ovn.org> Signed-off-by: Russell Bryant <russell@ovn.org>
- Loading branch information
1 parent
89d7994
commit 4c29ede
Showing
1 changed file
with
27 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters