Re: How to get ceph-volume to take pre-existing, working auth?

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

 



Guess I was trying to do things in a non-optimal way.
found the answer on reddit, of all places.

>From https://www.reddit.com/r/ceph/comments/kv3z7h/cephadm_osd_deploy_errors/
(edited a bit)
ceph auth get client.bootstrap-osd > /var/lib/ceph/bootstrap-osd/ceph.keyring



----- Original Message -----
From: "Philip Brown" <pbrown@xxxxxxxxxx>
To: "ceph-users" <ceph-users@xxxxxxx>
Sent: Friday, February 19, 2021 3:36:50 PM
Subject: How to get ceph-volume to take pre-existing, working auth?

I'm trying to use ceph-volume to do various things.
It works fine locally, for things like
  ceph-volume lvm zap

But when I want it to do OSD level things, it is unhappy.

To use a trivial example, it wants to do things like

/usr/bin/ceph --cluster ceph --keyring /var/lib/ceph/bootstrap-osd/ceph.keyring osd tree -f json

but then dies saying, 
[errno 13] RADOS permission denied (error connecting to the cluster)


and if I directly run that long command myself, it indeed dies.
(which is not too surprising, since /var/lib/ceph/bootstrap-osd/ceph.keyring does not exist)


However, if I just run from the same command prompt,

/usr/bin/ceph osd tree -f json

it works fine.

How can i get ceph-volume to just use the creds that are already working somewhere?


--
Philip Brown| Sr. Linux System Administrator | Medata, Inc. 
5 Peters Canyon Rd Suite 250 
Irvine CA 92606 
Office 714.918.1310| Fax 714.918.1325 
pbrown@xxxxxxxxxx| www.medata.com
_______________________________________________
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