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
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to