[
https://issues.apache.org/jira/browse/MESOS-4389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15101410#comment-15101410
]
Guangya Liu commented on MESOS-4389:
------------------------------------
If you are using implicit role, then it is design behavior, please refer to
https://issues.apache.org/jira/browse/MESOS-4000
If not using implicit role and set {{roles}} when start up master, the all
roles should be listed from the endpoint.
> Master "roles" endpoint only shows active role
> ----------------------------------------------
>
> Key: MESOS-4389
> URL: https://issues.apache.org/jira/browse/MESOS-4389
> Project: Mesos
> Issue Type: Improvement
> Components: HTTP API, master
> Reporter: Fan Du
>
> Register two slaves to master with role "busybox" and "ubuntu" respectively,
> then running marthon with role "busybox", after this check master "roles"
> endpoints, it can only get default and active role, could this be improved to
> show all available roles for easily checking?
> {code}
> {
> "roles": [
> {
> "frameworks": [],
> "name": "*",
> "resources": {
> "cpus": 0,
> "disk": 0,
> "mem": 0
> },
> "weight": 1.0
> },
> {
> "frameworks": [
> "2caebb14-161f-4941-b8ab-8990cef01ac0-0000"
> ],
> "name": "busybox",
> "resources": {
> "cpus": 0,
> "disk": 0,
> "mem": 0
> },
> "weight": 1.0
> }
> ]
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)