1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-22 13:33:52 +03:00

F #6341: Add generic quotas to the restricted attribute set

This commit is contained in:
Ruben S. Montero 2024-01-08 15:57:15 +01:00
parent 442041fd07
commit c12f8fe6a9
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -626,9 +626,13 @@ void Nebula::start(bool bootstrap_only)
{
if (QuotaVirtualMachine::add_metric_generic(quota->value()) != 0)
{
NebulaLog::warn("ONE", "Unable to add QUOTA_VM_ATTRIBUTE " + quota->value()
+ ", it already exists");
NebulaLog::warn("ONE",
"Duplicated QUOTA_VM_ATTRIBUTE detected: " + quota->value());
continue;
}
nebula_configuration->add("VM_RESTRICTED_ATTR", quota->value());
}
}
@ -691,7 +695,7 @@ void Nebula::start(bool bootstrap_only)
nebula_configuration->get("VM_ENCRYPTED_ATTR", vm_encrypted_attrs);
nebula_configuration->get("VM_SUBMIT_ON_HOLD",vm_submit_on_hold);
nebula_configuration->get("VM_SUBMIT_ON_HOLD", vm_submit_on_hold);
default_cost = nebula_configuration->get("DEFAULT_COST");