On Wed, Dec 11, 2019 at 12:04 PM Rodrigo Severo - Fábrica <rodrigo@fabricadeideias.com> wrote:
Hi,


Trying to create a new OSD following the instructions available at
https://docs.ceph.com/docs/master/rados/operations/add-or-rm-osds/

On step 3 I'm instructed to run "ceph-osd -i {osd-num} --mkfs
--mkkey". Unfortunately it doesn't work:

# ceph-osd -i 3 --mkfs --mkkey
2019-12-11 16:59:58.257 7fac4597fc00 -1 auth: unable to find a keyring
on /var/lib/ceph/osd/ceph-3/keyring: (2) No such file or directory
2019-12-11 16:59:58.257 7fac4597fc00 -1 AuthRegistry(0x55ad976ea140)
no keyring found at /var/lib/ceph/osd/ceph-3/keyring, disabling cephx
2019-12-11 16:59:58.261 7fac4597fc00 -1 auth: unable to find a keyring
on /var/lib/ceph/osd/ceph-3/keyring: (2) No such file or directory
2019-12-11 16:59:58.261 7fac4597fc00 -1 AuthRegistry(0x7fffac4075e8)
no keyring found at /var/lib/ceph/osd/ceph-3/keyring, disabling cephx
failed to fetch mon config (--no-mon-config to skip)

This is the important bit. Since you’re running the command without a way to access the Ceph monitors, it can’t use the cluster default configuration. You can pass the given option to not worry about that, or you can run the command with a user key ring that’s allowed to read the monitor configs. (You’ll need that key access next to add the OSD’s key to the cluster, anyway!)
-Greg




Shouldn't it create the keyring? Why is it complaining about not being
able to find a keyring?


Regards,

Rodrigo
_______________________________________________
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-leave@ceph.io