Ceph: how to add a namespace to a pool

zeuxprox

Renowned Member
Dec 10, 2014
92
5
73
Hi,

I would like to add a namespace to a pool, but I wasn't able to find a guide and/or a command to do that. Could someone help me, please?
I'm using a fresh installation of Proxmox 5.1.

Thank you.
 
I think you mean: how to add a permission role name.
Click on Datacenter->Permissions tab.
Add your users and groups in the obvious way, then to add a role name to a user you need to click Permissions tab and then add button.

Or maybe you mean ceph pools?
 
Hi,

I mean namespace within a pool of ceph as described in this doc
http://docs.ceph.com/docs/master/rados/operations/user-management/

"Namespace
Objects within a pool can be associated to a namespace–a logical group of objects within the pool. A user’s access to a pool can be associated with a namespace such that reads and writes by the user take place only within the namespace. Objects written to a namespace within the pool can only be accessed by users who have access to the namespace."

"Modify User Capabilities
The ceph auth caps command allows you to specify a user and change the user’s capabilities. Setting new capabilities will overwrite current capabilities. To view current capabilities run ceph auth get USERTYPE.USERID. To add capabilities, you should also specify the existing capabilities when using the form:

ceph auth caps USERTYPE.USERID {daemon} 'allow [r|w|x|*|...] [pool={pool-name}] [namespace={namespace-name}]
[{daemon} 'allow [r|w|x|*|...] [pool={pool-name}] [namespace={namespace-name}]']' " .

The question is: how can I add/configure a name space within a pool?

Thank you very much.
 
I agree, proxmox disks are visible in "rbd -p poolname ls" and "rbd -p poolname info ID" . There's no namespace support in there yet.
 
The namespace is on rados level, so I am not quite sure if it would show on the rbd info.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!