Skip to contentSkip to conversation

Patch to Pacemaker hooks in ocfs2_controld

Ocfs2-devel Andrew Beekhof 2 participants 4 messages Mar 4, 2009 OCFS2

lore
Share & tools
lore
#0 lore raw

Hi Guys,

I overhauled and simplified the Pacemaker hooks recently. This patch:
- Reuses more code from the Pacemaker libraries
- Escalates fencing to the cluster manager instead of initiating it directly

Attached patch is against master, or you can pull the original patch which is against an older version used by SUSE:
http://git.clusterlabs.org/?p=ocfs2-tools.git;a=commit;h=dfc25180085c160baff412eb7423c6285cb166a9

regards,
Andrew

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pacemaker-hooks.patch
Type: application/octet-stream
Size: 12632 bytes
Desc: not available
Url : http://oss.oracle.com/pipermail/ocfs2-devel/attachments/20090304/1d9b521a/attachment.obj
-------------- next part --------------

#1 lore raw
Quoted 6 lines · Andrew Beekhof

Hi Guys,

I overhauled and simplified the Pacemaker hooks recently. This patch:
- Reuses more code from the Pacemaker libraries
- Escalates fencing to the cluster manager instead of initiating it directly

I like these parts.

Quoted 4 lines

Attached patch is against master, or you can pull the original patch which is against an older version used by SUSE:
http://git.clusterlabs.org/?p=ocfs2-tools.git;a=commit;h=dfc25180085c160baff412eb7423c6285cb166a9

Ugh, your mail client attached it in a way that makes it
not appear in my quoted reply text. Weird.
I'll trust that you got the ais/pcmk interaction code right - it
looks ok on the face, but I'm not familiar with it.
I don't like log_printf(). First because log_error() already
exists for LOG_ERR printing, second because you strip out all the useful log_debug() calls, but most of all because your log_printf() doesn't add to the internal daemon ring buffer. So debugfs.ocfs2 -R 'controld dump' doesn't show those messages.
Is there a reason log_error() didn't work for you?

Joel

Signature · 9 lines
"Practice random acts of kindness and senseless acts of beauty."

 Oh, and don't forget where your towel is.

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127
#2 lore raw
Quoted 15 lines · Joel Becker
Quoted 6 lines · Andrew Beekhof

Hi Guys,

I overhauled and simplified the Pacemaker hooks recently. ?This patch:
- Reuses more code from the Pacemaker libraries
- Escalates fencing to the cluster manager instead of initiating it directly

? ? ? ?I like these parts.

Quoted 4 lines

Attached patch is against master, or you can pull the original patch
which is against an older version used by SUSE:
? http://git.clusterlabs.org/?p=ocfs2-tools.git;a=commit;h=dfc25180085c160baff412eb7423c6285cb166a9

Quoted 10 lines

? ? ? ?Ugh, your mail client attached it in a way that makes it not appear in my quoted reply text. ?Weird.
? ? ? ?I'll trust that you got the ais/pcmk interaction code right - it looks ok on the face, but I'm not familiar with it.
? ? ? ?I don't like log_printf(). ?First because log_error() already exists for LOG_ERR printing, second because you strip out all the useful log_debug() calls, but most of all because your log_printf() doesn't add to the internal daemon ring buffer. ?So debugfs.ocfs2 -R 'controld dump' doesn't show those messages.
? ? ? ?Is there a reason log_error() didn't work for you?

Re: log_error, I think I was just trying to be consistent with the other calls I saw.
But I was working with the dlm_controld hooks at the same time so I may have gotten my wires crossed.

Re: log_debug, I got complaints about the logging being too noisy. Plus there's not a lot of logging in the rest of ocfs2_controld, so in many ways its more consistent ;-)

Would you be interested in a patch that adds more logging to the rest of ocfs2_controld?
The lack of logging, particularly in some of the error paths, has been killing us.

#3 lore raw
Quoted 11 lines · Andrew Beekhof
Quoted 6 lines

? ? ? ?I don't like log_printf(). ?First because log_error() already exists for LOG_ERR printing, second because you strip out all the useful log_debug() calls, but most of all because your log_printf() doesn't add to the internal daemon ring buffer. ?So debugfs.ocfs2 -R 'controld dump' doesn't show those messages.
? ? ? ?Is there a reason log_error() didn't work for you?

Re: log_error, I think I was just trying to be consistent with the other calls I saw.
But I was working with the dlm_controld hooks at the same time so I may have gotten my wires crossed.

Yeah, dave's changed his scheme some, and I haven't caught up.
The big deal is that it skips the dump buffer.

Quoted 8 lines

Re: log_debug, I got complaints about the logging being too noisy. Plus there's not a lot of logging in the rest of ocfs2_controld, so in many ways its more consistent ;-)

Would you be interested in a patch that adds more logging to the rest of ocfs2_controld?
The lack of logging, particularly in some of the error paths, has been killing us.

I'm confused. You took out useful logging messages because
there was too much, so you want to add more?
Overall, I'm very happy with the idea of more logging, at least
log_debug() logging - we shouldn't spam syslog with crap.

Joel

Signature · 7 lines
"Drake!  We're LEAVING!"

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127