Project

General

Profile

Bug #48510

CEPHADM_REFRESH_FAILED: detail item 0 not a [unicode] string

Added by Sebastian Wagner over 3 years ago. Updated about 3 years ago.

Status:
Can't reproduce
Priority:
Normal
Assignee:
-
Category:
cephadm
Target version:
-
% Done:

0%

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

Description

log_channel(audit) log [DBG] : cmd=[{"prefix": "orch set backend", "module_name": "cephadm", "target": ["mon-mgr", ""]}]: dispatch
log_channel(audit) log [DBG] : cmd=[{"prefix": "orch status", "target": ["mon-mgr", ""], "format": "json"}]: dispatch
log_channel(audit) log [DBG] :cmd=[{"prefix": "orch host add", "hostname": "master", "target": ["mon-mgr", ""]}]: dispatch
log_channel(cephadm) log [INF] : Added host master
log_channel(audit) log [DBG] : cmd=[{"prefix": "cephadm set-priv-key", "target": ["mon-mgr", ""]}]: dispatch
log_channel(audit) log [DBG] : cmd=[{"prefix": "cephadm set-pub-key", "target": ["mon-mgr", ""]}]: dispatch
log_channel(audit) log [DBG] : cmd=[{"prefix": "cephadm set-user", "user": "cephadm", "target": ["mon-mgr", ""]}]: dispatch
ceph_set_health_checks check CEPHADM_REFRESH_FAILED detail item 0 not a [unicode] string
ceph_set_health_checks check CEPHADM_REFRESH_FAILED detail item 0 not a [unicode] string

Looks like we have a problem displaying the error message to the user, if establishing ssh to the first host fails.

History

#3 Updated by Sebastian Wagner about 3 years ago

works for me. if I do that locally, I'm getting

{
 'CEPHADM_REFRESH_FAILED': {'count': 1,
                            'detail': ['host test `cephadm ls` failed: Failed '
                                       'to connect to test (test).\n'
                                       'Please make sure that the host is '
                                       'reachable and accepts connections '
                                       'using the cephadm SSH key\n'
                                       '\n'
                                       'To add the cephadm SSH key to the '
                                       'host:\n'
                                       '> ceph cephadm get-pub-key > '
                                       '~/ceph.pub\n'
                                       '> ssh-copy-id -f -i ~/ceph.pub '
                                       'root@test\n'
                                       '\n'
                                       'To check that the host is reachable:\n'
                                       '> ceph cephadm get-ssh-config > '
                                       'ssh_config\n'
                                       '> ceph config-key get '
                                       'mgr/cephadm/ssh_identity_key > '
                                       '~/cephadm_private_key\n'
                                       '> ssh -F ssh_config -i '
                                       '~/cephadm_private_key root@test'],
                            'severity': 'warning',
                            'summary': 'failed to probe daemons or devices'},
}

where detail is a valid List[str].

#4 Updated by Sebastian Wagner about 3 years ago

  • Priority changed from High to Normal

#5 Updated by Sebastian Wagner about 3 years ago

  • Status changed from New to Can't reproduce

Also available in: Atom PDF