Cristian Mammoli - Apra Sistemi wrote:
> I checked the source package available on linux-ha.org at
> http://hg.linux-ha.org/agents/archive/agents-1.0.2.tar.bz2
> OCF_RESKEY_CRM_meta_interval is not declared in .ocf-shellfuncs.in either.
>
Added:
# Define OCF_RESKEY_CRM_meta_interval in case it isn't already set,
# to make sure that ocf_is_probe() always works
: ${OCF_RESKEY_CRM_meta_interval=0}
to .ocf-shellfuncs
Now ocf_is_probe works right, no more RC=2 on probes
This is the debug output:
2010-03-09_11:52:23
/usr/lib/ocf/resource.d//apra/vmware monitor
OCF_AGENTS=/usr/lib/ocf/resource.d//heartbeat/
OCF_RA_VERSION_MAJOR=1
OCF_RA_VERSION_MINOR=0
OCF_RESKEY_CRM_meta_op_target_rc=7
OCF_RESKEY_CRM_meta_timeout=20000
OCF_RESKEY_crm_feature_set=3.0.1
OCF_RESKEY_vmxpath=/datastore1/w2003R2-1/w2003R2-1.vmx
OCF_RESOURCE_INSTANCE=w2003R2-1
OCF_RESOURCE_PROVIDER=apra
OCF_RESOURCE_TYPE=vmware
OCF_ROOT=/usr/lib/ocf
2010-03-09_11:52:49
/usr/lib/ocf/resource.d//apra/vmware monitor
OCF_AGENTS=/usr/lib/ocf/resource.d//heartbeat/
OCF_RA_VERSION_MAJOR=1
OCF_RA_VERSION_MINOR=0
OCF_RESKEY_CRM_meta_op_target_rc=7
OCF_RESKEY_CRM_meta_timeout=20000
OCF_RESKEY_crm_feature_set=3.0.1
OCF_RESKEY_vmxpath=/datastore2/w2003R2-2/w2003R2-2.vmx
OCF_RESOURCE_INSTANCE=w2003R2-2
OCF_RESOURCE_PROVIDER=apra
OCF_RESOURCE_TYPE=vmware
OCF_ROOT=/usr/lib/ocf
--
Cristian Mammoli
APRA SISTEMI srl
Via Brodolini,6 Jesi (AN)
tel dir. 0731 719822
Web www.apra.it
e-mail [email protected]
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/