LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File add_drbd_0_8_3_metadata_back_to_schema.patch of Package cluster (Project home:sschapiro:openstack:upstream)

From 0c01f1dec0c264203ee9736dcf6958c992c2fc88 Mon Sep 17 00:00:00 2001
From: Lon Hohberger <lhh@redhat.com>
Date: Fri, 18 Mar 2011 10:53:20 -0400
Subject: [PATCH] config: Add DRBD 0.8.3 metadata back to schema

Resolves: rhbz#680172

Signed-off-by: Lon Hohberger <lhh@redhat.com>
Reviewed-by: Fabio Di Nitto <fdinitto@redhat.com>
---
 config/tools/xml/cluster.rng.in |   38 ++++++++++++++++++++++++++++++++++++++
 1 files changed, 38 insertions(+), 0 deletions(-)

diff --git a/config/tools/xml/cluster.rng.in b/config/tools/xml/cluster.rng.in
index 821fb82..ae85bd4 100644
--- a/config/tools/xml/cluster.rng.in
+++ b/config/tools/xml/cluster.rng.in
@@ -2247,6 +2247,43 @@ To validate your cluster.conf against this schema, run:
     </element>
   </define>
 
+
+  <define name="DRBD">
+    <element name="drbd" rha:description="This is a DRBD resource.">
+      <choice>
+      <group>
+        <!-- rgmanager specific stuff -->
+        <attribute name="ref" rha:description="Reference to existing drbd resource in the resources section."/>
+      </group>
+      <group>
+        <attribute name="name" rha:description="Cluster resource name"/>
+        <attribute name="resource" rha:description="DRBD resource name"/>
+      </group>
+      </choice>
+      <optional>
+        <attribute name="__independent_subtree" rha:description="Treat this and all children as an independent subtree."/>
+      </optional>
+      <optional>
+        <attribute name="__enforce_timeouts" rha:description="Consider a timeout for operations as fatal."/>
+      </optional>
+      <optional>
+        <attribute name="__max_failures" rha:description="Maximum number of failures before returning a failure to a status check."/>
+      </optional>
+      <optional>
+        <attribute name="__failure_expire_time" rha:description="Amount of time before a failure is forgotten."/>
+      </optional>
+      <optional>
+        <attribute name="__max_restarts" rha:description="Maximum number restarts for an independent subtree before giving up."/>
+      </optional>
+      <optional>
+        <attribute name="__restart_expire_time" rha:description="Amount of time before a failure is forgotten for an independent subtree."/>
+      </optional>
+      <optional>
+        <ref name="CHILDREN"/>
+      </optional>
+    </element>
+  </define>
+
   <define name="CHILDREN">
     <zeroOrMore>
      <choice>
@@ -2275,6 +2312,7 @@ To validate your cluster.conf against this schema, run:
         <ref name="ORALISTENER"/>
         <ref name="FS"/>
         <ref name="ORACLEDB"/>
+        <ref name="DRBD"/>
       <ref name="RESOURCEACTION"/>
      </choice>
     </zeroOrMore>
-- 
1.7.3.4