public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH manager] report: add HA resource and rule configuration
@ 2026-11-30 11:32 Jonas Sterr
  2026-12-02 14:21 ` Dominik Rusovac
  2026-12-03 13:22 ` applied: " Thomas Lamprecht
  0 siblings, 2 replies; 3+ messages in thread
From: Jonas Sterr @ 2026-11-30 11:32 UTC (permalink / raw)
  To: pve-devel; +Cc: Jonas Sterr

The HA status only shows the current state of the resources, not why
the HA stack places, restarts or relocates them. That is decided by
settings like failback, max_restart, max_relocate and the requested
state, as well as by the node and resource affinity rules. Today,
support has to ask for each of them separately. With HA groups being
migrated to rules in Proxmox VE 9, mistakes from that migration are
also only visible in the configuration.

The fencing configuration is left out, as it can contain credentials
for the fence devices.

Signed-off-by: Jonas Sterr <jsterr@proxforge.de>
---
Tested on Proxmox VE 9.3.1:
- three-node cluster with HA VM resources and a node affinity rule:
  both files show up after 'ha-manager status', including failback,
  max_restart, max_relocate and comment of a resource, which
  'ha-manager status' does not show
- single node without HA: 'No such file or directory' for both, like
  for jobs.cfg and replication.cfg

This is my first contribution, the signed individual CLA has been sent
to office@proxmox.com.

 PVE/Report.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/PVE/Report.pm b/PVE/Report.pm
index c4b2ca11..1157eba9 100644
--- a/PVE/Report.pm
+++ b/PVE/Report.pm
@@ -169,6 +169,8 @@ my $init_report_cmds = sub {
                 'pvecm status',
                 'cat /etc/pve/corosync.conf 2>/dev/null',
                 'ha-manager status',
+                'cat /etc/pve/ha/resources.cfg',
+                'cat /etc/pve/ha/rules.cfg',
                 'cat /etc/pve/datacenter.cfg',
             ],
         },
-- 
2.56.1




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH manager] report: add HA resource and rule configuration
  2026-11-30 11:32 [PATCH manager] report: add HA resource and rule configuration Jonas Sterr
@ 2026-12-02 14:21 ` Dominik Rusovac
  2026-12-03 13:22 ` applied: " Thomas Lamprecht
  1 sibling, 0 replies; 3+ messages in thread
From: Dominik Rusovac @ 2026-12-02 14:21 UTC (permalink / raw)
  To: Jonas Sterr, pve-devel

thanks for the contribution!

noticed nothing off while testing

lgtm, consider as:

Reviewed-by: Dominik Rusovac <d.rusovac@proxmox.com>
Tested-by: Dominik Rusovac <d.rusovac@proxmox.com>

On Mon Nov 30, 2026 at 12:32 PM CET, Jonas Sterr wrote:
> The HA status only shows the current state of the resources, not why
> the HA stack places, restarts or relocates them. That is decided by
> settings like failback, max_restart, max_relocate and the requested
> state, as well as by the node and resource affinity rules. Today,
> support has to ask for each of them separately. With HA groups being
> migrated to rules in Proxmox VE 9, mistakes from that migration are
> also only visible in the configuration.
>
> The fencing configuration is left out, as it can contain credentials
> for the fence devices.
>
> Signed-off-by: Jonas Sterr <jsterr@proxforge.de>
> ---
> Tested on Proxmox VE 9.3.1:
> - three-node cluster with HA VM resources and a node affinity rule:
>   both files show up after 'ha-manager status', including failback,
>   max_restart, max_relocate and comment of a resource, which
>   'ha-manager status' does not show
> - single node without HA: 'No such file or directory' for both, like
>   for jobs.cfg and replication.cfg
>
> This is my first contribution, the signed individual CLA has been sent
> to office@proxmox.com.
>
>  PVE/Report.pm | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/PVE/Report.pm b/PVE/Report.pm
> index c4b2ca11..1157eba9 100644
> --- a/PVE/Report.pm
> +++ b/PVE/Report.pm
> @@ -169,6 +169,8 @@ my $init_report_cmds = sub {
>                  'pvecm status',
>                  'cat /etc/pve/corosync.conf 2>/dev/null',
>                  'ha-manager status',
> +                'cat /etc/pve/ha/resources.cfg',
> +                'cat /etc/pve/ha/rules.cfg',
>                  'cat /etc/pve/datacenter.cfg',
>              ],
>          },





^ permalink raw reply	[flat|nested] 3+ messages in thread

* applied: [PATCH manager] report: add HA resource and rule configuration
  2026-11-30 11:32 [PATCH manager] report: add HA resource and rule configuration Jonas Sterr
  2026-12-02 14:21 ` Dominik Rusovac
@ 2026-12-03 13:22 ` Thomas Lamprecht
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Lamprecht @ 2026-12-03 13:22 UTC (permalink / raw)
  To: pve-devel, Jonas Sterr

On Mon, 30 Nov 2026 12:32:40 +0100, Jonas Sterr wrote:
> The HA status only shows the current state of the resources, not why
> the HA stack places, restarts or relocates them. That is decided by
> settings like failback, max_restart, max_relocate and the requested
> state, as well as by the node and resource affinity rules. Today,
> support has to ask for each of them separately. With HA groups being
> migrated to rules in Proxmox VE 9, mistakes from that migration are
> also only visible in the configuration.
> 
> [...]

Applied, thanks!

[1/1] report: add HA resource and rule configuration
      https://git.proxmox.com/?p=pve-manager.git;a=commitdiff;h=e14bdc9a7d367b9e73dbec9456b4cd46f4f90753




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-12-03 13:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30 11:32 [PATCH manager] report: add HA resource and rule configuration Jonas Sterr
2026-12-02 14:21 ` Dominik Rusovac
2026-12-03 13:22 ` applied: " Thomas Lamprecht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal