Bug 767394 - luci creates cluster.conf files that don't validate per ccs_config_validate
Summary: luci creates cluster.conf files that don't validate per ccs_config_validate
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: luci
Version: 6.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Ryan McCabe
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-13 23:23 UTC by joshua
Modified: 2012-01-03 15:09 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-01-03 15:09:06 UTC
Target Upstream Version:


Attachments (Terms of Use)
cluster.conf that doesn't validate, but that luci is happy to update and distribute (3.83 KB, text/plain)
2011-12-13 23:23 UTC, joshua
no flags Details

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 :-(


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