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

Feature #1712: Fix scheduler to not add VM storage capacity for migrations

This commit is contained in:
Carlos Martín 2013-09-17 17:10:33 +02:00
parent 46bcb93b26
commit a1ff8bf9d7

View File

@ -868,7 +868,11 @@ void Scheduler::dispatch()
continue;
}
ds->add_capacity(dsk);
// DS capacity is only added for new deployments, not for migrations
if (!vm->is_resched())
{
ds->add_capacity(dsk);
}
host->add_capacity(cpu,mem,dsk);