Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Mesosphere Sprint 51
-
3
Description
When doing dynamic reservation validation, the current logic is make sure the reserved resources role is same as the framework role (see src/master/validation.cpp):
if (frameworkRole.isSome() && resource.role() != frameworkRole.get()) { return Error( "A reserve operation was attempted for a resource with role" " '" + resource.role() + "', but the framework can only reserve" " resources with role '" + frameworkRole.get() + "'"); }
With multi-role framework, we should validate reserved resource role same as resource allocation role.
Please make sure distinguish dynamic reservation with framework and http endpoint. If dynamic reservation was triggered by a framework, then we need to do such validation. If done by the http endpoint, then no need to validate the roles.
Attachments
Issue Links
- is blocked by
-
MESOS-6635 Update allocator to handle multi-role frameworks.
- Resolved