From 43663ec87b80f730f9d5242affe7d4ceed61c0dd Mon Sep 17 00:00:00 2001 From: Jan Pokorný Date: Mon, 8 Dec 2014 16:19:09 +0100 Subject: filters/ccs-propagate-cman: mimic cman-preconfig more closely MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also refactor some respective bits out of ccs2needlexml. Signed-off-by: Jan Pokorný --- __root__/run-check | 3 + filters/cluster/__init__.py | 227 ++++++++++++++++++++++++++++---------------- 2 files changed, 148 insertions(+), 82 deletions(-) diff --git a/__root__/run-check b/__root__/run-check index 455c8d6..1275c37 100755 --- a/__root__/run-check +++ b/__root__/run-check @@ -151,6 +151,9 @@ logging { totem { version: 2 cluster_name: one + consensus: 12000 + token: 10000 + join: 60 } EOF rm -f -- "${testcib}" "${testcoro}" diff --git a/filters/cluster/__init__.py b/filters/cluster/__init__.py index 4c5be13..03b17f3 100644 --- a/filters/cluster/__init__.py +++ b/filters/cluster/__init__.py @@ -24,29 +24,153 @@ ccs_propagate_cman = '''\ + - - + select="cman/@broadcast = 'yes' + or + cman/@transport = 'udpb'"/> + + + + + + + + + + + + select="cman/multicast/@addr"/> + select="cman/@port + |cman/multicast/@port"/> - + select="cman/multicast/@ttl"/> + + + + + + + + + + + + + + 60 + + + + + + + passive + 3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + iba + + + + + + + + + + + + + + yes @@ -68,43 +192,8 @@ ccs_propagate_cman = '''\ - - - - - - - + + yes @@ -172,28 +261,6 @@ ccs2needlexml = ('''\ - - - - - - - iba - - - - - - - - - - 10000 - -- cgit