Project

General

Profile

Actions

Bug #58738

closed

cephadm: if hostname changes to FQDN, the host is marked stray

Added by Adam King about 1 year ago. Updated about 1 year ago.

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

0%

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

Description

cephadm tries to find "stray" hosts and daemons (hosts and daemons that are part of the ceph cluster that cephadm is not managing) by using an internal mgr function "list_servers" that roughly correlates the output of "ceph node ls". If, for whatever reason, a host's hostname changes from a shortname into an FQDN, cephadm will consider the host to be stray as "list_servers" will give the new fqdn name, and cephadm will only know the old shortname. In theory, this can happen the other way as well (FQDN -> shortname) but I haven't seen that pop up anywhere. Either way, it should be possible for cephadm to be smart enough to realize the host in question isn't actually a stray host.

[ceph: root@vm-00 /]# ceph node ls
{
    "mon": {
        "vm-00": [
            "vm-00" 
        ],
        "vm-01": [
            "vm-01" 
        ],
        "vm-02.ceph.com": [
            "vm-02" 
        ]
    },
    "osd": {},
    "mgr": {
        "vm-00": [
            "vm-00.dbjlzm" 
        ]
    }
}
[ceph: root@vm-00 /]# ceph orch host ls
HOST   ADDR             LABELS  STATUS  
vm-00  192.168.122.188  _admin          
vm-01  192.168.122.21                   
vm-02  192.168.122.161                  
3 hosts in cluster
[ceph: root@vm-00 /]# ceph health detail
HEALTH_WARN 1 stray host(s) with 1 daemon(s) not managed by cephadm; OSD count 0 < osd_pool_default_size 3
[WRN] CEPHADM_STRAY_HOST: 1 stray host(s) with 1 daemon(s) not managed by cephadm
    stray host vm-02.ceph.com has 1 stray daemons: ['mon.vm-02']
[WRN] TOO_FEW_OSDS: OSD count 0 < osd_pool_default_size 3

Related issues 2 (0 open2 closed)

Copied to Orchestrator - Backport #58989: quincy: cephadm: if hostname changes to FQDN, the host is marked strayResolvedAdam KingActions
Copied to Orchestrator - Backport #58990: pacific: cephadm: if hostname changes to FQDN, the host is marked strayResolvedAdam KingActions
Actions #1

Updated by Adam King about 1 year ago

  • Pull request ID set to 50133
Actions #2

Updated by Adam King about 1 year ago

  • Status changed from In Progress to Pending Backport
Actions #3

Updated by Backport Bot about 1 year ago

  • Copied to Backport #58989: quincy: cephadm: if hostname changes to FQDN, the host is marked stray added
Actions #4

Updated by Backport Bot about 1 year ago

  • Copied to Backport #58990: pacific: cephadm: if hostname changes to FQDN, the host is marked stray added
Actions #5

Updated by Backport Bot about 1 year ago

  • Tags set to backport_processed
Actions #6

Updated by Adam King about 1 year ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF