[ClusterLabs] Q: Validate RA metadata XML
Oyvind Albrigtsen
oalbrigt at redhat.com
Mon May 12 15:11:44 UTC 2025
On 12/05/25 06:45 +0000, Windl, Ulrich wrote:
>Hi!
>
>Somewhat stupid question: How does a developer validate the RA's XML metadata (beyond well-formedness)?
>I see that there a DTD and a RNG file, and I have xmllint, but I'm fighting with the syntax in SLES 15:
>What I think worked once, does not any more.
You can run "make <agent>.check" from the heartbeat directory or read the %.check rule in heartbeat/Makefile.am to see how it's supposed to be run.
Oyvind Albrigtsen
>
>I'm seeing errors like:
>metadata.xml:2: warning: failed to load external entity "ra-api-1.dtd"
><!DOCTYPE resource-agent SYSTEM "ra-api-1.dtd">
>
>Before it says:
>Resolve: sysID ra-api-1.dtd
>-1503287488 Parsing catalog file:///etc/xml/catalog
>file:///etc/xml/catalog added to file hash
>file:///etc/xml/catalog-d.xml not found in file hash
>-1503287488 Parsing catalog file:///etc/xml/catalog-d.xml
>file:///etc/xml/catalog-d.xml added to file hash
>file:///etc/xml/suse-catalog.xml not found in file hash
>-1503287488 Parsing catalog file:///etc/xml/suse-catalog.xml
>file:///etc/xml/suse-catalog.xml added to file hash
>Resolve URI ra-api-1.dtd
>Resolve: sysID ra-api-1.dtd
>Resolve URI ra-api-1.dtd
>Resolve: sysID ra-api-1.dtd
>Resolve URI ra-api-1.dtd
>
>Kind regards,
>Ulrich
>
>_______________________________________________
>Manage your subscription:
>https://lists.clusterlabs.org/mailman/listinfo/users
>
>ClusterLabs home: https://www.clusterlabs.org/
More information about the Users
mailing list