From: "Daniel Kral" <d.kral@proxmox.com>
To: "Dominik Rusovac" <d.rusovac@proxmox.com>, <pve-devel@lists.proxmox.com>
Subject: Re: [PATCH pve-manager 1/3] ui: ha: add auto-rebalance flag
Date: Tue, 12 May 2026 11:05:33 +0200 [thread overview]
Message-ID: <DIGKTZNGR12E.2K7ZFGE1BZGQY@proxmox.com> (raw)
In-Reply-To: <20260511155734.149101-2-d.rusovac@proxmox.com>
Looks good to me, a small unrelated (pre-existing) nit inline, in any
way consider this as:
Reviewed-by: Daniel Kral <d.kral@proxmox.com>
On Mon May 11, 2026 at 5:57 PM CEST, Dominik Rusovac wrote:
> Adapt the implementation of the 'failback' flag for the 'auto-rebalance'
> flag, which controls whether an HA resource is allowed to migrate during
> automatic rebalancing.
>
> Signed-off-by: Dominik Rusovac <d.rusovac@proxmox.com>
> ---
> www/manager6/ha/ResourceEdit.js | 14 ++++++++++++++
> www/manager6/ha/Resources.js | 6 ++++++
> www/manager6/ha/StatusView.js | 4 ++++
> 3 files changed, 24 insertions(+)
>
> diff --git a/www/manager6/ha/ResourceEdit.js b/www/manager6/ha/ResourceEdit.js
> index a4f53dad..487d9cf3 100644
> --- a/www/manager6/ha/ResourceEdit.js
> +++ b/www/manager6/ha/ResourceEdit.js
> @@ -12,6 +12,7 @@ Ext.define('PVE.ha.VMResourceInputPanel', {
> delete values.vmid;
>
> PVE.Utils.delete_if_default(values, 'failback', '1', me.isCreate);
> + PVE.Utils.delete_if_default(values, 'auto-rebalance', '1', me.isCreate);
> PVE.Utils.delete_if_default(values, 'max_restart', '1', me.isCreate);
> PVE.Utils.delete_if_default(values, 'max_relocate', '1', me.isCreate);
>
> @@ -123,6 +124,19 @@ Ext.define('PVE.ha.VMResourceInputPanel', {
> uncheckedValue: 0,
> value: 1,
> },
> + {
> + xtype: 'proxmoxcheckbox',
> + name: 'auto-rebalance',
> + fieldLabel: gettext('Auto-Rebalance'),
> + autoEl: {
> + tag: 'div',
> + 'data-qtip': gettext(
> + 'Enable if HA resource may be migrated during automatic rebalancing.',
> + ),
> + },
> + uncheckedValue: 0,
> + value: 1,
> + },
nit: pre-existing, but maybe I think it might be nice to move the
requested state to the top row (in a patch before this) as it seems more
central to the HA resources than the 'failback' and new 'auto-rebalance'
option. No hard feelings though for this and definitely shouldn't block
this series at all.
> {
> xtype: 'proxmoxKVComboBox',
> name: 'state',
> diff --git a/www/manager6/ha/Resources.js b/www/manager6/ha/Resources.js
> index 621ed336..2fda3b24 100644
> --- a/www/manager6/ha/Resources.js
> +++ b/www/manager6/ha/Resources.js
> @@ -150,6 +150,12 @@ Ext.define('PVE.ha.ResourcesView', {
> sortable: true,
> dataIndex: 'failback',
> },
> + {
> + header: gettext('Auto-Rebalance'),
> + width: 100,
> + sortable: true,
> + dataIndex: 'auto-rebalance',
> + },
> {
> header: gettext('Description'),
> flex: 1,
> diff --git a/www/manager6/ha/StatusView.js b/www/manager6/ha/StatusView.js
> index bc2da71f..59fcc6f3 100644
> --- a/www/manager6/ha/StatusView.js
> +++ b/www/manager6/ha/StatusView.js
> @@ -84,6 +84,10 @@ Ext.define(
> name: 'failback',
> type: 'boolean',
> },
> + {
> + name: 'auto-rebalance',
> + type: 'boolean',
> + },
> 'max_restart',
> 'max_relocate',
> 'type',
next prev parent reply other threads:[~2026-05-12 9:06 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-11 15:57 [PATCH-SERIES ha-manager/manager 0/3] fix #7557: introduce 'auto-rebalance' property Dominik Rusovac
2026-05-11 15:57 ` [PATCH pve-manager 1/3] ui: ha: add auto-rebalance flag Dominik Rusovac
2026-05-12 9:05 ` Daniel Kral [this message]
2026-05-11 15:57 ` [PATCH pve-ha-manager 2/3] manager: set service config value in self Dominik Rusovac
2026-05-12 9:06 ` Daniel Kral
2026-05-12 11:55 ` Dominik Rusovac
2026-05-11 15:57 ` [PATCH pve-ha-manager 3/3] fix #7557: introduce 'auto-rebalance' property Dominik Rusovac
2026-05-12 9:07 ` Daniel Kral
2026-05-12 11:51 ` Dominik Rusovac
2026-05-12 9:21 ` [PATCH-SERIES ha-manager/manager 0/3] " Daniel Kral
2026-05-12 11:53 ` Dominik Rusovac
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DIGKTZNGR12E.2K7ZFGE1BZGQY@proxmox.com \
--to=d.kral@proxmox.com \
--cc=d.rusovac@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.