On 2008-01-22T17:38:14, Xinwei Hu <[EMAIL PROTECTED]> wrote:
> Hi all,
> I'm drafting a document on parameters passed to RA. Besides those mentioned
> on opencf.org and linux-ha.org, I found a lot of CRM_meta_xxx parameters which
> don't explained anyway (or I just missed ;-/)
>
> Here's a list of what I find out. Can someone explain it a bit ?
Sure. These are internal and not meant to be used by those who don't
understand them. ;-) Seriously though, these limit the use of the OCF RA
to CRM/PaceMaker stacks, and so should be used with care only.
>
> ===============================================================================
>
> # The followings are generally available to all operations
> CRM_meta_timeout - att
The timeout set by the CRM/LRM for this operation.
> CRM_meta_op_target_rc - ??
The expected "success" return code. The client should not take a look at
this one, I guess.
> # The followings are only available to "notify" operation
> OCF_RESKEY_CRM_meta_notify_type - can be pre/post
> OCF_RESKEY_CRM_meta_notify_operation - can be promote/demote/start/stop
> OCF_RESKEY_CRM_meta_notify_confirm - can be yes/no
>
> # The followings are only available to the clone/master-slave resources
> CRM_meta_clone - The number assigned the clone instance
> CRM_meta_clone_max - att.
> CRM_meta_clone_node_max - att.
>
> # The followings are only available to the master-slave resources
> CRM_meta_stateful - true/false
> CRM_meta_role
> CRM_meta_master_max
> CRM_meta_master_node_max
>
> # The followings are only available to the clone/master-slave resource
> OCF_RESKEY_CRM_meta_notify_active_resource/uname
> OCF_RESKEY_CRM_meta_notify_inactive_resource/uname
> OCF_RESKEY_CRM_meta_notify_stop_resource/uname
> OCF_RESKEY_CRM_meta_notify_start_resource/uname
> OCF_RESKEY_CRM_meta_notify_demote_resource/uname
> OCF_RESKEY_CRM_meta_notify_promote_resource/uname
> OCF_RESKEY_CRM_meta_notify_master_resource/uname
> OCF_RESKEY_CRM_meta_notify_slave_resource/uname
These are explained on the wiki, are they not?
> # The followings are only available to "migrate-from/to" operations
> OCF_RESKEY_CRM_meta_migrate_target
> OCF_RESKEY_CRM_meta_migrate_source
>
> # The following is only available to "migrate-from" operation
> OCF_RESKEY_CRM_meta_migrate_source_uuid - the uuid of the node ?
Yes, see the Xen RA for an example.
> The followings are only exist in resources/OCF/Dummy and
> lrm/test/lrmregtest.in, should be fixed ?
> OCF_RESKEY_CRM_meta_migrate_from
> OCF_RESKEY_CRM_meta_migrate_to
Good point.
Regards,
Lars
--
Teamlead Kernel, SuSE Labs, Research and Development
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
"Experience is the name everyone gives to their mistakes." -- Oscar Wilde
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/