From 3df22f473534a540a7d3d33765b4d4fe32f7d651 Mon Sep 17 00:00:00 2001 From: Gabor Apati-Nagy Date: Tue, 1 Dec 2015 21:31:48 +0000 Subject: [PATCH] CA-189674: Move VM shows an irrelevant (VIF mapping) error, but it shouldn't Fixed filters that are used to determine whether a vm can be migrated to a destination or not. Signed-off-by: Gabor Apati-Nagy --- .../Filters/CrossPoolMigrateCanMigrateFilter.cs | 2 +- .../Filters/ResidentHostIsSameAsSelectionFilter.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/XenAdmin/Wizards/CrossPoolMigrateWizard/Filters/CrossPoolMigrateCanMigrateFilter.cs b/XenAdmin/Wizards/CrossPoolMigrateWizard/Filters/CrossPoolMigrateCanMigrateFilter.cs index dca6d1dc7..62ffebccc 100644 --- a/XenAdmin/Wizards/CrossPoolMigrateWizard/Filters/CrossPoolMigrateCanMigrateFilter.cs +++ b/XenAdmin/Wizards/CrossPoolMigrateWizard/Filters/CrossPoolMigrateCanMigrateFilter.cs @@ -96,7 +96,7 @@ namespace XenAdmin.Wizards.CrossPoolMigrateWizard.Filters { //Skip the resident host as there's a filter for it and //if not then you could exclude intrapool migration - if(vm.resident_on == host.opaque_ref) + if (vm.Connection == host.Connection) continue; PIF managementPif = host.Connection.Cache.PIFs.First(p => p.management); diff --git a/XenAdmin/Wizards/CrossPoolMigrateWizard/Filters/ResidentHostIsSameAsSelectionFilter.cs b/XenAdmin/Wizards/CrossPoolMigrateWizard/Filters/ResidentHostIsSameAsSelectionFilter.cs index bbdb3a9f5..2c50a0e9a 100644 --- a/XenAdmin/Wizards/CrossPoolMigrateWizard/Filters/ResidentHostIsSameAsSelectionFilter.cs +++ b/XenAdmin/Wizards/CrossPoolMigrateWizard/Filters/ResidentHostIsSameAsSelectionFilter.cs @@ -54,7 +54,7 @@ namespace XenAdmin.Wizards.CrossPoolMigrateWizard.Filters get { List residentHosts = new List(); - preSelectedVMs.ForEach(vm=>residentHosts.Add( vm.Connection.Resolve(vm.resident_on))); + preSelectedVMs.ForEach(vm=>residentHosts.Add(vm.Home())); if(ItemToFilterOn is Host) {