Bug 797292 - ccs --createcluster should verify that a cluster.conf doesn't exist before creating one
Summary: ccs --createcluster should verify that a cluster.conf doesn't exist before cr...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ricci
Version: 6.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Chris Feist
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-24 19:45 UTC by Chris Feist
Modified: 2012-06-20 14:14 UTC (History)
4 users (show)

Fixed In Version: ricci-0.16.2-53.el6
Doc Type: Bug Fix
Doc Text:
No documentation needed.
Clone Of:
Environment:
Last Closed: 2012-06-20 14:14:19 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0898 0 normal SHIPPED_LIVE ricci bug fix and enhancement update 2012-06-19 19:50:47 UTC

Description Chris Feist 2012-02-24 19:45:22 UTC
ccs --createcluster should verify that a cluster.conf doesn't exist before creating one.

To Test:
Using a host without a cluster.conf with ricci running.

ccs -h host --createcluster test
ccs -h host --createcluster test2

The second time the command is run an error should be printed stating that a cluster has already been created.

Comment 2 Chris Feist 2012-03-01 00:29:14 UTC
With ricci-0.16.2-53.el6:


[root@ask-04 ~]# ccs -h localhost --createcluster testcluster[root@ask-04 ~]# ccs -h localhost --createcluster testcluster
cluster.conf already exists, use '-i' to override.
[root@ask-04 ~]# ccs -h localhost --createcluster testcluster2
cluster.conf already exists, use '-i' to override.
[root@ask-04 ~]# ccs -i -h localhost --createcluster testcluster2
[root@ask-04 ~]# ccs -h localhost --getconf
<cluster config_version="1" name="testcluster2">  
  <fence_daemon/>  
  <clusternodes/>  
  <cman/>  
  <fencedevices/>  
  <rm>    
    <failoverdomains/>    
    <resources/>    
  </rm>  
</cluster>

Comment 4 Chris Feist 2012-03-15 20:03:57 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
No documentation needed.

Comment 6 errata-xmlrpc 2012-06-20 14:14:19 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0898.html


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