Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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