[pve-devel] [PATCH manager 1/1] ui: migrate: display precondition messages for ha node affinity

Daniel Kral d.kral at proxmox.com
Mon Dec 15 16:52:22 CET 2025


Extend the VM and container precondition check to show whether a
migration of the VM/container cannot be completed because of a node
affinity rule restricting the HA resource from being migrated to a
specific node.

The migration is blocked by the HA Manager's CLI and state machine
anyway, so this is more of an informational heads-up.

Signed-off-by: Daniel Kral <d.kral at proxmox.com>
---
 www/manager6/window/Migrate.js | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/www/manager6/window/Migrate.js b/www/manager6/window/Migrate.js
index ff80c70c..8cac54ea 100644
--- a/www/manager6/window/Migrate.js
+++ b/www/manager6/window/Migrate.js
@@ -432,6 +432,11 @@ Ext.define('PVE.window.Migrate', {
                             ),
                             sid,
                         );
+                    } else if (cause === 'node-affinity') {
+                        reasonText = Ext.String.format(
+                            gettext('HA resource {0} is not allowed on the selected target node'),
+                            sid,
+                        );
                     } else {
                         reasonText = Ext.String.format(
                             gettext('blocking HA resource {0} on selected target node'),
@@ -522,6 +527,11 @@ Ext.define('PVE.window.Migrate', {
                             ),
                             sid,
                         );
+                    } else if (cause === 'node-affinity') {
+                        reasonText = Ext.String.format(
+                            gettext('HA resource {0} is not allowed on the selected target node'),
+                            sid,
+                        );
                     } else {
                         reasonText = Ext.String.format(
                             gettext('blocking HA resource {0} on selected target node'),
-- 
2.47.3





More information about the pve-devel mailing list