-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/39421/
-----------------------------------------------------------

Review request for mesos and Vinod Kone.


Bugs: MESOS-3735
    https://issues.apache.org/jira/browse/MESOS-3735


Repository: mesos


Description
-------

Add agent version to /master/slaves endpoint


Diffs
-----

  src/master/http.cpp 093f79384916dc08b32b70d3614e0ff314825c42 

Diff: https://reviews.apache.org/r/39421/diff/


Testing
-------

root@devstack007:~/src/mesos/bug-fix/mesos/build# curl 
"http://9.111.242.187:5050/master/slaves"; 2>/dev/null| jq .
{
  "slaves": [
    {
      "version": "0.26.0", <<<<<<<<<<<< Here
      "used_resources": {
        "mem": 0,
        "disk": 0,
        "cpus": 0
      },
      "unreserved_resources": {
        "ports": "[31000-32000]",
        "mem": 2808,
        "disk": 1399183,
        "cpus": 4
      },
      "resources": {
        "ports": "[31000-32000]",
        "mem": 2808,
        "disk": 1399183,
        "cpus": 4
      },
      "reserved_resources": {},
      "active": true,
      "attributes": {},
      "hostname": "devstack007.cn.ibm.com",
      "id": "3e0df733-08b3-4883-b3fa-92bdc0c05b2f-S0",
      "offered_resources": {
        "mem": 0,
        "disk": 0,
        "cpus": 0
      },
      "pid": "slave(1)@9.111.242.187:5051",
      "registered_time": 1445174743.70792,
      "reregistered_time": 1445174743.7085
    }
  ]
}


Thanks,

Guangya Liu

Reply via email to