[Linux-ha-dev] IPaddr2 gives a spurious warning on stop

Lars Marowsky-Bree lmb at suse.de
Mon Mar 5 03:01:52 MST 2007


On 2007-03-05T17:25:44, Aníbal Monsalve Salazar <anibal at sgi.com> wrote:

> I created the following patch to fix this bug.
> 
> --- resources/OCF/IPaddr2.in~	2007-01-12 13:57:08.000000000 +1100
> +++ resources/OCF/IPaddr2.in	2007-03-05 16:29:41.797530093 +1100
> @@ -380,7 +380,7 @@
>  	ipaddr="$1"
>  	iface="$2"
>  
> -	CMD="$IP2UTIL -f inet addr delete $ipaddr dev $iface"
> +	CMD="$IP2UTIL -f inet addr delete $ipaddr/32 dev $iface"
>  
>  	ocf_log info "$CMD"
>  	$CMD

No, it should not.

The IP might have been added with a different netmask. We want it to be
deleted regardless of the netmask.

The warning from ip should be ignored.

Alternatively, one should look up the netmask prior to deletion.


Sincerely,
    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



More information about the Linux-HA-Dev mailing list