Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

base fork: beekhof/pacemaker
...
head fork: beekhof/pacemaker
  • 1 commit
  • 4 files changed
  • 1 commit comment
  • 1 contributor
Commits on Mar 22, 2012
Andrew Beekhof Process debug patch 4263f6f
1  lib/ais/plugin.c
View
@@ -1613,6 +1613,7 @@ send_cluster_id(void)
static uint64_t first_seq = 0;
AIS_ASSERT(local_nodeid != 0);
+ ais_info("Sending node details");
if (started == 0) {
started = now;
13 lib/cluster/corosync.c
View
@@ -630,8 +630,17 @@ pcmk_proc_dispatch(IPC_Channel * ch, gpointer user_data)
const char *uname = crm_element_value(node, "uname");
crm_element_value_int(node, "processes", &children);
-
- crm_update_peer(id, 0, 0, 0, children, NULL, uname, NULL, NULL);
+ if(id == 0) {
+ crm_err("Bad process update node %s: %.16x", uname, children);
+ crm_log_xml_err(msg, "Bad Update");
+ } else {
+ if(children == 0) {
+ crm_err("Bad process list for node %u/%s: %s", id, uname, crm_element_value(node, "processes"));
+ } else {
+ crm_info("Process list for node %u: %.16x", id, children);
+ }
+ crm_update_peer(id, 0, 0, 0, children, NULL, uname, NULL, NULL);
+ }
}
free_xml(msg);
}
17 mcp/corosync.c
View
@@ -187,7 +187,7 @@ pcmk_cpg_deliver(cpg_handle_t handle,
const char *uname = crm_element_value(xml, "uname");
crm_element_value_int(xml, "proclist", (int *)&procs);
- /* crm_debug("Got proclist %.32x from %s", procs, uname); */
+ crm_info("Got proclist %.32x from %s", procs, uname);
if (update_node_processes(nodeid, uname, procs)) {
update_process_clients();
}
@@ -202,6 +202,21 @@ pcmk_cpg_membership(cpg_handle_t handle,
const struct cpg_address *joined_list, size_t joined_list_entries)
{
/* Don't care about CPG membership */
+ int lpc = 0;
+
+ crm_info("CPG %s change", groupName);
+ for(lpc = 0; lpc < member_list_entries; lpc++) {
+ crm_info("Member[%d]: %u.%u", lpc, member_list[lpc].nodeid, member_list[lpc].pid);
+ }
+
+ for(lpc = 0; lpc < left_list_entries; lpc++) {
+ crm_info("Left[%d]: %u.%u", lpc, left_list[lpc].nodeid, left_list[lpc].pid);
+ }
+
+ for(lpc = 0; lpc < joined_list_entries; lpc++) {
+ crm_info("Joined[%d]: %u.%u", lpc, joined_list[lpc].nodeid, joined_list[lpc].pid);
+ }
+
update_process_peers();
}
1  mcp/pacemaker.c
View
@@ -570,6 +570,7 @@ update_process_peers(void)
iov.iov_base = buffer;
iov.iov_len = rc + 1;
+ crm_info("Sent %s", buffer);
send_cpg_message(&iov);
}

Showing you all comments on commits in this comparison.

David Vossel

In this version of pcmk_proc_dispatch(), id will always be 0 here. The id is never retrieved from the node xml.

Something went wrong with that request. Please try again.