Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 145393 - second ccs update attempt (from another node) fails if update file is /etc/cluster/cluster.conf
second ccs update attempt (from another node) fails if update file is /etc/cl...
Product: Red Hat Cluster Suite
Classification: Retired
Component: ccs (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Jonathan Earl Brassow
Cluster QE
Depends On:
  Show dependency treegraph
Reported: 2005-01-17 17:35 EST by Corey Marthaler
Modified: 2009-04-16 16:04 EDT (History)
1 user (show)

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

Attachments (Terms of Use)

  None (edit)
Description Corey Marthaler 2005-01-17 17:35:37 EST
Description of problem:
A. Get the kernel cluster up
[root@morph-04 root]# cat /proc/cluster/nodes
Node  Votes Exp Sts  Name
   1    1    6   M   morph-06
   2    1    6   M   morph-05
   3    1    6   M   morph-03
   4    1    6   M   morph-01
   5    1    6   M   morph-04
   6    1    6   M   morph-02
[root@morph-04 root]# head /etc/cluster/cluster.conf
<?xml version="1.0"?>
<cluster name="morph-cluster" config_version="1">

B. Edit and update /etc/cluster/cluster.conf on another node and then
let cman know on this node (and all others in cluster)
[root@morph-04 root]# cman_tool version -r 2

[root@morph-04 root]# head /etc/cluster/cluster.conf
<?xml version="1.0"?>
<cluster name="morph-cluster" config_version="2">

[root@morph-04 root]# cat /proc/cluster/status
Protocol version: 4.0.1
Config version: 2
Cluster name: morph-cluster
Cluster ID: 41652
Membership state: Cluster-Member
Nodes: 6
Expected_votes: 6
Total_votes: 6
Quorum: 4
Active subsystems: 0
Node addresses:

C. Edit and update /etc/cluster/cluster.conf on this node
[root@morph-04 root]# head /etc/cluster/cluster.conf
<?xml version="1.0"?>
<cluster name="morph-cluster" config_version="3">

D. Attempt of ccs_tool update causes the version to be bumped back
down and fail
[root@morph-04 root]# ccs_tool update /etc/cluster/cluster.conf
Proposed updated config file does not have greater version number.
  Current config_version :: 2
  Proposed config_version:: 2

Failed to update config file.
[root@morph-04 root]# head /etc/cluster/cluster.conf
<?xml version="1.0"?>
<cluster name="morph-cluster" config_version="2">

However, if I once again edit /etc/cluster/cluster.conf and then
update, it will work

[root@morph-04 root]# ccs_tool update /etc/cluster/cluster.conf
Config file updated from version 2 to 3

Update complete.

Version-Release number of selected component (if applicable):
[root@morph-04 root]# ccsd -V
ccsd 0.17. (built Jan 13 2005 18:56:06)
Copyright (C) Red Hat, Inc.  2004  All rights reserved.

How reproducible:

Additional info:
if you do not edit /etc/cluster/cluster.conf and instead use a
different file for updates, it will work just fine.
Comment 1 Corey Marthaler 2005-01-17 18:14:24 EST
debugged this further and found that for the update attempt to fail,
it has to be on another node than where the first update was done from.
Comment 2 Jonathan Earl Brassow 2005-01-18 11:53:38 EST
Comment 3 Corey Marthaler 2005-01-31 18:52:56 EST
fix verified.

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