From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christine Caulfield Date: Tue, 12 Jan 2010 16:00:20 +0000 Subject: [Cluster-devel] fixing cpg names in 3.0.8? In-Reply-To: <20100112162445.GA24645@redhat.com> References: <20100112162445.GA24645@redhat.com> Message-ID: <4B4C9C94.2050106@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On 12/01/10 16:24, David Teigland wrote: > I just discovered that the cpg group names that fenced, dlm_controld and > gfs_controld use in cluster3 include a nul within the name length. This > can happen because cpg names have both a string part and a length part, > and the length is currently being set to strlen + 1 instead of strlen. > It's harmless since all the code is making the same mistake, but it's an > obvious flaw. > > You can easily see this by the trailing \x00 from corosync-cpgtool, > > fenced:default\x00 > > If we fixed the length of the names, it would break internode > compatibility between 3.0.7 and 3.0.8 releases, e.g. > > "fenced:default\x00" and "fenced:default" are two different groups. > > AFAIK we're not yet guaranteeing rolling upgrade compatibility from one > 3.0 release to the next, so I think I should go ahead and fix this, unless > anyone feels strongly otherwise? I'm sure we've seen this before. Oh well I'll repeat my opinion anyway. I don't think it's a flaw and I don't see that it needs to be "fixed". It's just the way things happen. What benefits accrue from changing it ? Chrissie