> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Lars Marowsky-Bree > Sent: March 5, 2007 5:02 > To: High-Availability Linux Development List > Subject: Re: [Linux-ha-dev] IPaddr2 gives a spurious warning on stop > > On 2007-03-05T17:25:44, Aníbal Monsalve Salazar > <[EMAIL PROTECTED]> 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.
Hey, wait!! The netmask is usually passed from command-line. Why not just force it? Removal should use the same netmask and there'll be no problem this way. I.e. on my setup I run something like: IPaddr2::1.2.3.4/24/eth0 IMHO omiting the netmask is a bad thing. It will create a /32 ip and a /32 cannot commmunicate with anything (though it might work if ppl create a 2nd address on the same net...) Thomas
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________________ Linux-HA-Dev: [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
