Gitweb: http://git.fedorahosted.org/git/?p=cluster.git;a=commitdiff;h=d4ec75242b7f7…
Commit: d4ec75242b7f7e7463113eb36cfba07112630125
Parent: 7d2ddea9781b8ff33e1e28dfbdca041be290195a
Author: Christine Caulfield <ccaulfie(a)redhat.com>
AuthorDate: Thu Nov 26 14:04:17 2015 +0000
Committer: Christine Caulfield <ccaulfie(a)redhat.com>
CommitterDate: Thu Nov 26 14:04:17 2015 +0000
schema: add RRP attributes to <token>
Signed-off-by: Christine Caulfield <ccaulfie(a)redhat.com>
---
config/tools/xml/cluster.rng.in.head | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/config/tools/xml/cluster.rng.in.head b/config/tools/xml/cluster.rng.in.head
index f42269c..e811909 100644
--- a/config/tools/xml/cluster.rng.in.head
+++ b/config/tools/xml/cluster.rng.in.head
@@ -290,6 +290,28 @@ To validate your cluster.conf against this schema, run:
rha:default="3" rha:sample="5"/>
</optional>
<optional>
+ <attribute name="rrp_problem_count_mcast_threshold" rha:description="This
+ specifies the number of times a problem is detected with
+ multicast before setting the link faulty for passive rrp mode.
+ This variable is unused in active rrp mode.
+ The default is 10 times rrp_problem_count_threshold."/>
+ </optional>
+ <optional>
+ <attribute name="rrp_problem_count_timeout" rha:description="This
+ specifies the time in milliseconds to wait before decrementing
+ the problem count by 1 for a particular ring to ensure a
+ link is not marked faulty for transient network failures.
+ The default is 2000 milliseconds."
+ rha:default="2000"/>
+ </optional>
+ <optional>
+ <attribute name="rrp_autorecovery_check_timeout" rha:description="This
+ specifies the time in milliseconds to check if the failed
+ ring can be auto-recovered.
+ The default is 1000 milliseconds."
+ rha:default="1000"/>
+ </optional>
+ <optional>
<attribute name="secauth" rha:description="This attribute specifies
that HMAC/SHA1 authentication should be used to authenticate all
messages. It further specifies that all data should be encrypted
Gitweb: http://git.fedorahosted.org/git/?p=cluster.git;a=commitdiff;h=8bbfa3a95f00e…
Commit: 8bbfa3a95f00ebe738c3b07ae58a0f1e15d61014
Parent: 23bae572bfed8abde2f03b878505e511ae92a43a
Author: Christine Caulfield <ccaulfie(a)redhat.com>
AuthorDate: Fri Nov 20 15:51:46 2015 +0000
Committer: Christine Caulfield <ccaulfie(a)redhat.com>
CommitterDate: Fri Nov 20 15:51:46 2015 +0000
cman: Improve node name matching
Be more intelligent about matching node names. Instead of just
looking at the short name and the FQDN, we now look at increasingly
more specific names until we match or fail.
Signed-off-by: Christine Caulfield <ccaulfie(a)redhat.com>
---
cman/daemon/cman-preconfig.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/cman/daemon/cman-preconfig.c b/cman/daemon/cman-preconfig.c
index 99ee80d..ce29e4a 100644
--- a/cman/daemon/cman-preconfig.c
+++ b/cman/daemon/cman-preconfig.c
@@ -468,16 +468,19 @@ static int verify_nodename(struct objdb_iface_ver0 *objdb, char *node)
if (nodelist_byname(objdb, cluster_parent_handle, node))
return 0;
- /* If nodename was from uname, try a domain-less version of it */
+ /* If nodename was from uname, try to match with increasingly more
+ * specific versions of it
+ */
strcpy(nodename2, node);
- dot = strchr(nodename2, '.');
- if (dot) {
+ dot = strrchr(nodename2, '.');
+ while (dot) {
*dot = '\0';
if (nodelist_byname(objdb, cluster_parent_handle, nodename2)) {
strcpy(node, nodename2);
return 0;
}
+ dot = strrchr(nodename2, '.');
}
/* If nodename (from uname) is domain-less, try to match against
Gitweb: http://git.fedorahosted.org/git/?p=gfs2-utils.git;a=commitdiff;h=c6814b82a6…
Commit: c6814b82a6ea54d5214b29ca9eceb37de5412ea5
Parent: 2ad0448631bdc37a82d6e7db4e48ea48b892716c
Author: Bob Peterson <rpeterso(a)redhat.com>
AuthorDate: Thu Nov 12 12:08:27 2015 -0600
Committer: Bob Peterson <rpeterso(a)redhat.com>
CommitterDate: Thu Nov 12 12:25:33 2015 -0600
gfs2_edit: Log descriptor continuation blocks print wrong info
Log descriptor continuation blocks are printing misleading
information. First, the offset from the start of the journal is
reported incorrectly. Second, it's trying to print the block
types when it shouldn't. The faulty output looks like this:
0x40e9 (j+4093000): Log descriptor continuation block
0x48202b none 0x481e2d none 0x481c2f none 0x481a31 none
In practice, these are used to continue the job of "revoke" log
descriptors, which have no blocks that follow, so it should not
try to report the types of the blocks that follow.
This patch fixes the journal offset calculation and skips the
reporting of the block types that follow, so the output looks
is given correctly as:
0x40e9 (j+4093): Log descriptor continuation block
0x48202b 0x481e2d 0x481c2f 0x481a31
---
gfs2/edit/journal.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/gfs2/edit/journal.c b/gfs2/edit/journal.c
index 15e02de..80c8738 100644
--- a/gfs2/edit/journal.c
+++ b/gfs2/edit/journal.c
@@ -610,7 +610,8 @@ void dump_journal(const char *journal, int tblk)
} else if ((ld_blocks > 0) &&
(sbd.gfs1 || block_type == GFS2_METATYPE_LB)) {
print_gfs2("0x%"PRIx64" (j+%4"PRIx64"): Log descriptor"
- " continuation block", abs_block, jb);
+ " continuation block", abs_block,
+ ((jb + wrappt) % j_size) / sbd.bsize);
eol(0);
print_gfs2(" ");
ld_blocks -= print_ld_blks((uint64_t *)dummy_bh.b_data +
@@ -619,7 +620,7 @@ void dump_journal(const char *journal, int tblk)
(dummy_bh.b_data +
sbd.bsize), start_line,
tblk, &tblk_off, 0, rgd,
- 0, 1, NULL, 1);
+ 0, 1, NULL, 0);
} else if (block_type == 0) {
continue;
}