disallowed in cluster3
When rewriting daemons for cluster3 to remove groupd, I wrote them to not need or use the disallowed-nodes feature from cman for handling remerging of cluster partitions. In compat mode, however, (the cluster2 code) they would still depend on that cman feature, which is why it still exists in cluster3 cman.
I've found, though, that when we do have a partition remerge, cman's disallowed feature gets in the way of the daemons trying to handle it themselves (which I'm testing, it doesn't seem quite right in all partitioning/merging cases yet.)
So, I think what we need is for cluster3 cman to turn off the disallowed feature unless the cluster is in compat mode, i.e. <group groupd_compat="1"/> exists.
Dave
Quoted 6 lines · David Teigland
When rewriting daemons for cluster3 to remove groupd, I wrote them to not need or use the disallowed-nodes feature from cman for handling remerging of cluster partitions. In compat mode, however, (the cluster2 code) they would still depend on that cman feature, which is why it still exists in cluster3 cman.
Quoted 8 lines
I've found, though, that when we do have a partition remerge, cman's disallowed feature gets in the way of the daemons trying to handle it themselves (which I'm testing, it doesn't seem quite right in all partitioning/merging cases yet.)
So, I think what we need is for cluster3 cman to turn off the disallowed feature unless the cluster is in compat mode, i.e.<group groupd_compat="1"/> exists.
Thanks, I've been looking for an excuse to add code to cluster3 to disable that mode ;-)
I'm not happy with cman reading groupd tags out of cluster.conf though. The alternatives are to have an extra tag for cman, but that risks users only setting one or the other and causing havoc. So how about a higher level <cluster compat="x"> flag ?
Chrissie
Quoted 20 lines · Christine Caulfield
Quoted 13 lines · David Teigland
When rewriting daemons for cluster3 to remove groupd, I wrote them to not need
or use the disallowed-nodes feature from cman for handling remerging of cluster partitions. In compat mode, however, (the cluster2 code) they would
still depend on that cman feature, which is why it still exists in cluster3 cman.I've found, though, that when we do have a partition remerge, cman's disallowed feature gets in the way of the daemons trying to handle it themselves (which I'm testing, it doesn't seem quite right in all partitioning/merging cases yet.)
Quoted 4 lines
So, I think what we need is for cluster3 cman to turn off the disallowed feature unless the cluster is in compat mode, i.e.<group groupd_compat="1"/>
exists.
Quoted 7 lines
Thanks, I've been looking for an excuse to add code to cluster3 to disable that mode ;-)
I'm not happy with cman reading groupd tags out of cluster.conf though. The alternatives are to have an extra tag for cman, but that risks users only setting one or the other and causing havoc. So how about a higher level <cluster compat="x"> flag ?
Yeah, the group/groupd_compat is a little odd in that way... I have all my daemons checking for that one tag. cluster compat wouldn't be bad, or instead of a cluster attribute it could be a more generic element -- that would just mean changing <group groupd_compat="x"/> into <compat version="x"/> or something like that.
With the release out, I think it's too late to remove group/groupd_compat, but we can add something new that supersedes it.
Quoted 17 lines · Christine Caulfield
Quoted 6 lines · David Teigland
When rewriting daemons for cluster3 to remove groupd, I wrote them to not need or use the disallowed-nodes feature from cman for handling remerging of cluster partitions. In compat mode, however, (the cluster2 code) they would still depend on that cman feature, which is why it still exists in cluster3 cman.
Quoted 8 lines
I've found, though, that when we do have a partition remerge, cman's disallowed feature gets in the way of the daemons trying to handle it themselves (which I'm testing, it doesn't seem quite right in all partitioning/merging cases yet.)
So, I think what we need is for cluster3 cman to turn off the disallowed feature unless the cluster is in compat mode, i.e.<group groupd_compat="1"/> exists.
Quoted 4 lines
Thanks, I've been looking for an excuse to add code to cluster3 to disable that mode ;-)
I'm not happy with cman reading groupd tags out of cluster.conf though.
We can always use cman-preconfig to map back and forward <cluster compat.. to/from <groupd_compat..
after all we do all the config "dirty laundry" there... :)
Fabio
Quoted 14 lines · Christine Caulfield
Quoted 13 lines · David Teigland
When rewriting daemons for cluster3 to remove groupd, I wrote them to not need
or use the disallowed-nodes feature from cman for handling remerging of cluster partitions. In compat mode, however, (the cluster2 code) they would
still depend on that cman feature, which is why it still exists in cluster3 cman.I've found, though, that when we do have a partition remerge, cman's disallowed feature gets in the way of the daemons trying to handle it themselves (which I'm testing, it doesn't seem quite right in all partitioning/merging cases yet.)
Quoted 8 lines
Quoted 4 lines
So, I think what we need is for cluster3 cman to turn off the disallowed feature unless the cluster is in compat mode, i.e.<group groupd_compat="1"/>
exists.Thanks, I've been looking for an excuse to add code to cluster3 to disable that mode ;-)
Trying this out and testing the daemon's handling of partition merging situations... I uncovered one of my own comments in fenced:
/* We don't require cman dirty/disallowed to detect and handle cpg merges after a partition, because we already do that with started_count checks and our own disallowed flag. But, we do need cman dirty/disallowed to deal with correctly skipping victims that rejoin the cluster. Without cman dirty/disallowed, we'd skip fencing a node after a merge of a partition since the merged node would be a cman member and a fenced:daemon cpg member. By setting the dirty flag, cman won't report a dirty merged node as a member, so we'll continue fencing it. */
So, the primary reason for cman disallowed is gone, but I'd forgotten about this little unsolved detail around bypassing fencing of a node that has rebooted and rejoined (distinguishing that from partitioned and rejoined). There really should be a way for fenced to deal with that without punting it off to cman disallowed, I'll be working on that.
Dave