Can't add osd with cephadm as non-root user
Hi all, I tried to use Cephadm as non-root, it works, until I tried to install a new osd. I get this Error Message: Error EINVAL: Traceback (most recent call last): File "/usr/share/ceph/mgr/mgr_module.py", line 1167, in _handle_command return self.handle_command(inbuf, cmd) File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 113, in handle_command return dispatch[cmd['prefix']].call(self, cmd, inbuf) File "/usr/share/ceph/mgr/mgr_module.py", line 311, in call return self.func(mgr, **kwargs) File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 75, in <lambda> wrapper_copy = lambda *l_args, **l_kwargs: wrapper(*l_args, **l_kwargs) File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 66, in wrapper return func(*args, **kwargs) File "/usr/share/ceph/mgr/orchestrator/module.py", line 715, in _daemon_add_osd raise_if_exception(completion) File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 633, in raise_if_exception raise e RuntimeError: cephadm exited with an error code: 1, stderr:Failed to execute command: sudo /usr/bin/cephadm --image docker.io/ceph/ceph:v15.2.4 ceph-volume --fsid 1234abcd --config-json - -- lvm prepare --bluestore --data /dev/sdb --no-systemd Has someone a hint how I can solve this problem? Thanks, Michael
step1: parted -s /dev/sdb mklabel gpt mkpart primary xfs 0% 100% step2: reboot step3: mkfs.xfs /dev/sdb -f working for me
it doesn't change anything. after running "ceph orch daemon add osd node:/dev/sdb" I get the same error massage. is there some kind of logging in the cephadm-package?
participants (2)
-
David Thuong
-
Michael Preuss