csi: add osd blocklist capabilities to the external cephcluster

The CSI users created by the external script(both for rbd and cephfs)
need the blocklist capability so the CSI pods can execute the
`osd blocklist` commands for metro DR
update the mon caps of csi users with `profile simple-rados-client-with-blocklist`
so they have privileges to run osd blocklist cmds

Closes: https://issues.redhat.com/browse/RHSTOR-2451

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 7e851f15c6)
This commit is contained in:
parth-gr authored and mergify-bot committed 2022-01-18 16:43:04 +00:00
1 parent ee398631b4
commit 17099f56f2
2 files changed
+34 -24

No files matched your search

@@ -57,6 +57,13 @@ jobs:
kubectl -n rook-ceph exec $toolbox -- mkdir -p /etc/ceph/test-data
kubectl -n rook-ceph cp tests/ceph-status-out $toolbox:/etc/ceph/test-data/
kubectl -n rook-ceph cp deploy/examples/create-external-cluster-resources.py $toolbox:/etc/ceph
# remove the existing client auth that will be re-created by external script
kubectl -n rook-ceph exec $toolbox -- ceph auth del client.csi-cephfs-node
kubectl -n rook-ceph exec $toolbox -- ceph auth del client.csi-cephfs-provisioner
kubectl -n rook-ceph exec $toolbox -- ceph auth del client.csi-rbd-node
kubectl -n rook-ceph exec $toolbox -- ceph auth del client.csi-rbd-provisioner
# print existing client auth
kubectl -n rook-ceph exec $toolbox -- ceph auth ls
timeout 10 sh -c "until kubectl -n rook-ceph exec $toolbox -- python3 /etc/ceph/create-external-cluster-resources.py --rbd-data-pool-name replicapool; do echo 'waiting for script to succeed' && sleep 1; done"
- name: dry run external script create-external-cluster-resources.py