>>>>>>> "Ulrich Windl" <[email protected]> schrieb am
>>>>>>> 04.07.2011
> um
15:31 in Nachricht <[email protected]>
[...]
> Hi Lars,
>
> as I started to write the RA, I found that the draft specification (written
> by
> you?) talks about a "monitor" action (section 3.4.3), while the DTD only
> knows
> about a "status" action.
[...]
Let me add: The "ra-api-1.dtd" is invalid. I tried to validate my metadata of
the RA:
xmllint --dtdvalid ra-api-1.dtd ra.xml
ra-api-1.dtd:1: parser error : Missing encoding in text declaration
<?xml version="1.0" ?>
^
To compare, /usr/share/apache2/manual/style/faq.dtd starts with
<?xml version='1.0' encoding='UTF-8' ?>
After fixing the first line, I found out that the "special" element is not
optional by the DTD (while semantically it obviously is):
ra.xml:3: element resource-agent: validity error : Element resource-agent
content does not follow the DTD, expecting (version , parameters , actions ,
special), got (version parameters actions )
Document ra.xml does not validate against ra-api-1.dtd
After adding '<special tag="no idea"/>' the metadata validated against the
fixed DTD.
BTW: How does "crm ra" locate RAs, i.e. is it allowed for an RA to have
"sidecar" files (like "ra.xml")? If that's allowed, I'd like to use a pattern
like this for easy XML editing and validation:
case ...
[...]
meta-data)
cat "${0}.xml"
;;
[...]
esac
Note it will exit 0 iff the file was output successfully.
Regards,
Ulrich
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems