Bug 216780
Summary: | Cryptic XML messages from system-config-cluster | ||
---|---|---|---|
Product: | [Retired] Red Hat Cluster Suite | Reporter: | Robert Peterson <rpeterso> |
Component: | redhat-config-cluster | Assignee: | Jim Parsons <jparsons> |
Status: | CLOSED NOTABUG | QA Contact: | Cluster QE <mspqa-list> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 4 | CC: | cluster-maint |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2006-11-27 16:02:21 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: |
Description
Robert Peterson
2006-11-21 23:22:59 UTC
There is really no reason to be condescending here (which I feel your bug description reeks of) for an error in a configuration file that you built by hand, and then expect s-c-cluster to tell you what you did wrong. 1) If you had built the original conf file in s-c-cluster, this error would not exist. 2) Before reading a configuration file, s-c-cluster uses a RelaxNG schema file to validate that the incoming file does not contain krud. The command used is: 'xmllint --relaxng cluster.ng cluster.conf' where cluster.ng is a file included in the distribution in the src/misc directory. In fact, you can run this command on your own. 3) RelaxNG is much more lightweight a mechanism for checking xml validity than the only other option which is XML Schema. That is a nightmare to maintain, and the error messages it produces are as cryptic as the ones relaxng mode in xmllint produces. One advantage to using RelaxNG, is that the guy who wrote and maintains it works for Red Hat, and his error messages do improve with every release...so, it is not the GUI tool producing the cryptic messages, it is the external validation checker. 4) When a conf file fails, the relaxng error messages should be treated like a compile or link error, where the FIRST error message is what needs to be explored first. In the case of this file, the 'expecting gulm...' message is the clue. Since you are not using GuLM, then there should be a cman tag, even if it is an empty one: <cman/>. This is a requirement in the schema for cluster.conf...if a file will work in a rhel4 cluster without either a gulm or cman tag as a cman cluster, then this is a lucky accident - as it violates the xml schema for cluster.conf. If you add the <cman/> tag under <cluster> your errors will go away. If you have a nasty failure of your schema, one quick way to troubleshoot it is run xmllint directly and comment out huge chunks of the file to quickly localize what section is actually giving you the issue - such as, everything under the <rm> tag...then begin refining what is commented out until you find the true culprit --- or just write the conf file in s-c-cluster from the get go. |