On Wed, Mar 18, 2009 at 22:30, Michael Schwartzkopff <[email protected]> wrote:
> Am Mittwoch, 18. März 2009 10:56:49 schrieb Andrew Beekhof:
>> On Wed, Mar 18, 2009 at 07:27, Michael Schwartzkopff <[email protected]>
> wrote:
>> > Hi,
>> >
>> > where can I find information about the latest DTD. I am especially
>> > interested in information about the crm_config section.
>> >
>> > The two sources of information I found were:
>> > http://hg.clusterlabs.org/pacemaker/dev/file/tip/xml/crm-1.0.dtd
>> > http://www.linux-ha.org/ciblint/crm_config
>> >
>> > which somehow contradict each other. The crm.dtd i.e. tells me about an
>> > attribute transistion_idle_timeout which doesn't exist in the actual
>> > configuration and
>> > cibadmin -C -o crm_config -X '<nvpair id="12345"
>> > name="transition_idle_timeout" value="50"/>'
>> >
>> > results in an error.
>>
>> It shouldn't.  The DTD doesn't validate names.
>
> # cibadmin -C -o crm_config -X '<nvpair id="nvpair-7d901f86-b3b2-4a71-b189-
> d81c408e7bc5" name="transition_idle_timeout" value="50"/>'
> Call cib_create failed (-47): Update does not conform to the configured
> schema/DTD
> <null>

I would expect that for a 0.6 cluster, or a 1.0 cluster with a 0.6-based config.
But you didn't supply the rest of the configuration ;-)

Alternatively, perhaps you could just use:
   crm_attribute -n transition_idle_timeout -v 50

>> > Where to find the real DTD definition? Thanks.
>>
>> There isn't one, its been replaced by a relax-ng schema :-)
>>
>> /usr/share/pacemaker/pacemaker.rng
>
> Ok. Where is the doc how to configure the crm_config section of a pacemaker
> cluster? What attrbiutes are valid are can be used?

There's no such thing as an invalid option, only options that are or
are not used by the cluster.
We deliberately don't validate the option names/values in the CIB
because that requires teaching the CIB about things its shouldn't know
about and it causes all sorts of problems for rolling upgrades.

All options are documented in the configuration explained document and
you can also see the XML metatdata with the following commands:
  pengine metadata, and
  crmd metadata
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to