Blame SOURCES/bz2036633-01-Make-ocf-linbit-drbd-agent-pass-OCF-validation.patch
|
|
9e0fa3 |
From 46b079a93d1817f9c1d6a7403c70b30f59d19c20 Mon Sep 17 00:00:00 2001
|
|
|
9e0fa3 |
From: Tomas Jelinek <tojeline@redhat.com>
|
|
|
9e0fa3 |
Date: Tue, 4 Jan 2022 12:56:56 +0100
|
|
|
9e0fa3 |
Subject: [PATCH 2/5] Make ocf:linbit:drbd agent pass OCF validation
|
|
|
9e0fa3 |
|
|
|
9e0fa3 |
---
|
|
|
9e0fa3 |
data/ocf-1.0.rng | 18 ++++++++----------
|
|
|
9e0fa3 |
1 file changed, 8 insertions(+), 10 deletions(-)
|
|
|
9e0fa3 |
|
|
|
9e0fa3 |
diff --git a/data/ocf-1.0.rng b/data/ocf-1.0.rng
|
|
|
9e0fa3 |
index 36ba4611..1e14a83b 100644
|
|
|
9e0fa3 |
--- a/data/ocf-1.0.rng
|
|
|
9e0fa3 |
+++ b/data/ocf-1.0.rng
|
|
|
9e0fa3 |
@@ -169,16 +169,14 @@ RNGs. Thank you.
|
|
|
9e0fa3 |
<optional>
|
|
|
9e0fa3 |
<element name="content">
|
|
|
9e0fa3 |
<choice>
|
|
|
9e0fa3 |
- <attribute name="type">
|
|
|
9e0fa3 |
- <choice>
|
|
|
9e0fa3 |
- <value>boolean</value>
|
|
|
9e0fa3 |
- <value>string</value>
|
|
|
9e0fa3 |
- <value>integer</value>
|
|
|
9e0fa3 |
- <value>second</value>
|
|
|
9e0fa3 |
- <value>int</value>
|
|
|
9e0fa3 |
- <value>time</value>
|
|
|
9e0fa3 |
- </choice>
|
|
|
9e0fa3 |
- </attribute>
|
|
|
9e0fa3 |
+
|
|
|
9e0fa3 |
+ OCF 1.0 allows values: boolean, integer, string. Agents, however,
|
|
|
9e0fa3 |
+ quite often use other values: int (fence agents), numeric
|
|
|
9e0fa3 |
+ (ocf:linbit:drbd), second (fence agents), time (pacemaker
|
|
|
9e0fa3 |
+ metadata). Since pcs doesn't actually care about the type, we
|
|
|
9e0fa3 |
+ allow any type to keep compatibility with existing agents.
|
|
|
9e0fa3 |
+ -->
|
|
|
9e0fa3 |
+ <attribute name="type" />
|
|
|
9e0fa3 |
<group>
|
|
|
9e0fa3 |
|
|
|
9e0fa3 |
used by fence agents and processed by pcs even though it is not
|
|
|
9e0fa3 |
--
|
|
|
9e0fa3 |
2.31.1
|
|
|
9e0fa3 |
|