On Jan 16, 2008, at 4:16 PM, Yves Schumann wrote:

Hi


[EMAIL PROTECTED] wrote on 16.01.2008 15:39:50:

Is it possible that the var "OCF_RESKEY_CRM_meta_clone" is not
set
and
so
expr runs into a error? I did not found any other occourence of

This was introduced in the changeset 784fcb44d688.
cc-ing the relevant parties :) Is OCF_RESKEY_CRM_meta_clone always
set by v2?

For cloned resources, yes. (or at least it should be)

But this problem is still there and actually I have no idea where to look
for this!? Any ideas or hints?

On changeset bef30e5a2a31 [1] the usage of the var was changed like this:

--- a/resources/OCF/IPaddr2 Fri Jul 06 13:14:17 2007 +0200
+++ b/resources/OCF/IPaddr2 Fri Jul 06 13:15:27 2007 +0200
@@ -268,7 +268,7 @@ ip_init() {
   fi
   IP_INC_GLOBAL=${OCF_RESKEY_CRM_meta_clone_max:-1}
-   IP_INC_NO=$((OCF_RESKEY_CRM_meta_clone+1))
+   IP_INC_NO=`expr $OCF_RESKEY_CRM_meta_clone + 1`
   IP_CIP_HASH="${OCF_RESKEY_clusterip_hash}"
   if [ $LVS_SUPPORT -gt 0 ] && [ $IP_INC_GLOBAL -gt 1 ]; then
...

For testing I've switched this line back to the old version. Why was this
changed to the usage of expr?

the initial syntax is bash-specific

Actually I'm looking at the logs to see what
happens but till now it looks nice...


[1] http://hg.linux-ha.org/dev/diff/bef30e5a2a31/resources/OCF/IPaddr2


Yves Schumann
Softwareentwicklungsingenieur
Security Solutions Division
______________________________
Ascom (Schweiz) AG
Eichtal, CH-8634 Hombrechtikon
Phone: +41 55 254 66 84
[EMAIL PROTECTED]
http://www.ascom.com

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to