[
https://issues.apache.org/jira/browse/MESOS-4389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15101514#comment-15101514
]
Fan Du commented on MESOS-4389:
-------------------------------
Thanks for notice of impcicit role, I will give it a try.
The two slaves is configured with default role(busybox, ubuntu) respectively,
master has not set any {{roles}} in command line. I realized when doing so, it
will become role's on the whitelist,
which means it will show up when querying the roles 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)