Gitweb: http://git.fedorahosted.org/git/fence-agents.git?p=fence-agents.git;a=commit... Commit: 0c4c884b54cd25f02bf8b41106ad2855c14cdf67 Parent: 08ae2ac78f3e4b216edf4b6689ac235ec9153c6c Author: Fabio M. Di Nitto fdinitto@redhat.com AuthorDate: Mon Jun 27 14:07:57 2011 +0200 Committer: Fabio M. Di Nitto fdinitto@redhat.com CommitterDate: Mon Jun 27 14:07:57 2011 +0200
relaxng: ship bits required to build the schema at runtime
Signed-off-by: Fabio M. Di Nitto fdinitto@redhat.com --- fence/agents/lib/Makefile.am | 10 ++- fence/agents/lib/fence.rng.head | 250 +++++++++++++++++++++++++++++++++++++++ fence/agents/lib/fence.rng.tail | 14 ++ 3 files changed, 273 insertions(+), 1 deletions(-)
diff --git a/fence/agents/lib/Makefile.am b/fence/agents/lib/Makefile.am index 4a05d1b..f2fbb09 100644 --- a/fence/agents/lib/Makefile.am +++ b/fence/agents/lib/Makefile.am @@ -8,12 +8,20 @@ endif
SRC = fencing.py.py fencing_snmp.py.py XenAPI.py.py
-EXTRA_DIST = $(SRC) fence2man.xsl fence2rng.xsl +XSL = fence2man.xsl fence2rng.xsl + +FASRNG = fence.rng.head fence.rng.tail + +EXTRA_DIST = $(SRC) $(XSL) $(FASRNG)
fencelibdir = ${FENCEAGENTSLIBDIR}
fencelib_DATA = $(TARGET)
+rngdir = ${CLUSTERDATA}/relaxng + +rng_DATA = $(XSL) $(FASRNG) + include $(top_srcdir)/make/fencebuild.mk
clean-local: diff --git a/fence/agents/lib/fence.rng.head b/fence/agents/lib/fence.rng.head new file mode 100644 index 0000000..89bac03 --- /dev/null +++ b/fence/agents/lib/fence.rng.head @@ -0,0 +1,250 @@ +<!-- Autogenerated fence definitions --> +<grammar datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" +xmlns="http://relaxng.org/ns/structure/1.0" +xmlns:rha="http://redhat.com/~pkennedy/annotation_namespace/cluster_conf_annot_namespac... + <define name="FENCEDEVICEOPTIONS"> + <optional> + <choice> + <!-- begin specific fence devices --> + <!-- begin non-generated device definitions --> + <!-- RPS10 --> + <group rha:fence_agent="fence_rps10" rha:description="RPS10 Serial Switch" > + <attribute name="device" rha:description="The device the switch + is connected to on the controlling host." + rha:sample="/dev/ttys2"/> + <attribute name="port" rha:description="The switch outlet + number." rha:sample="2"/> + </group> + <!--FIXME: Determine if the following group should exclude + the auth and lanplus attributes. Those attributes apply only to + the impilan fence device.--> + <!-- Brocade, McData, SANBox2, Bladecenter,bullpap, ipmilan --> + <!-- FIXME split apart and add rha:fence_agent hints for + configuration utilities --> + <group> + <attribute name="ipaddr" rha:description="IP address or the name + of the device." rha:sample="rack007"/> + <optional> + <attribute name="login" rha:description="The login name used to + access the device. " rha:sample="admin"/> + </optional> + <optional> + <attribute name="passwd" rha:description="The password used to + authenticate the connection to the + device." rha:sample="pa$$word"/> + </optional> + <optional> + <attribute name="passwd_script" rha:description="The script that + supplies a password for access to the fence device. Using + this supersedes the Password parameter." rha:sample=""/> + </optional> + <optional> + <attribute name="auth" rha:description="For IPMI LAN + only. Authentication Type: none, password, + md2, or md5" rha:sample=""/> + </optional> + <optional> + <attribute name="lanplus" rha:description="For IPMI LAN only. + Set value to either True or 1; leave out for false." + rha:sample="True"/> + </optional> + </group> + <!-- Vixel --> + <group rha:fence_agent="fence_vixel"> + <optional> + <attribute name="ipaddr" rha:description="IP address or the + name of the device." rha:sample="10.1.0.1"/> + </optional> + <optional> + <attribute name="passwd" rha:description="The password used to + authenticate the connection to the + device." rha:sample="pa$$word"/> + </optional> + <optional> + <attribute name="passwd_script" rha:description="The script + that supplies a password for access to the + fence device. Using this supersedes the Password + parameter." rha:sample=""/> + </optional> + </group> + <!-- scsi reservations --> + <group rha:fence_agent="fence_scsi"> + <optional> + <attribute name="nodename" rha:description="Name of the node to + be fenced. Refer to fence_scsi(8) for more + information." rha:sample=""/> + </optional> + <optional> + <attribute name="key" rha:description="" rha:sample="33"> + <data type="positiveInteger"/> + </attribute> + </optional> + <optional> + <attribute name="devices" rha:description="List of devices + to fence (separated by commas)." rha:sample="/dev/sdb,/dev/sdc"/> + </optional> + <optional> + <attribute name="action" rha:description="Fencing action to + take (off or on)." rha:sample="off"/> + </optional> + <optional> + <attribute name="logfile" rha:description="Location to output + logs from fence_scsi." rha:sample="/var/log/fence_scsi.log"/> + </optional> + <optional> + <attribute name="aptpl" rha:description="" rha:sample=""/> + </optional> + </group> + <!-- GNBD --> + <group rha:fence_agent="fence_gnbd"> + <attribute name="servers" rha:description="The hostname of each + GNBD to disable. For multiple hostnames, separate each + hostname with a space." rha:sample=""/> + </group> + <!-- Egenera --> + <!-- FIXME: Note that in the schema web page each is listed as a + parameter. Likewise for Conga. In addition, Conga shows Ipan + and pserver parameters. Also, in Conga, the esh parameter is + an optional ESH path. Presumably those should be attributes in + the schema. We need more invormation on this. --> + <group rha:fence_agent="fence_egenera"> + <optional> + <attribute name="cserver" rha:description="The hostname (and + optionally the username in the form of username@hostname) + assigned to the device. Refer to the fence_egenera(8) man + page for more information." rha:sample=""/> + </optional> + <optional> + <attribute name="pserver" rha:description="The pserver to operate on. fence_egenera(8)" /> + </optional> + <optional> + <attribute name="lpan" rha:description="The lpan to operate on. fence_egenera(8)" /> + </optional> + <optional> + <attribute name="action" rha:description="The action to perform (reboot, off, on, or status). fence_egenera(8)" /> + </optional> + <optional> + <attribute name="esh" rha:description="Path to the esh command on the cserver. fence_egenera(8)" /> + </optional> + <optional> + <attribute name="user" rha:description="See fence_egenera(8)" /> + </optional> + <optional> + <attribute name="delay" rha:description="Wait this many seconds before fencing is started. fence_egenera(8)" /> + </optional> + </group> + <!-- FIXME: It appears that xCat is no longer supported. Found no + fence agents for x Cat in RHEL 5.3. --> + <!-- xCAT --> + <group rha:fence_agent="fence_xcat"> + <attribute name="rpowerpath" rha:description="" rha:sample=""/> + </group> + <!-- fence_xvm ( provided by fence-virt package ) --> + <group rha:fence_agent="fence_xvm"> + <optional> + <attribute name="option"/> <!-- deprecated; for compatibility. use "action" --> + </optional> + <optional> + <attribute name="debug" rha:description="Specify (stdin) or increment (command line) debug level" /> + </optional> + <optional> + <attribute name="ip_family" rha:description="IP Family ([auto], ipv4, ipv6)" /> + </optional> + <optional> + <attribute name="multicast_address" rha:description="Multicast address (default=225.0.0.12 / ff05::3:1)" /> + </optional> + <optional> + <attribute name="ipport" rha:description="Multicast or VMChannel IP port (default=1229)" /> + </optional> + <optional> + <attribute name="retrans" rha:description="Multicast retransmit time (in 1/10sec; default=20)" /> + </optional> + <optional> + <attribute name="auth" rha:description="Authentication (none, sha1, [sha256], sha512)" /> + </optional> + <optional> + <attribute name="hash" rha:description="Packet hash strength (none, sha1, [sha256], sha512)" /> + </optional> + <optional> + <attribute name="key_file" rha:description="Shared key file (default=/etc/cluster/fence_xvm.key)" /> + </optional> + <optional> + <attribute name="port" rha:description="Virtual Machine (domain name) to fence" /> + </optional> + <optional> + <attribute name="domain" rha:description="Virtual Machine (domain name) to fence (deprecated)" /> + </optional> + <optional> + <attribute name="use_uuid" rha:description="Treat [domain] as UUID instead of domain name. This is provided for compatibility with older fence_xvmd installations." /> + </optional> + <optional> + <attribute name="action" rha:description="Fencing action (null, off, on, [reboot], status, list, monitor, metadata)" /> + </optional> + <optional> + <attribute name="timeout" rha:description="Fencing timeout (in seconds; default=30)" /> + </optional> + </group> + <group rha:fence_agent="fence_virt"> + <optional> + <attribute name="option"/> <!-- deprecated; for compatibility. use "action" --> + </optional> + <optional> + <attribute name="debug" rha:description="Specify (stdin) or increment (command line) debug level" /> + </optional> + <optional> + <attribute name="serial_device" rha:description="Serial device (default=/dev/ttyS1)" /> + </optional> + <optional> + <attribute name="serial_params" rha:description="Serial Parameters (default=115200,8N1)" /> + </optional> + <optional> + <attribute name="channel_address" rha:description="VM Channel IP address (default=10.0.2.179)" /> + </optional> + <optional> + <attribute name="ipport" rha:description="Multicast or VMChannel IP port (default=1229)" /> + </optional> + <optional> + <attribute name="port" rha:description="Virtual Machine (domain name) to fence" /> + </optional> + <optional> + <attribute name="domain" rha:description="Virtual Machine (domain name) to fence (deprecated)" /> + </optional> + <optional> + <attribute name="action" rha:description="Fencing action (null, off, on, [reboot], status, list, monitor, metadata)" /> + </optional> + <optional> + <attribute name="timeout" rha:description="Fencing timeout (in seconds; default=30)" /> + </optional> + </group> + <group rha:fence_agent="fence_na" rha:description="Node Assassin"> + <optional> + <attribute name="option"/> <!-- deprecated; for compatibility. use "action" --> + </optional> + <!-- I don't think I need this yet. + <optional> + <attribute name="auth" rha:description="Node Assassin Auth type (password or none)" /> + </optional> + --> + <optional> + <attribute name="ipaddr" rha:description="Node Assassin IP or name to talk to" /> + </optional> + <optional> + <attribute name="passwd" rha:description="Password needed to access the Node Assassin(s)" /> + </optional> + <optional> + <attribute name="passwd_script" rha:description="Script to retrieve password (not implemented)" /> + </optional> + <optional> + <attribute name="login" rha:description="Login name used to log into the Node Assassin(s)" /> + </optional> + <optional> + <attribute name="action" rha:description="Operation to perform. Valid operations: on, off, reboot, status, list, release, boot or shutdown" /> + </optional> + <optional> + <attribute name="quiet" rha:description="Supress output" /> + </optional> + </group> + + <!-- end non-generated device definitions --> + + <!-- begin auto-generated device definitions --> diff --git a/fence/agents/lib/fence.rng.tail b/fence/agents/lib/fence.rng.tail new file mode 100644 index 0000000..204e6c0 --- /dev/null +++ b/fence/agents/lib/fence.rng.tail @@ -0,0 +1,14 @@ + <!-- end auto-generated device definitions --> + + <group> + <optional> + <empty/> + </optional> + </group> + + <!-- end specific fence devices --> + </choice> + </optional> + </define> +<!-- end fence attribute group definitions --> +</grammar>
cluster-commits@lists.stg.fedorahosted.org