Re: ceph auth get-or-create not taking key from input file?

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

 



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.user1
exported 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.user1
updated

# ceph auth add -i /tmp/user1.keyring client.user1 mon 'allow r'
added key for client.user1

# ceph auth get client.user1
exported 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 --version
ceph 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

[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