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

Add an option to delete a weight for a specific role

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.3.0, 1.5.0
    • None
    • HTTP API
    • 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

              Unassigned Unassigned
              raravena80 Ricardo Aravena
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: