mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 20:02:38 +09:00
Feature #1712: Fix scheduler to not add VM storage capacity for migrations
This commit is contained in:
1 parent
46bcb93b26
commit
a1ff8bf9d7
1 file changed
+5
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user