matilda matilda wrote:
Dave Blaschke <[EMAIL PROTECTED]> 19.10.2007 14:39 >>>
Until the plugin is actually configured, it does not have access to the
attributes - this is the same for external and built-in plugins. For
operations that just return information, such as getconfignames and
getinfo, the plugin does not need to be configured. For actions that
actually DO something, like gethosts, status, reset, etc. the plugin
does need to be configured. Now if your plugin is loaded and
configured, then even the getconfignames operation will have access to
the attributes - but there is no reason to call getconfignames at this
point because it was called before the plugin was loaded in order to see
what attributes the plugin needs to be loaded.
Hi Dave,
that's what I explained to myself after investigation.
But: I don't have a nice way to configure e.g. a debugging flag.
If I want to enable debugging I want to see debug output of the whole
life cycle of the stonith plugin.
In my personal opinion there has to be a way to tell the external stonith
plugin to do some kind of tracing/logging.
Or do you have a solution to tell this from the outside?
Well, if you enable debug in ha.cf the stonith code will log more
information. And you can always code in your own environment variable
(i.e. MYPLUGIN_DEBUG) to enable debugging. I suppose it is feasible to
create a standard environment variable that HA will create if debugging
is enabled and not create if it isn't.
Best regards
Andreas Mock
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems