Project

General

Profile

Actions

Documentation #11750

closed

Can't create image with format 2 with non-admin user

Added by Paul Emmerich almost 9 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

Hi,

we are trying to create an image in a pool as a non-admin user with --image-format 2:

$ rbd -p POOL --keyring ceph.client.XXX.keyring --id XXX create --image-format 2 --size 32 test-disk1
2015-05-24 14:04:14.057451 7f4286989840 -1 librbd: error setting image id: (1) Operation not permitted
rbd: create error: (1) Operation not permitted

Using --image-format 1 works as expected.
Using the admin user/key works with --image-format 2

The user's caps are:

client.XXX
    key: XXXXXXXXXXXXXXXXXXXXXXXX
    caps: [mon] allow r
    caps: [osd] allow rw pool=POOL

All other operations with the user, including creating an image with format 1, are working.

Version:

ceph version 0.94.1 (e4bfad3a3c51054df7e537a724c8d0bf9be972ff)

Thanks for looking into this!

Paul

Actions

Also available in: Atom PDF