[Openais] CPG - x86 - sparc heterogenous cluster

Wojtek Meler wmeler at wp.pl
Thu Jul 30 23:48:45 PDT 2009


Steven Dake pisze:
> My take on this is that totemsrp swabs the nodeid when it receives the 
> message in a cross endian system, and delivers the byte swabbed nodeid 
> to cpg.  When autogeneration of node ids is used, you may expect that 
> the node id is the 32 bit ip address in network byte order.  Instead 
> the node id is autogenerated in host byte order.
>
> We could ensure that the autogenerated node ids are always in little 
> endian format (ie: swab them on big endian architectures) rather then 
> a mix of little and big endian as is the case now in cross endian 
> systems which makes understanding the content of the autogenerated 
> nodeid impossible (and provides a possible collision of nodeids in an 
> ipv4 network).
>
> Try this patch.  If this doesn't solve it, a swab may be required in 
> testcpg -i operations on BE arches.
your patch + corrected typo + changes in testcpg -i on BE = OK
See attached patch.
> I could be entirely wrong about all this though.  I'm not sure whether 
> the node id is in BE or LE when generated.  Whatever it is now, we 
> can't swab during creation on LE architectures because to date LE has 
> been our main focus and it would cause all sorts of compatibility 
> breakage.
I'm working on project where we had to take exactly the same decision :(.
We put client ip in int which was automaticly converted by protocol and 
woke up too late...

Regards,
Wojtek

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: corosync-nodeid-ip-le.patch
Url: http://lists.linux-foundation.org/pipermail/openais/attachments/20090731/f56aed93/attachment.txt 


More information about the Openais mailing list