Project

General

Profile

Actions

Bug #59254

closed

cephadm: misleading error message when trying to add host missing using a normal user without sudo

Added by Redouane Kachach Elhichou about 1 year ago. Updated 3 months ago.

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

0%

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

Description

[ceph: root@ceph-node-0 /]# ceph orch host add ceph-node-2 192.168.100.102 --labels _admin
Error EINVAL: Traceback (most recent call last):
File "/usr/share/ceph/mgr/mgr_module.py", line 1761, in _handle_command
return self.handle_command(inbuf, cmd)
File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 171, in handle_command
return dispatch[cmd['prefix']].call(self, cmd, inbuf)
File "/usr/share/ceph/mgr/mgr_module.py", line 462, in call
return self.func(mgr, **kwargs)
File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 107, in <lambda>
wrapper_copy = lambda *l_args, **l_kwargs: wrapper(*l_args, **l_kwargs) # noqa: E731
File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 96, in wrapper
return func(*args, **kwargs)
File "/usr/share/ceph/mgr/orchestrator/module.py", line 453, in _add_host
return self._apply_misc([s], False, Format.plain)
File "/usr/share/ceph/mgr/orchestrator/module.py", line 1248, in _apply_misc
raise_if_exception(completion)
File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 225, in raise_if_exception
e = pickle.loads(c.serialized_exception)
TypeError: init() missing 2 required positional arguments: 'hostname' and 'addr'


Related issues 5 (0 open5 closed)

Related to Orchestrator - Bug #58918: Addition of hosts to the cluster throws an exceptionDuplicateRedouane Kachach Elhichou

Actions
Related to Orchestrator - Bug #59243: cephadm: Inappropriate error msg when ssh keys are not added to the hostDuplicate

Actions
Has duplicate Orchestrator - Bug #61876: Error bootstraping first cluster node Duplicate

Actions
Copied to Orchestrator - Backport #61537: reef: cephadm: misleading error message when trying to add host missing using a normal user without sudoResolvedAdam KingActions
Copied to Orchestrator - Backport #61538: quincy: cephadm: misleading error message when trying to add host missing using a normal user without sudoResolvedRedouane Kachach ElhichouActions
Actions

Also available in: Atom PDF