Bug 767394

Summary: luci creates cluster.conf files that don't validate per ccs_config_validate
Product: Red Hat Enterprise Linux 6 Reporter: joshua
Component: luciAssignee: Ryan McCabe <rmccabe>
Status: CLOSED WORKSFORME QA Contact: Cluster QE <mspqa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.2CC: cluster-maint
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-03 15:09:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
cluster.conf that doesn't validate, but that luci is happy to update and distribute none

Description joshua 2011-12-13 23:23:19 UTC
Created attachment 546443 [details]
cluster.conf that doesn't validate, but that luci is happy to update and distribute

Description of problem:

Luci is more than happy to push this file around the cluster nodes when an update happens... however it doesn't pass basic validation:

$ sudo ccs_config_validate -vuf cluster.conf
Creating temporary file: /tmp/tmp.6pRWMIa9PT
Config interface set to: xmlconfig:cmanpreconfig
Configuration stored in temporary file
Updating relaxng schema
Validating..
Relax-NG validity error : Extra element rm in interleave
tempfile:31: element rm: Relax-NG validity error : Element cluster failed to validate content
Configuration fails to validate
Validation completed

This means that I can't change the cluster.conf file manually and distribute it with "cman_tool version -r", as it doesn't pass validation.  Lets get luci back to creating valid configs!


Version-Release number of selected component (if applicable):

cman-3.0.12.1-23.el6.x86_64
luci-0.23.0-32.el6.x86_64

Comment 2 Lon Hohberger 2011-12-14 21:13:39 UTC
[root@rhel6-1 ~]# ccs_config_validate -vuf ./cluster.conf
Creating temporary file: /tmp/tmp.OFFCsugwCS
Config interface set to:
Configuration stored in temporary file
Updating relaxng schema
Validating..
Configuration validates
Validation completed
[root@rhel6-1 ~]# echo $?
0
[root@rhel6-1 ~]# sha256sum cluster.conf 
68e43ea9ccaef9ebe5289d363b6e7bb479830225280d00793b5429d2a1435d71  cluster.conf
[root@rhel6-1 ~]# head -3 cluster.conf
<?xml version="1.0"?>
<cluster config_version="237" name="project-HA-Cluster">
        <clusternodes>

Comment 3 Lon Hohberger 2011-12-14 21:15:34 UTC
[root@rhel6-1 ~]# rpm -q cman
cman-3.0.12.1-23.el6.x86_64
[root@rhel6-1 ~]# rpm -q clusterlib
clusterlib-3.0.12.1-23.el6.x86_64

Comment 4 joshua 2011-12-15 19:49:30 UTC
Not sure what was going on... I can't replicate this either now :-(