From 4e84b1264e5988d710a8f666a499b78383e7cc24 Mon Sep 17 00:00:00 2001 From: Francesco Torchia Date: Tue, 24 Sep 2024 11:12:00 +0200 Subject: [PATCH] Fix Node list in VMs Migrate dialog Signed-off-by: Francesco Torchia --- pkg/harvester/dialog/HarvesterMigrationDialog.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/harvester/dialog/HarvesterMigrationDialog.vue b/pkg/harvester/dialog/HarvesterMigrationDialog.vue index 411406d6..e50ac071 100644 --- a/pkg/harvester/dialog/HarvesterMigrationDialog.vue +++ b/pkg/harvester/dialog/HarvesterMigrationDialog.vue @@ -76,7 +76,8 @@ export default { return nodes.filter((n) => { const isNotSelfNode = !!this.availableNodes.includes(n.id); const isNotWitnessNode = n.isEtcd !== 'true'; // do not allow to migrate to self node and witness node - const matchingCpuManagerConfig = n.isCPUManagerEnabled; // If cpu-pinning is enabled, filter-out non-enabled CPU manager nodes. + const isCpuPinning = this.actionResource?.spec?.template?.spec?.domain?.cpu?.dedicatedCpuPlacement; + const matchingCpuManagerConfig = !isCpuPinning || n.isCPUManagerEnabled; // If cpu-pinning is enabled, filter-out non-enabled CPU manager nodes. return isNotSelfNode && isNotWitnessNode && matchingCpuManagerConfig; }).map((n) => {