Project

General

Profile

Bug #23286

mgr: ActivePyModules::list_servers_python() returns mgr with empty hostname

Added by Sebastian Wagner over 1 year ago. Updated 8 months ago.

Status:
Pending Backport
Priority:
Normal
Assignee:
Category:
python interface
Target version:
-
% Done:

0%

Source:
Development
Tags:
Backport:
luminous
Regression:
Yes
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

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/" 
  }
}


Related issues

Related to mgr - Bug #23330: mon command "mgr metadata $name" has inconsistent argument naming Pending Backport 03/13/2018
Related to mgr - Bug #41549: mgr: ActivePyModules::list_servers_python() returns mds with empty hostname New 08/28/2019
Copied to mgr - Backport #39234: luminous: mgr: ActivePyModules::list_servers_python() returns mgr with empty hostname Need More Info

History

#1 Updated by Chang Liu over 1 year ago

  • Assignee set to Chang Liu

- Hello, what's your ceph version? -

Oh, sorry. it's "ceph version 13.0.1-2832 .. mimic (dev)".

#2 Updated by John Spray over 1 year 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).

#3 Updated by Jan Fajerski over 1 year ago

I have a potential fix (updating the metadata in DaemonServer::got_mgr_map()) but encountered http://tracker.ceph.com/issues/23330.

#4 Updated by John Spray over 1 year ago

  • Related to Bug #23330: mon command "mgr metadata $name" has inconsistent argument naming added

#5 Updated by Nathan Cutler over 1 year ago

  • Backport set to luminous

#6 Updated by Nathan Cutler over 1 year ago

According to #23330-3 the luminous backport should be done as part of #23722

#8 Updated by Sebastian Wagner 9 months ago

  • Status changed from 12 to Closed

#9 Updated by Nathan Cutler 8 months ago

  • Status changed from Closed to Pending Backport
  • Pull request ID set to 20875

#10 Updated by Nathan Cutler 8 months ago

  • Copied to Backport #39234: luminous: mgr: ActivePyModules::list_servers_python() returns mgr with empty hostname added

#11 Updated by Sebastian Wagner 3 months ago

  • Related to Bug #41549: mgr: ActivePyModules::list_servers_python() returns mds with empty hostname added

Also available in: Atom PDF