Project

General

Profile

Bug #20887

Services reported with blank hostname by mgr

Added by John Spray over 1 year ago. Updated 12 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
08/02/2017
Due date:
% Done:

0%

Source:
Tags:
Backport:
luminous
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

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?

Screenshot from 2017-08-02 19-19-12.png View (14.5 KB) John Spray, 08/02/2017 06:20 PM


Related issues

Related to mgr - Bug #21687: mgr: mark_down of osd without metadata is broken Resolved 10/05/2017
Duplicated by mgr - Bug #21060: No hostanme in OSD metadata Duplicate 08/22/2017
Copied to mgr - Backport #21479: luminous: Services reported with blank hostname by mgr Resolved

History

#1 Updated by Chang Liu over 1 year ago

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

#2 Updated by Chang Liu over 1 year 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" 
    },  

#3 Updated by Chang Liu over 1 year 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?

#4 Updated by John Spray over 1 year ago

  • Duplicated by Bug #21060: No hostanme in OSD metadata added

#5 Updated by Kefu Chai over 1 year ago

  • Status changed from New to Resolved

#6 Updated by Kefu Chai over 1 year ago

  • Status changed from Resolved to Pending Backport
  • Backport set to luminous

#7 Updated by Nathan Cutler over 1 year ago

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

#8 Updated by Nathan Cutler 12 months ago

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

#9 Updated by John Spray 12 months ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF