Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-6730

Reserve operation should validate reserved resource role against resource allocationInfo role

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0
    • None
    • None

    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

          Activity

            People

              bbannier Benjamin Bannier
              gyliu Guangya Liu
              Guangya Liu Guangya Liu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: