Re: Running cephadm as a nonroot user

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ok, I've been digging around a bit with the code and made progress, but haven't got it all working yet. Here's what I've done:

# yum install cephadm
# ln -s ../sbin/cephadm /usr/bin/cephadm  #Needed to reference the correct path
# cephadm bootstrap --output-config /etc/ceph/ceph.conf --output-keyring /etc/ceph/ceph.client.admin.keyring --skip-ssh --mon-ip 10.8.13.121
# ceph mgr module enable cephadm
# ceph config set mgr mgr/cephadm/mode cephadm-package
# ceph cephadm generate-key
# ceph cephadm get-pub-key > ~cephadm/.ssh/authorized_keys
# echo "cephadm ALL=NOPASSWD: /usr/bin/cephadm --image * check-host *" >> /etc/sudoers.d/cephadm  #Needed to run check-host as part of joining other nodes

At this point it seems to be configured to use the cephadm user. Distribute the public key to other hosts with cephadm package installed.

However I am now getting errors when trying to add a host with orchestrator or when doing a host-check:
# ceph orchestrator host add k8shost3.acedatacenter.com 10.8.13.123
Error EINVAL: Traceback (most recent call last):
  File "/usr/share/ceph/mgr/mgr_module.py", line 1069, in _handle_command
    return CLICommand.COMMANDS[cmd['prefix']].call(self, cmd, inbuf)
  File "/usr/share/ceph/mgr/mgr_module.py", line 309, in call
    return self.func(mgr, **kwargs)
  File "/usr/share/ceph/mgr/orchestrator.py", line 142, in wrapper
    return func(*args, **kwargs)
  File "/usr/share/ceph/mgr/orchestrator_cli/module.py", line 168, in _add_host
    orchestrator.raise_if_exception(completion)
  File "/usr/share/ceph/mgr/orchestrator.py", line 639, in raise_if_exception
    raise e
orchestrator.OrchestratorError: New host k8shost3.acedatacenter.com (10.8.13.123) failed check: ['usage: cephadm [-h] [--image IMAGE] [--docker] [--data-dir DATA_DIR]', '               [--log-dir LOG_DIR] [--logrotate-dir LOGROTATE_DIR]', '               [--unit-dir UNIT_DIR] [--verbose] [--timeout TIMEOUT]', '               {version,pull,ls,adopt,rm-daemon,rm-cluster,run,shell,enter,ceph-volume,unit,bootstrap,deploy,check-host}', '               ...', 'cephadm: error: unrecognized arguments: --expect-hostname k8shost3.acedatacenter.com']

Again, I'm not sure I've done everything that I need to get things set up. Any thoughts?
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux