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 <[email protected]> --- 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 _______________________________________________ pve-devel mailing list [email protected] https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
