mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-02 05:06:14 +09:00
(cherry picked from commit 54baa5ac94818207b92450f259b5bdc25b17396b)
This commit is contained in:
1 parent
3147283eea
commit
d96be2e950
1 file changed
+12
-4
@@ -669,13 +669,21 @@ static bool match_system_ds(AclXML * acls, UserPoolXML * upool,
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Check datastore capacity for shared systems DS (non-shared will be
|
||||
// checked in a per host basis during dispatch). Resume actions do not
|
||||
// checked in a per host basis during dispatch). Resume/Resched actions don't
|
||||
// add to shared system DS usage, and are skipped also
|
||||
// -------------------------------------------------------------------------
|
||||
if (ds->is_shared() && ds->is_monitored() && !vm->is_resume() &&
|
||||
!ds->test_capacity(vdisk, error))
|
||||
if (ds->is_shared() && !vm->is_resched() && !vm->is_resume() )
|
||||
{
|
||||
return false;
|
||||
if (!ds->is_monitored())
|
||||
{
|
||||
error = "Not monitored.";
|
||||
return false;
|
||||
}
|
||||
else if (!ds->test_capacity(vdisk, error))
|
||||
{
|
||||
error = "Not enough capacity.";
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
n_fits++;
|
||||
|
||||
Reference in new issue
Block a user