Florian Haas wrote: > On 2010-03-09 09:58, Cristian Mammoli - Apra Sistemi wrote: >> Lars Ellenberg wrote: >> you please add something like >>> ( >>> date +%F_%T >>> echo "$0 $*" >>> env | grep ^OCF | sort > > Err, that should be " | grep OCF " (without the caret), otherwise it > won't catch $__OCF_ACTION. Sorry. Can you retry please?
Done, but no __OCF* stuff.. 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 > > And, how come your output doesn't contain $OCF_RESKEY_CRM_meta_interval? > It should be defined by .ocf-shellfuncs even if the CRM/LRM does not > pass it in. Don't you have this line in your .ocf-shellfuncs? > > http://hg.linux-ha.org/agents/file/tip/heartbeat/.ocf-shellfuncs.in#l58 ... I don't have it: : ${OCF_FUNCTIONS_DIR=${OCF_ROOT}/resource.d/heartbeat} . ${OCF_FUNCTIONS_DIR}/.ocf-binaries . ${OCF_FUNCTIONS_DIR}/.ocf-returncodes . ${OCF_FUNCTIONS_DIR}/.ocf-directories ocf_is_root() { case `id` in *'uid=0(root)'*) true;; *) false;; esac } ... [r...@srvha01 ~]# rpm -q --whatprovides /usr/lib/ocf/resource.d/heartbeat/.ocf-shellfuncs resource-agents-1.0.2-1 -- 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/
