Guangya Liu created MESOS-6730:
----------------------------------
Summary: Reserve operation should validate reserved resource role
against resource allocationInfo role
Key: MESOS-6730
URL: https://issues.apache.org/jira/browse/MESOS-6730
Project: Mesos
Issue Type: Bug
Reporter: Guangya Liu
When doing dynamic reservation validation, the current logic is make sure the
reserved resources role is same as the framework role:
https://github.com/apache/mesos/blob/1.1.x/src/master/validation.cpp#L1458
{code}
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() + "'");
}
{code}
With multi-role framework, we should validate reserved resource role same as
resource allocation role.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)