You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Guangya Liu (JIRA)" <ji...@apache.org> on 2016/12/06 16:19:59 UTC

[jira] [Created] (MESOS-6730) Reserve operation should validate reserved resource role against resource allocationInfo role

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)