Ricardo Aravena created MESOS-8806:
--------------------------------------
Summary: Add an option to delete a weight for a specific role
Key: MESOS-8806
URL: https://issues.apache.org/jira/browse/MESOS-8806
Project: Mesos
Issue Type: Task
Components: HTTP API
Affects Versions: 1.5.0, 1.3.0
Reporter: Ricardo Aravena
Apparently, there's no option to remove a weight for a specific role.
I have something like this:
{code:java}
[
{
"role": "role2",
"weight": 1.1
},
{
"role": "marathon",
"weight": 3.0
},
{
"role": "chronos",
"weight": 1.0
},
{
"role": "*",
"weight": 1.0
},
{
"role": "role1",
"weight": 1.1
}
]{code}
and I want to remove the weight for '*'. I send a PUT request to the master
with the following payload:
{code:java}
[
{
"role": "role2",
"weight": 1.1
},
{
"role": "marathon",
"weight": 3.0
},
{
"role": "chronos",
"weight": 1.0
},
{
"role": "role1",
"weight": 1.1
}
]{code}
Then I do a GET on the master
I still get the weight for the '*' role
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)