Hi,
On Thu, Jun 04, 2009 at 10:22:05AM +0100, Rob Gallagher wrote:
> Hi,
>
> Running heartbeat 2.1.4-2 on Ubuntu Jaunty (installed from packages).
> I'm trying to add an IPv6 address to an interface with a prefix length
> of 128, however this fails with the following errors:
>
> Jun 4 10:13:15 charlene ip-request-resp[3837]: received
> ip-request-resp IPv6addr::2001:770:18:2:0:0:c101:db4a/128/eth0 OK yes
> Jun 4 10:13:15 charlene ResourceManager[3856]: info: Acquiring
> resource group: charlene IPv6addr::2001:770:18:2:0:0:c101:db4a/128/eth0
> Jun 4 10:13:15 charlene IPv6addr[3882]: INFO: Resource is stopped
> Jun 4 10:13:15 charlene ResourceManager[3856]: info:
> Running /etc/ha.d/resource.d/IPv6addr
> 2001:770:18:2:0:0:c101:db4a/128/eth0 start
> Jun 4 10:13:15 charlene ResourceManager[3856]: CRIT: Giving up
> resources due to failure of
> IPv6addr::2001:770:18:2:0:0:c101:db4a/128/eth0
> Jun 4 10:13:15 charlene ResourceManager[3856]: info: Releasing
> resource group: charlene IPv6addr::2001:770:18:2:0:0:c101:db4a/128/eth0
> Jun 4 10:13:15 charlene ResourceManager[3856]: info:
> Running /etc/ha.d/resource.d/IPv6addr
> 2001:770:18:2:0:0:c101:db4a/128/eth0 stop
>
> Running the resource manually gives:
>
> r...@charlene:/etc/ha.d# /etc/ha.d/resource.d/IPv6addr
> 2001:770:18:2:0:0:c101:db4a/128/eth0 start 2009/06/04_10:15:50 ERROR:
> Generic error ERROR: Generic error
Funny, I can't see any spot in the code where it wouldn't give a
more specific message. Can you trace strace and post results?
Thanks,
Dejan
> However if I change the prefix to /64 it is added without error:
>
> r...@charlene:/etc/ha.d# /etc/ha.d/resource.d/IPv6addr
> 2001:770:18:2:0:0:c101:db4a/64/eth0 start
> 2009/06/04_10:16:30 INFO: Success
> INFO: Success
>
> From a quick examination of resources/OCF/IPv6addr.c it appears to
> allow prefix lengths up to 128:
>
> if ((prefix_len < 0) || (prefix_len > 128)) {
> cl_log(LOG_ERR, "Invalid prefix_len [%s], should be an
> integer in [0, 128]", cp+1);
>
> However this doesn't seem to be the case, at least for me. Any pointers
> would be greatly appreciated :)
>
> rg
>
> --
> Rob Gallagher | Public Key: 0x1DD13A78
>
> HEAnet Limited, Ireland's Education and Research Network
> 1st Floor, 5 George's Dock, IFSC, Dublin 1.
> Registered in Ireland, no 275301
> T: (+353-1) 6609040 F: (+353-1) 6603666 WWW: http://www.heanet.ie/
> _______________________________________________
> 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