Bug #23286
closedmgr: ActivePyModules::list_servers_python() returns mgr with empty hostname
0%
Description
When running a vstart.sh cluster on master at cf52fc5a, list_servers_python() returns:
[
{
"services": [
{
"type": "mgr",
"id": "x"
}
],
"hostname": "",
"ceph_version": ""
},
{
"services": [
{
"type": "mds",
"id": "a"
},
{
"type": "mds",
"id": "b"
},
{
"type": "mds",
"id": "c"
},
{
"type": "mon",
"id": "a"
},
{
"type": "mon",
"id": "b"
},
{
"type": "mon",
"id": "c"
},
{
"type": "osd",
"id": "0"
},
{
"type": "osd",
"id": "1"
},
{
"type": "osd",
"id": "2"
},
{
"type": "rgw",
"id": "rgw"
}
],
"hostname": "ubuntu",
"ceph_version": "ceph version 13.0.1-2832 .. mimic (dev)"
}
]
This breaks the dashboard_v2 Host tab: 
This is ceph mgr dump:
$ ceph mgr dump | jq .
2018-03-09 11:48:27.125 7fe28a849700 -1 WARNING: all dangerous and experimental features are enabled.
2018-03-09 11:48:27.177 7fe28a849700 -1 WARNING: all dangerous and experimental features are enabled.
{
"epoch": 8,
"active_gid": 4137,
"active_name": "x",
"active_addr": "192.168.178.29:6800/9933",
"available": true,
"standbys": [],
"modules": [
"balancer",
"dashboard",
"dashboard_v2",
"restful",
"status"
],
"available_modules": [
{
"name": "balancer",
"can_run": true,
"error_string": ""
},
{
"name": "dashboard",
"can_run": true,
"error_string": ""
},
{
"name": "dashboard_v2",
"can_run": true,
"error_string": ""
},
{
"name": "influx",
"can_run": false,
"error_string": "influxdb python module not found"
},
{
"name": "localpool",
"can_run": true,
"error_string": ""
},
{
"name": "prometheus",
"can_run": true,
"error_string": ""
},
{
"name": "restful",
"can_run": true,
"error_string": ""
},
{
"name": "selftest",
"can_run": true,
"error_string": ""
},
{
"name": "smart",
"can_run": true,
"error_string": ""
},
{
"name": "status",
"can_run": true,
"error_string": ""
},
{
"name": "zabbix",
"can_run": true,
"error_string": ""
}
],
"services": {
"dashboard": "http://ubuntu:41116/",
"dashboard_v2": "http://ubuntu:43116/",
"restful": "https://ubuntu:42116/"
}
}
CL Updated by Chang Liu over 8 years ago
- Assignee set to Chang Liu
- Hello, what's your ceph version? -
Oh, sorry. it's "ceph version 13.0.1-2832 .. mimic (dev)".
JS Updated by John Spray over 8 years ago
- Status changed from New to 12
This bug is a result of how we populate the mgrs into DaemonState from DaemonServer::got_mgr_map without ever reading the mgr daemon metadata from the monitors. We need to do something similar to what is done for mon/osd/mds daemons from the Mgr class (MetadataUpdate etc).
Updated by Anonymous over 8 years ago
I have a potential fix (updating the metadata in DaemonServer::got_mgr_map()) but encountered http://tracker.ceph.com/issues/23330.
JS Updated by John Spray over 8 years ago
- Related to Bug #23330: mon command "mgr metadata $name" has inconsistent argument naming added
NC Updated by Nathan Cutler over 8 years ago
- Backport set to luminous
NC Updated by Nathan Cutler over 8 years ago
Updated by Anonymous about 8 years ago
SW Updated by Sebastian Wagner almost 8 years ago
- Status changed from 12 to Closed
NC Updated by Nathan Cutler over 7 years ago
- Status changed from Closed to Pending Backport
- Pull request ID set to 20875
NC Updated by Nathan Cutler over 7 years ago
- Copied to Backport #39234: luminous: mgr: ActivePyModules::list_servers_python() returns mgr with empty hostname added
SW Updated by Sebastian Wagner over 7 years ago
- Related to Bug #41549: mgr: ActivePyModules::list_servers_python() returns mds with empty hostname added
NC Updated by Nathan Cutler almost 6 years ago
- Status changed from Pending Backport to Resolved
While running with --resolve-parent, the script "backport-create-issue" noticed that all backports of this issue are in status "Resolved" or "Rejected".
UB Updated by Upkeep Bot over 1 year ago
- Merge Commit set to 3f1693db0984ff308301c9ac21644c2cc4465994
- Fixed In set to v13.0.2-1720-g3f1693db09
- Released In set to v13.2.0~227
- Upkeep Timestamp set to 2025-07-29T23:39:18+00:00