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

(Updated 十月 31, 2015, 6:18 a.m.)


Review request for mesos and Vinod Kone.


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


Repository: mesos


Description
-------

Add /master/frameworks to master endpoint


Diffs (updated)
-----

  src/master/http.cpp 093f79384916dc08b32b70d3614e0ff314825c42 
  src/master/master.hpp b76d30197b3decda0a742e03ce01a17a64b633ac 
  src/master/master.cpp 9f4586e668a2141f4937497d42853fbdea7751a5 
  src/tests/master_tests.cpp ee2473997ccbd1c50d0cbf65d1259ea2dfe82971 

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


Testing
-------

Unit Test:
[==========] Running 2 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 2 tests from MasterTest
[ RUN      ] MasterTest.FrameworksEndpointWithoutFrameworks
[       OK ] MasterTest.FrameworksEndpointWithoutFrameworks (804 ms)
[ RUN      ] MasterTest.FrameworksEndpointOneFramework
[       OK ] MasterTest.FrameworksEndpointOneFramework (918 ms)
[----------] 2 tests from MasterTest (1722 ms total)
 
[----------] Global test environment tear-down
[==========] 2 tests from 1 test case ran. (1742 ms total)
[  PASSED  ] 2 tests.


gyliu@devstack007:~$ curl "http://9.111.242.187:5050/master/frameworks"; 
2>/dev/null| jq .
{
  "unregistered_frameworks": [],
  "frameworks": [
    {
      "webui_url": "",
      "user": "root",
      "used_resources": {
        "mem": 256,
        "disk": 0,
        "cpus": 1
      },
      "unregistered_time": 0,
      "id": "820e082f-be7c-4b59-abc5-9c02f9e8d66d-0000",
      "hostname": "devstack007.cn.ibm.com",
      "failover_timeout": 0,
      "executors": [],
      "completed_tasks": [],
      "checkpoint": false,
      "capabilities": [],
      "active": true,
      "name": "",
      "offered_resources": {
        "mem": 0,
        "disk": 0,
        "cpus": 0
      },
      "offers": [],
      "pid": 
"scheduler-43ee3a42-9302-4815-8a07-500e42367f41@9.111.242.187:60454",
      "registered_time": 1445236263.95058,
      "resources": {
        "mem": 256,
        "disk": 0,
        "cpus": 1
      },
      "role": "*",
      "tasks": [
        {
          "statuses": [
            {
              "timestamp": 1445236266.63443,
              "state": "TASK_RUNNING",
              "container_status": {
                "network_infos": [
                  {
                    "ip_address": "9.111.242.187"
                  }
                ]
              }
            }
          ],
          "state": "TASK_RUNNING",
          "slave_id": "3e0df733-08b3-4883-b3fa-92bdc0c05b2f-S0",
          "resources": {
            "mem": 256,
            "disk": 0,
            "cpus": 1
          },
          "name": "cluster-test",
          "id": "cluster-test",
          "framework_id": "820e082f-be7c-4b59-abc5-9c02f9e8d66d-0000",
          "executor_id": ""
        }
      ]
    }
  ],
  "completed_frameworks": []
}


Thanks,

Guangya Liu

Reply via email to