Bug 682868

Summary: Fix ccs logic to prevent bad cluster.conf files (and update man page).
Product: Red Hat Enterprise Linux 6 Reporter: Chris Feist <cfeist>
Component: ricciAssignee: Chris Feist <cfeist>
Status: CLOSED ERRATA QA Contact: Cluster QE <mspqa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1CC: bbrock, cluster-maint
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ricci-0.16.2-33.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-19 14:18:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Chris Feist 2011-03-07 20:13:57 UTC
In certain cases it's possible to create cluster.conf files with ccs that don't validate with the schema, just need one extra check before sending the file to the hosts to make sure it validates with the schema.

Comment 3 Chris Feist 2011-04-05 22:18:52 UTC
To test generating a bad cluster.conf


ccs -f test2 --createcluster
ccs -f test2 --addresource blah

You should get the following error:

"Validation Failure, unable to modify configuration file (use -i to ignore this error)."

If you use a proper resource (like nfsclient)...

ccs -f test2 --addresource nfsclient ref=/test

It succeeds and nfsclient shows up in the test2 file that was created.

Comment 4 Brian Brock 2011-04-13 00:00:07 UTC
fix verified in ccs-0.16.2-35.el6

Comment 5 errata-xmlrpc 2011-05-19 14:18:05 UTC
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.

http://rhn.redhat.com/errata/RHBA-2011-0749.html