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:
parent
46bcb93b26
commit
a1ff8bf9d7
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user