[Linux-ha-dev] [Q] group resources and unmanaged status
kskmori at intellilink.co.jp
Fri Dec 7 05:50:13 MST 2007
Andrew Beekhof <beekhof at gmail.com> writes:
> On Dec 7, 2007, at 11:56 AM, Keisuke MORI wrote:
>> Can I ask a question about the internal status of the PE?
>> My SNMP subagent code is using cluster_status(pe_working_set_t)
>> to analyze the current status of resources like crm_mon.
>> When a parent resource(group/clone/master) is unmanaged,
>> 'running_on' and 'allowed_nodes' member of resource_t gets NULL.
>> Is this an expected value?
> I thought that group/clone/master always had NULL... since they can be
> running on more than one node (especially clone and m/s resources)
Judging from the output of the SNMP agent, two pair of a clone and a
primitive are observed and each of the parent clone has the node
which its child primitive is running on.
Maybe my code is doing something wrong, I'll check it again.
> I recall also doing something special for unmanaged resources but I
> can probably change that behavior for you.
> that said, it would be better to use the recently added API call:
> node_t *(*location)(resource_t *, GListPtr*, gboolean);
> node_t *native_location(resource_t *rsc, GListPtr *list, gboolean
Thanks, I will look into this.
NTT DATA Intellilink Corporation
More information about the Linux-HA-Dev