Hi,

the error appears when the IPaddr RA under
/usr/lib/ocf/resource.d/heartbeat/IPaddr wants to stop the resource.

It calls lvs_restore_loopback() and that calls add_interface(),
which delivers the error.

I debugged the script a little bit, to the best of my knowledge.


lvs_restore_loopback() {
    ipaddr="$1"

    if [ ! -s "$VLDIR/$ipaddr" ]; then
        return
    fi

    ifname=`cat "$VLDIR/$ipaddr"`
    ocf_log info "Restoring loopback IP Address $ipaddr on $ifname."

    CMD="OCF_RESKEY_cidr_netmask=32 OCF_RESKEY_ip=$1 OCF_RESKEY_nic=$ifname
$FINDIF"
    if
      NICINFO=`eval $CMD`
    then
        netmask_text=`echo "$NICINFO" | cut -f2 -d " "`
        broadcast=`echo "$NICINFO" | cut -f3 -d " "`
    else
        echo "ERROR: $CMD failed (rc=$rc)"
        exit $OCF_ERR_GENERIC
    fi

    add_interface "$ipaddr" "$ifname" "$ifname" $netmask_text $broadcast
    rm -f "$VLDIR/$ipaddr"
}

add_interface () {
  ipaddr="$1"
  iface_base="$2"
  iface="$3"
  netmask="$4"
  broadcast="$5"

  if [ $# != 5 ]; then
      ocf_log err "Insufficient arguments to add_interface: $*"
      exit $OCF_ERR_ARGS
  fi
[snip]
...
[snap]
}



I got these values for the call of add_interface():
1: "172.30.4.170"
2: "lo:0"
3: "lo:0"
4: "255.255.255.255       broadcast"
5: "172.30.4.170"


That means there is an error at parsing the netmask_text in line 251!

Line 251:       netmask_text=`echo "$NICINFO" | cut -f2 -d " "`

The file "$VLDIR/$ipaddr" should be located in
HA_RSCTMP:=/var/run/heartbeat/rsctmp
but there I found no file...

Can someone tell me, how to get rid of this error?
What information should I provide?

Many thanks in advance,
Stephan


> -----Original Message-----
> From: www.tiri.li high availability [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 11, 2008 10:31 PM
> To: General Linux-HA mailing list list-ha
> Subject: [Linux-HA] virtual ip not restored to lo:0 //
> Insufficientarguments to add_interface
>
>
> Hello list,
>
> I have Centos 4.6 with Heartbeat 2.1.2 running, but I got
> following error in
> log when stopping heartbeat on the node which has currently the VIP.
>
> Feb 11 22:08:46 clustersrv1 crmd: [3261]: info: do_lrm_rsc_op:
> Performing op=R_VIP_stop_0
> key=7:12:6beb2d06-f141-468e-8168-24bff2789660)
> Feb 11 22:08:46 clustersrv1 lrmd: [3258]: info: RA output:
> (R_VIP:stop:stdout) In IP Stop
> Feb 11 22:08:46 clustersrv1 lrmd: [3258]: info: RA output:
> (R_VIP:stop:stderr) SIOCDELRT: No such process
> Feb 11 22:08:46 clustersrv1 IPaddr[8540]: [8559]: INFO:
> ifconfig eth0:0 down
> Feb 11 22:08:46 clustersrv1 IPaddr[8540]: [8564]: INFO: Restoring
> loopback IP Address 192.168.100.222 on lo:0.
> Feb 11 22:08:46 clustersrv1 lrmd: [3258]: info: RA output:
> (R_VIP:stop:stderr) lo:0: warning: name may be invalid

> Feb 11 22:08:46 clustersrv1 IPaddr[8540]: [8575]: ERROR:
> Insufficient arguments to add_interface: 192.168.100.222 lo:0
> lo:0 255.255.255.255 broadcast 10.44.67.255

This is the error in add_interface, that means that 6 instead
of 5 parameters were passed.

> Feb 11 22:08:46 clustersrv1 crmd: [3261]: ERROR: process_lrm_event:
> LRM operation R_VIP_stop_0 (call=8, rc=2) Error invalid parameter
>
> The VIP is not restored to the lo:0 interface either.
>
> My cib.xml is attached.
>
> Thanks for your reply in advance.
>
> Thomas.



HELPING HEADS for Hard- and Software
-------------------------------------------------------------------------
Für Ihre Projekte entwickeln wir maßgeschneiderte Lösungen - schnell,
flexibel und direkt vor Ort. Unser eingespieltes Team an erfahrenen Hard-
und Software-Spezialisten unterstützt Sie dort, wo Sie uns brauchen.



--------------------------------------------------------------------------
SysDesign GmbH
Säntisstrasse 25
D-88079 Kressbronn am Bodensee

Geschäftsführer: Franz Kleiner, Achim Solle
Handelsregister: Ulm 632138
--------------------------------------------------------------------------

_______________________________________________
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