Bug 318361 - cman needs to include qdisk votes in expected votes display
cman needs to include qdisk votes in expected votes display
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: cman (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Christine Caulfield
Cluster QE
Depends On:
  Show dependency treegraph
Reported: 2007-10-04 10:54 EDT by Corey Marthaler
Modified: 2009-04-16 18:51 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-01-20 16:52:19 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Patch (5.13 KB, patch)
2007-12-05 09:32 EST, Christine Caulfield
no flags Details | Diff
Updated patch (5.90 KB, patch)
2008-02-08 09:35 EST, Christine Caulfield
no flags Details | Diff

  None (edit)
Description Corey Marthaler 2007-10-04 10:54:32 EDT
Description of problem:
Three node cluster w/ qdisk of 2 nodes. Shouldn't expected votes be that same as
total votes in this case where all are members?

[root@taft-03 ~]# cman_tool status
Version: 6.0.1
Config Version: 11
Cluster Name: TAFTASTIC
Cluster Id: 39245
Cluster Member: Yes
Cluster Generation: 1108
Membership state: Cluster-Member
Nodes: 3
Expected votes: 3
Total votes: 5
Quorum: 3
Active subsystems: 9
Ports Bound: 0 11
Node name: taft-03.lab.msp.redhat.com
Node ID: 3
Multicast addresses:
Node addresses:

Version-Release number of selected component (if applicable):
Comment 1 Christine Caulfield 2007-10-04 11:06:34 EDT
The value in there is technically correct, but confusing I think.

Here's the quorum calculation from the source code (and the VMS cluster manual!)

	q1 = (highest_expected + 2) / 2;
	q2 = (total_votes + 2) / 2;
	newquorum = max(q1, q2);

	if (!allow_decrease)
		newquorum = max(oldquorum, newquorum);

highest_expected is the maximum value of expected_votes on all active nodes, and
total_votes is what you would expect: the total of all active votes in the system.

If you don't explicitly set expected_votes in cluster.conf then it is calculated
as the total votes contributed by REAL nodes (qdisk doesn't appear in
cluster.conf as a node)

So the confusion arises, I think, because qdisk isn't added to expected_votes at
"cman_tool join" time and because it contributes no expected_votes of its own
(it gets set to zero, and is therefore always ignored).

I can't see this being a blocker but we might like to think of ways to clarify
things in the future. Perhaps by getting the join process to look at the qdisk
keys in ccs and add those votes to expected_votes.
Comment 2 Christine Caulfield 2007-11-01 07:53:00 EDT
The more I think about this, the less happy I am fudging expected_votes with the
quorum disk votes. I think perhaps the thing to do is to display the quorum disk
votes in 'cman_tool status' immediately after 'Expected votes'. I think that
should be clear enough.

Comments ?
Comment 4 Christine Caulfield 2007-12-05 09:32:28 EST
Created attachment 278351 [details]

Checked into HEAD. here's the patch for RHEL5, as I don't think this has been
approved for 5.2
Comment 5 Christine Caulfield 2008-02-08 09:35:21 EST
Created attachment 294359 [details]
Updated patch

This is a slightly nicer patch and matches what is in HEAD of CVS.
Comment 6 Christine Caulfield 2008-04-28 11:11:23 EDT
Added to RHEL5 branch:

commit 38c7b171fee73837a539a441b9a408860c07f1d6
Author: Christine Caulfield <ccaulfie@redhat.com>
Date:   Mon Apr 28 16:10:09 2008 +0100
Comment 8 RHEL Product and Program Management 2008-07-31 18:20:16 EDT
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
Comment 11 errata-xmlrpc 2009-01-20 16:52:19 EST
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


Note You need to log in before you can comment on or make changes to this bug.