Project

General

Profile

Actions

Bug #61876

closed

Error bootstraping first cluster node

Added by Ilya Starchikov 10 months ago. Updated 10 months ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
cephadm (binary)
Target version:
% Done:

0%

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

Description

ceph -v
ceph version 17.2.6 (d7ff0d10654d2280e08f1ab989c7cdf3064446a5) quincy (stable)

python3 --version
Python 3.9.16

Try
cephadm bootstrap --mon-ip 10.79.192.174 --allow-fqdn-hostname --skip-monitoring-stack

....
Adding host ceph1-dm.local.company.com...
Non-zero exit code 22 from /bin/podman run --rm --ipc=host --stop-signal=SIGTERM --net=host --entrypoint /usr/bin/ceph --init -e CONTAINER_IMAGE=quay.io/ceph/ceph:v17 -e NODE_NAME=ceph1-dm.local.drom.ru -e CEPH_USE_RANDOM_NONCE=1 -v /var/log/ceph/3b1a373c-1947-11ee-bd11-3cecef0f2892:/var/log/ceph:z -v /tmp/ceph-tmpninct1en:/etc/ceph/ceph.client.admin.keyring:z -v /tmp/ceph-tmpdw1dth_c:/etc/ceph/ceph.conf:z quay.io/ceph/ceph:v17 orch host add ceph1-dm.local.company.com 10.79.192.174
/usr/bin/ceph: stderr Error EINVAL: Traceback (most recent call last):
/usr/bin/ceph: stderr File "/usr/share/ceph/mgr/mgr_module.py", line 1756, in _handle_command
/usr/bin/ceph: stderr return self.handle_command(inbuf, cmd)
/usr/bin/ceph: stderr File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 171, in handle_command
/usr/bin/ceph: stderr return dispatch[cmd['prefix']].call(self, cmd, inbuf)
/usr/bin/ceph: stderr File "/usr/share/ceph/mgr/mgr_module.py", line 462, in call
/usr/bin/ceph: stderr return self.func(mgr, **kwargs)
/usr/bin/ceph: stderr File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 107, in <lambda>
/usr/bin/ceph: stderr wrapper_copy = lambda *l_args, **l_kwargs: wrapper(*l_args, **l_kwargs) # noqa: E731
/usr/bin/ceph: stderr File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 96, in wrapper
/usr/bin/ceph: stderr return func(*args, **kwargs)
/usr/bin/ceph: stderr File "/usr/share/ceph/mgr/orchestrator/module.py", line 356, in _add_host
/usr/bin/ceph: stderr return self._apply_misc([s], False, Format.plain)
/usr/bin/ceph: stderr File "/usr/share/ceph/mgr/orchestrator/module.py", line 1092, in _apply_misc
/usr/bin/ceph: stderr raise_if_exception(completion)
/usr/bin/ceph: stderr File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 225, in raise_if_exception
/usr/bin/ceph: stderr e = pickle.loads(c.serialized_exception)
/usr/bin/ceph: stderr TypeError: __init__() missing 2 required positional arguments: 'hostname' and 'addr'
/usr/bin/ceph: stderr
ERROR: Failed to add host <ceph1-dm.local.company.com>: Failed command: /bin/podman run --rm --ipc=host --stop-signal=SIGTERM --net=host --entrypoint /usr/bin/ceph --init -e CONTAINER_IMAGE=quay.io/ceph/ceph:v17 -e NODE_NAME=ceph1-dm.local.company.com -e CEPH_USE_RANDOM_NONCE=1 -v /var/log/ceph/3b1a373c-1947-11ee-bd11-3cecef0f2892:/var/log/ceph:z -v /tmp/ceph-tmpninct1en:/etc/ceph/ceph.client.admin.keyring:z -v /tmp/ceph-tmpdw1dth_c:/etc/ceph/ceph.conf:z quay.io/ceph/ceph:v17 orch host add ceph1-dm.local.company.com 10.79.192.174

It failed after this ceph orch host add


Related issues 1 (0 open1 closed)

Is duplicate of Orchestrator - Bug #59254: cephadm: misleading error message when trying to add host missing using a normal user without sudoResolvedRedouane Kachach Elhichou

Actions
Actions #1

Updated by Redouane Kachach Elhichou 10 months ago

I find this error similar to the BUG:

https://tracker.ceph.com/issues/61537

Are you using a normal user instead of root? Does this user have passwordless sudo access?

Actions #2

Updated by Redouane Kachach Elhichou 10 months ago

  • Is duplicate of Backport #61537: reef: cephadm: misleading error message when trying to add host missing using a normal user without sudo added
Actions #3

Updated by Redouane Kachach Elhichou 10 months ago

  • Is duplicate of deleted (Backport #61537: reef: cephadm: misleading error message when trying to add host missing using a normal user without sudo)
Actions #4

Updated by Redouane Kachach Elhichou 10 months ago

  • Is duplicate of Bug #59254: cephadm: misleading error message when trying to add host missing using a normal user without sudo added
Actions #5

Updated by Redouane Kachach Elhichou 10 months ago

  • Status changed from New to Duplicate
Actions #6

Updated by Redouane Kachach Elhichou 10 months ago

  • Is duplicate of deleted (Bug #59254: cephadm: misleading error message when trying to add host missing using a normal user without sudo)
Actions #7

Updated by Redouane Kachach Elhichou 10 months ago

  • Related to Bug #59254: cephadm: misleading error message when trying to add host missing using a normal user without sudo added
Actions #8

Updated by Redouane Kachach Elhichou 10 months ago

  • Related to deleted (Bug #59254: cephadm: misleading error message when trying to add host missing using a normal user without sudo)
Actions #9

Updated by Redouane Kachach Elhichou 10 months ago

  • Is duplicate of Bug #59254: cephadm: misleading error message when trying to add host missing using a normal user without sudo added
Actions

Also available in: Atom PDF