| Summary: | Please include ringid in some log messages | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Andrew Beekhof <abeekhof> | ||||
| Component: | libqb | Assignee: | Angus Salkeld <asalkeld> | ||||
| Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 16 | CC: | agk, asalkeld, fdinitto, jfriesse, sdake | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2012-06-04 09:25:57 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
|
Description
Andrew Beekhof
2012-02-29 10:15:22 UTC
makes sense. Andrew, corosync 2.0 has support for timestamps in logs. It's nonsense to backport this functionality back to flatiron. Attached is patch to add ringid to membership messages. Does that satisfy your needs? Honza Created attachment 583471 [details]
Proposed patch
(In reply to comment #2) > Andrew, > corosync 2.0 has support for timestamps in logs. Does this include blackbox output? > It's nonsense to backport this > functionality back to flatiron. I think your definition of nonsense differs from mine. Hard to do != good to do. But as long as we'll have timestamps in RHEL7 I will survive :-) > Attached is patch to add ringid to membership messages. > > Does that satisfy your needs? What about pid and timestamps in the blackbox output for future 2.0.x releases? (In reply to comment #4) > (In reply to comment #2) > > Andrew, > > corosync 2.0 has support for timestamps in logs. > > Does this include blackbox output? Ya, # corosync-blackbox Ringbuffer: ->NORMAL ->write_pt [2725] ->read_pt [0] ->size [2097152 words] =>free [8377704 bytes] =>used [10900 bytes] May 09 04:25:55 main():1047 Corosync Cluster Engine ('2.0.0.4-f244-dirty'): started and ready to provide service. May 09 04:25:55 main():1048 Corosync built-in features: debug May 09 04:25:55 totemsrp_initialize():837 Token Timeout (1000 ms) retransmit timeout (238 ms) May 09 04:25:55 totemsrp_initialize():840 token hold (180 ms) retransmits before loss (4 retrans) ... > > > It's nonsense to backport this > > functionality back to flatiron. > > I think your definition of nonsense differs from mine. > Hard to do != good to do. > It's not as much hard as impossible without radical changes in log structures/functions/... So even it is good thing, breaking API/ABI is bad thing. > But as long as we'll have timestamps in RHEL7 I will survive :-) > ;) > > Attached is patch to add ringid to membership messages. > > > > Does that satisfy your needs? > > What about pid and timestamps in the blackbox output for future 2.0.x releases? Timestamps are there. I'm unsure which PID you mean. PID of corosync? PID of IPC clients? Patch included in master. Andrew, can you please give me more information about PID you would like to include in logs? (In reply to comment #5) > (In reply to comment #4) ... > It's not as much hard as impossible without radical changes in log > structures/functions/... So even it is good thing, breaking API/ABI is bad > thing. Sounds like the right decision. > > What about pid and timestamps in the blackbox output for future 2.0.x releases? > > Timestamps are there. I'm unsure which PID you mean. PID of corosync? PID of > IPC clients? PID of whoever the log message came from. So corosync in this case. To simplify correlating the blackbox contents with /var/log/messages. (In reply to comment #7) > (In reply to comment #5) > > (In reply to comment #4) > ... > > It's not as much hard as impossible without radical changes in log > > structures/functions/... So even it is good thing, breaking API/ABI is bad > > thing. > > Sounds like the right decision. > > > > What about pid and timestamps in the blackbox output for future 2.0.x releases? > > > > Timestamps are there. I'm unsure which PID you mean. PID of corosync? PID of > > IPC clients? > > PID of whoever the log message came from. So corosync in this case. > To simplify correlating the blackbox contents with /var/log/messages. Ok. This is impossible to handle directly in corosync because blackbox functionality is implemented in libqb. So reassign bug to libqb. (In reply to comment #8) > (In reply to comment #7) > > (In reply to comment #5) > > > (In reply to comment #4) > > ... > > > It's not as much hard as impossible without radical changes in log > > > structures/functions/... So even it is good thing, breaking API/ABI is bad > > > thing. > > > > Sounds like the right decision. > > > > > > What about pid and timestamps in the blackbox output for future 2.0.x releases? > > > > > > Timestamps are there. I'm unsure which PID you mean. PID of corosync? PID of > > > IPC clients? > > > > PID of whoever the log message came from. So corosync in this case. > > To simplify correlating the blackbox contents with /var/log/messages. > > Ok. This is impossible to handle directly in corosync because blackbox > functionality is implemented in libqb. So reassign bug to libqb. Hi Super easy to do in corosync (one liner). logsys.c:324 qb_log_format_set(QB_LOG_BLACKBOX, "what ever format you want here"); http://libqb.org/html/doxygen/qblog_8h.html#a0e8cf298ff5fd224a16537b30a899df9 n FUNCTION NAME f FILENAME l FILELINE p PRIORITY t TIMESTAMP b BUFFER g TAGS N name (passed into qb_log_init) P PID H hostname (In reply to comment #9) > (In reply to comment #8) > > (In reply to comment #7) > > > (In reply to comment #5) > > > > (In reply to comment #4) > > > ... > > > > It's not as much hard as impossible without radical changes in log > > > > structures/functions/... So even it is good thing, breaking API/ABI is bad > > > > thing. > > > > > > Sounds like the right decision. > > > > > > > > What about pid and timestamps in the blackbox output for future 2.0.x releases? > > > > > > > > Timestamps are there. I'm unsure which PID you mean. PID of corosync? PID of > > > > IPC clients? > > > > > > PID of whoever the log message came from. So corosync in this case. > > > To simplify correlating the blackbox contents with /var/log/messages. > > > > Ok. This is impossible to handle directly in corosync because blackbox > > functionality is implemented in libqb. So reassign bug to libqb. > > Hi > > Super easy to do in corosync (one liner). > > logsys.c:324 > > qb_log_format_set(QB_LOG_BLACKBOX, "what ever format you want here"); > > http://libqb.org/html/doxygen/qblog_8h.html#a0e8cf298ff5fd224a16537b30a899df9 > n FUNCTION NAME > f FILENAME > l FILELINE > p PRIORITY > t TIMESTAMP > b BUFFER > g TAGS > N name (passed into qb_log_init) > P PID > H hostname Actually I am wrong, sorry - I forgot myself. I have added all the non-static options here: https://github.com/asalkeld/libqb/issues/36 Andrew has encoded the pid into the name of the blackbox file so don't think he needs it anymore. (In reply to comment #10) > Andrew has encoded the pid into the name of the blackbox file > so don't think he needs it anymore. Right, Pacemaker includes the pid in the filename. Perhaps corosync could do this too? (In reply to comment #11) > (In reply to comment #10) > > Andrew has encoded the pid into the name of the blackbox file > > so don't think he needs it anymore. > > Right, Pacemaker includes the pid in the filename. > Perhaps corosync could do this too? Andrew, I like that idea (and also seems to be MUCH better then cluttering log with still same pid line). I've sent patch to ML, which creates fdata file in format fdata-ISO_DATE-PID. I believe this bug can be closed now. |