Bug 1916138
| Summary: | [RFE] Add support of "namespace" parameter for ocf:ceph:rbd | ||
|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat Ceph Storage | Reporter: | Josef Zimek <pzimek> |
| Component: | RBD | Assignee: | Ilya Dryomov <idryomov> |
| Status: | CLOSED ERRATA | QA Contact: | Harish Munjulur <hmunjulu> |
| Severity: | low | Docs Contact: | Ranjini M N <rmandyam> |
| Priority: | low | ||
| Version: | 5.0 | CC: | ceph-eng-bugs, gsitlani, hmunjulu, idryomov, kdreyer, pdhange, rmandyam |
| Target Milestone: | --- | Keywords: | FutureFeature |
| Target Release: | 5.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | ceph-16.1.0-486.el8cp | Doc Type: | Enhancement |
| Doc Text: |
.ocf:ceph:rbd cluster resource agent supports namespaces
Previously, it was not possible to use ocf:ceph:rbd cluster resource agent for images that exist within a namespace.
With this release, the new `pool_namespace` resource agent parameter can be used to handle images within the namespace.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-08-30 08:27:52 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1939231 | ||
| Bug Blocks: | 1959686 | ||
|
Description
Josef Zimek
2021-01-14 10:07:55 UTC
Resetting to RHCS product / RBD component as this OCF resource agent is distributed under RHCS via the "ceph-resource-agents" package. Verified the RFE. Steps followed are as below:
[ceph: root@magna021 ~]# ceph osd pool application enable rbd rbd
enabled application 'rbd' on pool 'rbd'
[ceph: root@magna021 ~]# rbd pool init -p rbd
[ceph: root@magna021 ~]# rbd namespace ls
[ceph: root@magna021 ~]# rbd namespace create --namespace testnamespace
[ceph: root@magna021 ~]# rbd namespace create --namespace othernamespace
[ceph: root@magna021 ~]# rbd namespace ls --format=json
[{"name":"othernamespace"},{"name":"testnamespace"}]
[ceph: root@magna021 ~]# ceph auth get-or-create client.rbduser mon 'profile rbd' osd 'profile rbd pool=rbd namespace=testnamespace' -o /etc/ceph/client.rbduser.keyring
[ceph: root@magna021 ~]# ceph auth get-or-create client.otheruser mon 'profile rbd' osd 'profile rbd pool=rbd namespace=othernamespace' -o /etc/ceph/client.otheruser.keyring
[ceph: root@magna021 ~]# ceph auth get client.rbduser
exported keyring for client.rbduser
[client.rbduser]
key = AQBGEU1gGcVGHxAAY/uKb+KieMfaar1xXxe2/g==
caps mon = "profile rbd"
caps osd = "profile rbd pool=rbd namespace=testnamespace"
[ceph: root@magna021 ~]# ceph auth get client.otheruser
exported keyring for client.otheruser
[client.otheruser]
key = AQBPEU1gg40yHxAAeRtTr++xahZJiCgS4PgIsA==
caps mon = "profile rbd"
caps osd = "profile rbd pool=rbd namespace=othernamespace"
[ceph: root@magna021 ~]# rbd create --namespace testnamespace rbdimg1 --size 1G
[ceph: root@magna021 ~]# rbd create --namespace othernamespace rbdimg2 --size 1G
[ceph: root@magna021 ~]# rbd ls --long
NAME SIZE PARENT FMT PROT LOCK
data-disk1 200 GiB 2
fio_test 2 GiB 2
rbd_pool 1 GiB 2
[ceph: root@magna021 ~]# rbd --namespace testnamespace ls --long
NAME SIZE PARENT FMT PROT LOCK
rbdimg1 1 GiB 2
[ceph: root@magna021 ~]# rbd --namespace othernamespace ls --long
NAME SIZE PARENT FMT PROT LOCK
rbdimg2 1 GiB 2
[ceph: root@magna021 ~]# rbd map --namespace testnamespace rbdimg1 -n client.rbduser --keyring=/etc/ceph/client.rbduser.keyring
/dev/rbd1
[ceph: root@magna021 ~]# rbd map --namespace othernamespace rbdimg2 -n client.otheruser --keyring=/etc/ceph/client.otheruser.keyring
/dev/rbd2
[ceph: root@magna021 ~]# rbd showmapped
id pool namespace image snap device
0 testbench image01 - /dev/rbd0
1 rbd testnamespace rbdimg1 - /dev/rbd1
2 rbd othernamespace rbdimg2 - /dev/rbd2
package missing have raised BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1939231 Verified working as expected: change in the below command "namespace" should be "pool_namespace" # pcs resource create rbd_map_gsitlani ocf:ceph:rbd user=“admin” pool=“rbd” name="test-rbd" cephconf=“/etc/ceph/ceph.conf” pool_namespace="node1" op monitor interval=“10s” timeout=“20s” Thanks gsitlani++ for the help with steps. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Red Hat Ceph Storage 5.0 bug fix and enhancement), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2021:3294 |