Red Hat Bugzilla – Bug 1260790
RFE: adjustable format strings for node IDs logging
Last modified: 2018-07-10 20:04:43 EDT
Description of problem:
Sep 2 19:20:57 virt-009 corosync: [TOTEM ] A new membership (10.34.71.9:140) was formed. Members joined: 2 4294967295
Sep 2 19:20:57 virt-009 corosync: [QUORUM] This node is within the primary component and will provide service.
Sep 2 19:20:57 virt-009 corosync: [QUORUM] Members: 1 2 -1
Note the -1 in the output instead of the big ID. In our discussion Honza suggested filing this RFE and ask for making the output adjustable (%u, %d, %x).
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. set large node ids in corosync.conf
2. start corosync cluster
-1 in output for big IDs
output as per user request (%u, %d or %x).
Just as reminder, main reasonable for this bug is to walk thru source code of corosync/tools and replace nodeid output modifier with macro, so it will be evident WHAT is nodeid.
It may also make sense to consider moving nodeid to defined type instead of int (type may be macro, so no real change, but makes clear distinction what is nodeid).