From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10596 invoked by alias); 26 Jan 2009 22:40:33 -0000 Received: (qmail 10584 invoked by alias); 26 Jan 2009 22:40:32 -0000 X-SWARE-Spam-Status: No, hits=-0.0 required=5.0 tests=AWL,BAYES_50,KAM_MX,SPF_HELO_PASS X-Spam-Status: No, hits=-0.0 required=5.0 tests=AWL,BAYES_50,KAM_MX,SPF_HELO_PASS X-Spam-Check-By: sourceware.org X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on bastion.fedora.phx.redhat.com Subject: cluster: STABLE3 - rgmanager: Add XSLT scripts for extracting RA metadata To: cluster-cvs-relay@redhat.com X-Project: Cluster Project X-Git-Module: cluster.git X-Git-Refname: refs/heads/STABLE3 X-Git-Reftype: branch X-Git-Oldrev: 6834a0bf614b62e2006c0aa4c333954279dfefa8 X-Git-Newrev: 758ca5bad1e4828b7026274fd155414f571c3d5b From: Lon Hohberger Message-Id: <20090126224007.C966612055C@lists.fedorahosted.org> Date: Mon, 26 Jan 2009 22:40:00 -0000 X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 Mailing-List: contact cluster-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cluster-cvs-owner@sourceware.org X-SW-Source: 2009-q1/txt/msg00283.txt.bz2 Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=758ca5bad1e4828b7026274fd155414f571c3d5b Commit: 758ca5bad1e4828b7026274fd155414f571c3d5b Parent: 6834a0bf614b62e2006c0aa4c333954279dfefa8 Author: Lon Hohberger AuthorDate: Mon Jan 26 17:32:29 2009 -0500 Committer: Lon Hohberger CommitterDate: Mon Jan 26 17:32:29 2009 -0500 rgmanager: Add XSLT scripts for extracting RA metadata --- rgmanager/src/resources/ra2csv.xsl | 19 +++++ rgmanager/src/resources/ra2man.xsl | 158 ++++++++++++++++++++++++++++++++++++ rgmanager/src/resources/ra2oid.xsl | 68 +++++++++++++++ 3 files changed, 245 insertions(+), 0 deletions(-) diff --git a/rgmanager/src/resources/ra2csv.xsl b/rgmanager/src/resources/ra2csv.xsl new file mode 100644 index 0000000..a00243a --- /dev/null +++ b/rgmanager/src/resources/ra2csv.xsl @@ -0,0 +1,19 @@ + + + + + + + + + + ,rhcs + + + + +obj +attr + + + diff --git a/rgmanager/src/resources/ra2man.xsl b/rgmanager/src/resources/ra2man.xsl new file mode 100644 index 0000000..095a7b3 --- /dev/null +++ b/rgmanager/src/resources/ra2man.xsl @@ -0,0 +1,158 @@ + + + + +.TP +.B + + + +This is the defining attribute for the resource type, and will be shown in logs. + +No other instances of the +.B +resource may have the same value for the +.B +parameter. + +This parameter is required; the resource manager will ignore specification of a resource without this parameter. +You may safely change this attribute on the fly; doing so will not cause a restart of the resource or its children. + +Content: + +Default Value: + + + + +.TP +\fB\fp (timeout: ) + + +This starts the resource. + + +This stops the resource. + + + +Depth . + +This checks the status of the resource. This is specified in the OCF Resource Agent API, but not LSB compliant. This is synonymous with +.B status +on some resource managers. + + +Given (minimally) all required parameters to start or check the status of the resource, validate that those parameters are correct as much as possible. + + +Display the XML metadata describing this resource. + +Reconfigure the resource in-place with the new given parameters. + + +Attempt to recover the resource in-place without affecting dependencies. If this fails, the resource manager will try more forceful recovery (such as stop-start). + + + +Depth . + +This checks the status of the resource. This is LSB compliant, but not specified by the OCF Resource Agent API. This is synonymous with +.B monitor +on some resource managers. + + +Reconfigure the resource in-place with the new given parameters. + + +Given (minimally) all required parameters to start or check the status of the resource, validate that those parameters are correct as much as possible. This is a misinterpretation of the +.B validate-all +action, and should be fixed. Please report a bug. + + +If this resource was the slave instance of the +resource, promote it to master status. + + +If this resource was the master instance of the +resource, demote it to slave status. + + +Migrate this resource to another node in the cluster. + + + +The operational behavior of this is not known. + + + + + +.PP + - +Started at level . +Stopped at level . + +.TH RESOURCE_AGENT 8 2009-01-20 " (Resource Agent)" +.SH + +Cluster Resource Agent + +.SH DESCRIPTION + + +.SH PARAMETERS + + +.SH RGMANAGER INTERNAL PARAMETERS +.TP +.B __enforce_timeouts +If set to 1, an operation exceeding the defined timeout will be considered +a failure of that operation. Note that fail-to-stop is critical, and causes +a service to enter the failed state. + +.TP +.B __independent_subtree +If set to 1, failure of a status operation of this resource or any of its +children will be considered non-fatal unless a restart of this resource and +all of its children also fails. + +.SH ACTIONS + + +.SH RGMANAGER NOTES + + +.PP +An instatnce of this resource defined in the +.B <resources> +section of +.B cluster.conf +can be referenced in the resource +tree at most +time(s). All subsequent references to this resource will be ignored. + + +.PP +This is the root resource class. Other resource +types must be attached as children to this resource +class. + + +.PP +Known Child Types: + + + +.SH REFERENCES +.PP +http://www.opencf.org/cgi-bin/viewcvs.cgi/specs/ra/resource-agent-api.txt?rev=HEAD - The Open Cluster Framework Resource Agent Application Programming Interface draft version 1.0 + +.PP +http://www.linux-foundation.org/spec/refspecs/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html - Linux Standards Base v3.1.0 - Init Script Actions + +.PP +http://sources.redhat.com/cluster/wiki/RGManager - Linux-cluster Resource Group Manager information + + + diff --git a/rgmanager/src/resources/ra2oid.xsl b/rgmanager/src/resources/ra2oid.xsl new file mode 100644 index 0000000..697bd49 --- /dev/null +++ b/rgmanager/src/resources/ra2oid.xsl @@ -0,0 +1,68 @@ + + + + + + + + name + rhcs + + + + +# +# Resource Agent: +# Provider: +# Provider Version: +# API Version: +# Description: +# +objectClasses: ( + 1.3.6.1.4.1.2312.8.1.2.@@OBJ_CLASS_@@ NAME ' + + ' SUP top STRUCTURAL + DESC '' + MUST( + + + + + $ + + ) + MAY( + + + + + + $ + + + ) +) + +# +# Object Attributes +# FIXME: Run a list of known attribute types +# + + +attributeTypes: ( + 1.3.6.1.4.1.2312.8.1.1.@@ATTR_TYPE_@@ NAME '' + DESC '' + + EQUALITY integerMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 + EQUALITY booleanMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 + EQUALITY caseExactIA5Match + SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 + + SINGLE-VALUE +) + + + +