1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

Feature #2435 #2092: Log when the sched discards the current Host for resched VMs

This commit is contained in:
Carlos Martín 2013-11-21 12:37:54 +01:00 committed by Javi Fontan
parent f1b88a7436
commit 0924ec23f4

View File

@ -522,6 +522,20 @@ void Scheduler::match_schedule()
continue;
}
// -----------------------------------------------------------------
// Filter current Hosts for resched VMs
// -----------------------------------------------------------------
if (vm->is_resched() && vm->get_hid() == host->get_hid())
{
ostringstream oss;
oss << "VM " << oid << ": Host " << host->get_hid()
<< " filtered out. VM cannot be migrated to its current Host.";
NebulaLog::log("SCHED",Log::DEBUG,oss);
continue;
}
// -----------------------------------------------------------------
// Evaluate VM requirements
// -----------------------------------------------------------------