Re: [Linux-HA] Latest DTD?

2009-03-19 Thread Andrew Beekhof
On Wed, Mar 18, 2009 at 22:30, Michael Schwartzkopff  wrote:
> Am Mittwoch, 18. März 2009 10:56:49 schrieb Andrew Beekhof:
>> On Wed, Mar 18, 2009 at 07:27, Michael Schwartzkopff 
> 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 '> > 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 ''
> Call cib_create failed (-47): Update does not conform to the configured
> schema/DTD
> 

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
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] Latest DTD?

2009-03-18 Thread Michael Schwartzkopff
Am Mittwoch, 18. März 2009 10:56:49 schrieb Andrew Beekhof:
> On Wed, Mar 18, 2009 at 07:27, Michael Schwartzkopff  
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 ' > 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 ''
Call cib_create failed (-47): Update does not conform to the configured 
schema/DTD



> > 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?

Greetings,

-- 
Dr. Michael Schwartzkopff
MultiNET Services GmbH
Addresse: Bretonischer Ring 7; 85630 Grasbrunn; Germany
Tel: +49 - 89 - 45 69 11 0
Fax: +49 - 89 - 45 69 11 21
mob: +49 - 174 - 343 28 75

mail: mi...@multinet.de
web: www.multinet.de

Sitz der Gesellschaft: 85630 Grasbrunn
Registergericht: Amtsgericht München HRB 114375
Geschäftsführer: Günter Jurgeneit, Hubert Martens

---

PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B
Skype: misch42
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] Latest DTD?

2009-03-18 Thread Andrew Beekhof
On Wed, Mar 18, 2009 at 07:27, Michael Schwartzkopff  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 ' name="transition_idle_timeout"
> value="50"/>'
>
> results in an error.

It shouldn't.  The DTD doesn't validate names.

> 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
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems