[pve-devel] [PATCH ha-manager 1/2] add additional api field for lrm_mode in status check
Thomas Skinner
thomas at atskinner.net
Mon Aug 25 06:11:24 CEST 2025
Signed-off-by: Thomas Skinner <thomas at atskinner.net>
---
src/PVE/API2/HA/Status.pm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/PVE/API2/HA/Status.pm b/src/PVE/API2/HA/Status.pm
index 6e13c2c..f168637 100644
--- a/src/PVE/API2/HA/Status.pm
+++ b/src/PVE/API2/HA/Status.pm
@@ -104,6 +104,11 @@ __PACKAGE__->register_method({
type => "integer",
optional => 1,
},
+ lrm_mode => {
+ description => "For type 'lrm'. Mode as reported by the LRM.",
+ type => "string",
+ optional => 1,
+ },
crm_state => {
description => "For type 'service'. Service state as seen by the CRM.",
type => "string",
@@ -216,6 +221,7 @@ __PACKAGE__->register_method({
type => 'lrm',
node => $node,
status => "$node (unable to read lrm status)",
+ lrm_mode => 'unknown',
};
} else {
my $status_str = &$timestamp_to_status($ctime, $lrm_status->{timestamp});
@@ -246,6 +252,7 @@ __PACKAGE__->register_method({
node => $node,
status => $status_text,
timestamp => $lrm_status->{timestamp},
+ lrm_mode => $lrm_mode // "unknown",
};
}
}
--
2.47.2
More information about the pve-devel
mailing list