Skip to content

Commit

Permalink
Merge branch 'master' of github.com:ClusterLabs/pacemaker
Browse files Browse the repository at this point in the history
  • Loading branch information
beekhof committed Oct 22, 2014
2 parents 529e54e + ff52d84 commit 31cf859
Show file tree
Hide file tree
Showing 33 changed files with 4,091 additions and 99 deletions.
4 changes: 3 additions & 1 deletion GNUmakefile
Expand Up @@ -58,6 +58,8 @@ BUILD_COUNTER ?= build.counter
LAST_COUNT = $(shell test ! -e $(BUILD_COUNTER) && echo 0; test -e $(BUILD_COUNTER) && cat $(BUILD_COUNTER))
COUNT = $(shell expr 1 + $(LAST_COUNT))

SPECVERSION ?= $(COUNT)

init:
./autogen.sh

Expand Down Expand Up @@ -144,7 +146,7 @@ srpm-%: export $(PACKAGE)-%.spec
if [ -e $(BUILD_COUNTER) ]; then \
echo $(COUNT) > $(BUILD_COUNTER); \
fi
sed -i 's/global\ specversion.*/global\ specversion\ $(COUNT)/' $(PACKAGE).spec
sed -i 's/global\ specversion.*/global\ specversion\ $(SPECVERSION)/' $(PACKAGE).spec
sed -i 's/global\ commit.*/global\ commit\ $(TAG)/' $(PACKAGE).spec
case "$(WITH)" in \
*pre_release*) \
Expand Down
20 changes: 18 additions & 2 deletions crmd/remote_lrmd_ra.c
Expand Up @@ -140,8 +140,6 @@ recurring_helper(gpointer data)

ra_data->recurring_cmds = g_list_remove(ra_data->recurring_cmds, cmd);

cmd->call_id = generate_callid();

ra_data->cmds = g_list_append(ra_data->cmds, cmd);
mainloop_set_trigger(ra_data->work);
}
Expand Down Expand Up @@ -177,6 +175,24 @@ report_remote_ra_result(remote_ra_cmd_t * cmd)
op.interval = cmd->interval;
op.rc = cmd->rc;
op.op_status = cmd->op_status;
op.t_run = cmd->start_time;
op.t_rcchange = cmd->start_time;
if (cmd->reported_success && cmd->rc != PCMK_OCF_OK) {
op.t_rcchange = time(NULL);
/* This edge case will likely never ever occur, but if it does the
* result is that a failure will not be processed correctly. This is only
* remotely possible because we are able to detect a connection resource's tcp
* connection has failed at any moment after start has completed. The actual
* recurring operation is just a connectivity ping.
*
* basically, we are not guaranteed that the first successful monitor op and
* a subsequent failed monitor op will not occur in the same timestamp. We have to
* make it look like the operations occurred at separate times though. */
if (op.t_rcchange == op.t_run) {
op.t_rcchange++;
}
}

if (cmd->params) {
lrmd_key_value_t *tmp;

Expand Down
6 changes: 3 additions & 3 deletions crmd/te_utils.c
Expand Up @@ -126,19 +126,19 @@ tengine_stonith_notify(stonith_t * st, stonith_event_t * st_event)

if (st_event->result == pcmk_ok && safe_str_eq("on", st_event->action)) {
crm_notice("%s was successfully unfenced by %s (at the request of %s)",
st_event->target, st_event->executioner, st_event->origin);
st_event->target, st_event->executioner ? st_event->executioner : "<anyone>", st_event->origin);
/* TODO: Hook up st_event->device */
return;

} else if (safe_str_eq("on", st_event->action)) {
crm_err("Unfencing of %s by %s failed: %s (%d)",
st_event->target, st_event->executioner,
st_event->target, st_event->executioner ? st_event->executioner : "<anyone>",
pcmk_strerror(st_event->result), st_event->result);
return;

} else if (st_event->result == pcmk_ok && crm_str_eq(st_event->target, fsa_our_uname, TRUE)) {
crm_crit("We were allegedly just fenced by %s for %s!",
st_event->executioner, st_event->origin); /* Dumps blackbox if enabled */
st_event->executioner ? st_event->executioner : "<anyone>", st_event->origin); /* Dumps blackbox if enabled */

qb_log_fini(); /* Try to get the above log message to disk - somehow */

Expand Down
2 changes: 2 additions & 0 deletions cts/CIB.py
Expand Up @@ -177,6 +177,8 @@ def contents(self, target=None):
for node in self.CM.Env["nodes"]:
ftype = self.CM.Env.RandomGen.choice(["levels-and", "levels-or ", "broadcast "])
self.CM.log(" - Using %s fencing for node: %s" % (ftype, node))
# for baremetal remote node tests
stt_nodes.append("remote_%s" % node)
if ftype == "levels-and":
stl.level(1, node, "FencingPass,Fencing")
stt_nodes.append(node)
Expand Down

0 comments on commit 31cf859

Please sign in to comment.