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

Add an option to delete a weight for a specific role

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.3.0, 1.5.0
    • Fix Version/s: None
    • Component/s: HTTP API
    • Labels:
      None

      Description

      Apparently, there's no option to remove a weight for a specific role.

      I have something like this:

      [
      {
      "role": "role2",
      "weight": 1.1
      },
      {
      "role": "marathon",
      "weight": 3.0
      },
      {
      "role": "chronos",
      "weight": 1.0
      },
      {
      "role": "*",
      "weight": 1.0
      },
      {
      "role": "role1",
      "weight": 1.1
      }
      ]

       

      and I want to remove the weight for '*'. I send a PUT request to the master with the following payload:

      [
      {
      "role": "role2",
      "weight": 1.1
      },
      {
      "role": "marathon",
      "weight": 3.0
      },
      {
      "role": "chronos",
      "weight": 1.0
      },
      {
      "role": "role1",
      "weight": 1.1
      }
      ]

       

      Then I do a GET on the master

      I still get the weight for the '*' role

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              raravena80 Ricardo Aravena

              Dates

              • Created:
                Updated:

                Issue deployment