[
https://issues.apache.org/jira/browse/MESOS-4389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15101529#comment-15101529
]
Guangya Liu commented on MESOS-4389:
------------------------------------
As {{master has not set any roles in command line}}, so you are using
{{implicit role}}. What you complained here is actually design behaviour.
> 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)