Project

General

Profile

Actions

Bug #20887

closed

Services reported with blank hostname by mgr

Added by John Spray over 6 years ago. Updated about 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
luminous
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Symptom as per screenshot -- we see some services reported as running on a server called ""

Mgr::init does a load_all_metadata so that it should already know the hostnames for services before we try and do anything else, so this shouldn't be happening. Perhaps a race between server->init and load_all_metadata?


Files


Related issues 4 (1 open3 closed)

Related to mgr - Bug #21687: mgr: mark_down of osd without metadata is brokenResolvedChang Liu10/05/2017

Actions
Related to mgr - Bug #41549: mgr: ActivePyModules::list_servers_python() returns mds with empty hostnameNewErnesto Puerta

Actions
Has duplicate mgr - Bug #21060: No hostanme in OSD metadataDuplicate08/22/2017

Actions
Copied to mgr - Backport #21479: luminous: Services reported with blank hostname by mgrResolvedNathan CutlerActions
Actions #1

Updated by Chang Liu over 6 years ago

all services without `hostname` 's version are 12.1.2. it's a useful clue.

Actions #2

Updated by Chang Liu over 6 years ago

reproduced via vstart.sh , but `ceph osd metadata` shows that there are hostname info.

./bin/ceph osd metadata
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
2017-08-10 19:54:26.821377 7f68c7544700 -1 WARNING: all dangerous and experimental features are enabled.
2017-08-10 19:54:26.841056 7f68c7544700 -1 WARNING: all dangerous and experimental features are enabled.
[
    {
        "id": 0,
        "arch": "x86_64",
        "back_addr": "127.0.0.1:6802/7260",
        "backend_filestore_dev_node": "unknown",
        "backend_filestore_partition_path": "unknown",
        "ceph_version": "ceph version 12.1.2-591-g20a03bb (20a03bb8af4ca4ffc8f6c738ceb5ac2ebdfaa0ef) luminous (rc)",
        "cpu": "Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz",
        "default_device_class": "hdd",
        "distro": "ubuntu",
        "distro_description": "Ubuntu 16.04.1 LTS",
        "distro_version": "16.04",
        "filestore_backend": "generic",
        "filestore_f_type": "0xef53",
        "front_addr": "127.0.0.1:6801/7260",
        "hb_back_addr": "127.0.0.1:6803/7260",
        "hb_front_addr": "127.0.0.1:6804/7260",
        "hostname": "liuchang-VirtualBox",
        "journal_rotational": "1",
        "kernel_description": "#110-Ubuntu SMP Tue Jul 18 12:55:35 UTC 2017",
        "kernel_version": "4.4.0-87-generic",
        "mem_swap_kb": "10482684",
        "mem_total_kb": "8174972",
        "os": "Linux",
        "osd_data": "/home/liuchang/WorkSpace/ceph/build/dev/osd0",
        "osd_journal": "/home/liuchang/WorkSpace/ceph/build/dev/osd0/journal",
        "osd_objectstore": "filestore",
        "rotational": "1" 
    },  
Actions #3

Updated by Chang Liu over 6 years ago

hi, John, it seems that rejecting MMgrReport in https://github.com/ceph/ceph/blob/master/src/mgr/DaemonServer.cc#L392-L399 could solve this problem. is it?

Actions #4

Updated by John Spray over 6 years ago

  • Has duplicate Bug #21060: No hostanme in OSD metadata added
Actions #5

Updated by Kefu Chai over 6 years ago

  • Status changed from New to Resolved
Actions #6

Updated by Kefu Chai over 6 years ago

  • Status changed from Resolved to Pending Backport
  • Backport set to luminous
Actions #7

Updated by Nathan Cutler over 6 years ago

  • Copied to Backport #21479: luminous: Services reported with blank hostname by mgr added
Actions #8

Updated by Nathan Cutler about 6 years ago

  • Related to Bug #21687: mgr: mark_down of osd without metadata is broken added
Actions #9

Updated by John Spray about 6 years ago

  • Status changed from Pending Backport to Resolved
Actions #10

Updated by Sebastian Wagner over 4 years ago

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

Also available in: Atom PDF