36923b
From 5b6280ac1a213e176aee6d61945b3283ea060a88 Mon Sep 17 00:00:00 2001
36923b
From: Petr Pavlu <petr.pavlu@suse.com>
36923b
Date: Tue, 24 May 2022 18:02:31 +0200
36923b
Subject: [PATCH] Feature: tools: report CRM feature set of nodes by crm_mon
36923b
36923b
Enable crm_mon to report when CRM feature set is not consistent among
36923b
online nodes and output a version of each node if --show-detail is
36923b
specified.
36923b
---
36923b
 xml/api/crm_mon-2.21.rng           |   3 +
36923b
 xml/api/nodes-2.21.rng             |   3 +
36923b
 9 files changed, 508 insertions(+), 125 deletions(-)
36923b
 create mode 100644 cts/cli/crm_mon-feature_set.xml
36923b
 create mode 100644 cts/cli/regression.feature_set.exp
36923b
36923b
diff --git a/xml/api/crm_mon-2.21.rng b/xml/api/crm_mon-2.21.rng
36923b
index 37036d665..e99bcc3d7 100644
36923b
--- a/xml/api/crm_mon-2.21.rng
36923b
+++ b/xml/api/crm_mon-2.21.rng
36923b
@@ -54,6 +54,9 @@
36923b
                             <attribute name="with_quorum"> <data type="boolean" /> </attribute>
36923b
                         </group>
36923b
                     </optional>
36923b
+                    <optional>
36923b
+                        <attribute name="mixed_version"> <data type="boolean" /> </attribute>
36923b
+                    </optional>
36923b
                 </element>
36923b
             </optional>
36923b
             <optional>
36923b
diff --git a/xml/api/nodes-2.21.rng b/xml/api/nodes-2.21.rng
36923b
index df4c77f37..7e236ba63 100644
36923b
--- a/xml/api/nodes-2.21.rng
36923b
+++ b/xml/api/nodes-2.21.rng
36923b
@@ -25,6 +25,9 @@
36923b
                     </choice>
36923b
                 </attribute>
36923b
             </optional>
36923b
+            <optional>
36923b
+                <attribute name="feature_set"> <text/> </attribute>
36923b
+            </optional>
36923b
             <attribute name="shutdown"> <data type="boolean" /> </attribute>
36923b
             <attribute name="expected_up"> <data type="boolean" /> </attribute>
36923b
             <attribute name="is_dc"> <data type="boolean" /> </attribute>
36923b
-- 
36923b
2.31.1
36923b