[Linux-HA] CRM and STONITH questions
Dave Blaschke
debltc at us.ibm.com
Fri Oct 19 06:39:39 MDT 2007
matilda matilda wrote:
>>>> "Andrew Beekhof" <beekhof at gmail.com> 19.10.2007 12:55 >>>
>>>>
>> if you set a parameter called "hostlist" in the CIB, then it should be
>> available all the time
>>
>
> Hi Andrew,
>
> I did some tests the last days.
> The parameters (presented as environment variables) defined via
> cib are NOT always set (HAv2 2.1.2-3). I wanted to use
> it as a parameter to enable/disable debugging informations.
>
> BUT: It is definitely not set with 'getconfignames', 'getinfo-devdescr',
> 'getinfo-devname', 'getinfo-xml'.
>
> For example: The very first call to the stonith plugin is 'getconfignames'
> and while calling the stonith plugin with that argument the environment
> is not set with the parameters defined in the attribute section of the cib.
>
> If this is not intendet that it's an error.
> It would be helpful to know that EVERY call to the stonith plugin will all
> attributes set in the environment.
>
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.
> Best regards
> Andreas Mock
>
>
> _______________________________________________
> Linux-HA mailing list
> Linux-HA at lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
More information about the Linux-HA
mailing list