[pve-devel] [PATCH container 1/1] api: migration preconditions: add node affinity as blocking cause

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


Signed-off-by: Daniel Kral <d.kral at proxmox.com>
---
Needs a version bump for pve-ha-manager.

 src/PVE/API2/LXC.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm
index 3d74f71..78e9264 100644
--- a/src/PVE/API2/LXC.pm
+++ b/src/PVE/API2/LXC.pm
@@ -1494,7 +1494,7 @@ __PACKAGE__->register_method({
                                     type => 'string',
                                     description => "The reason why the HA"
                                         . " resource is blocking the migration.",
-                                    enum => ['resource-affinity'],
+                                    enum => ['node-affinity', 'resource-affinity'],
                                 },
                             },
                         },
-- 
2.47.3





More information about the pve-devel mailing list