According to the help for get-or-create, it looks like it should take an input file. I've only ever used ceph auth import in this regard. I would file a bug report on get-or-create.
On Wed, May 6, 2015 at 8:36 AM, Sergio A. de Carvalho Jr. <scarvalhojr@xxxxxxxxx> wrote:
Hi,While creating a Ceph user with a pre-generated key stored in a keyring file, "ceph auth get-or-create" doesn't seem to take the keyring file into account:# cat /tmp/user1.keyring[client.user1]key = AQAuJEpVgLQmJxAAQmFS9a3R7w6EHAOAIU2uVw==# ceph auth get-or-create -i /tmp/user1.keyring client.user1 mon 'allow r'[client.user1]key = AQDzJUpVWB1TABAABv/J6pP8jqzg81+vr0VadQ==# ceph auth get client.user1exported keyring for client.user1[client.user1]key = AQDzJUpVWB1TABAABv/J6pP8jqzg81+vr0VadQ==caps mon = "allow r"I noticed that "ceph auth add" does take the keyring input:# ceph auth del client.user1updated# ceph auth add -i /tmp/user1.keyring client.user1 mon 'allow r'added key for client.user1# ceph auth get client.user1exported keyring for client.user1[client.user1]key = AQAuJEpVgLQmJxAAQmFS9a3R7w6EHAOAIU2uVw==caps mon = "allow r"Is this a bug in "get-or-create" or am I missing something?# ceph --versionceph version 0.80.5 (38b73c67d375a2552d8ed67843c8a65c2c0feba6)CentOS release 6.5 (Final)Thanks,Sergio
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com