Closed crltc closed 7 months ago
@crltc we dont use pool-id for cephfs volumes we use filesystem ID.
Thank you for the clarification, this is indeed an oversight on my end. Hopefully it can serve as a reference for anyone else who runs into the same confusion.
Describe the bug
external_id generated by plugin uses incorrect pool-id for cephfs volumes. The cephfs volumes I am deploying are designated to pool 21 and 22 but ceph-csi provisions it as pool 4 which does not exist. Mounting cephfs requires the use of pool-id 4 instead of the actual pool id.
external_id consists of:
<csi-id-version>-<cluster-id-length>-<cluster-id>-<pool-id>-<uuid>
Environment details
fuse
orkernel
. for rbd itskrbd
orrbd-nbd
) : kernelSteps to reproduce
Setup Details: I have a near identical setup to the example provided here: https://docs.ceph.com/en/latest/rbd/rbd-nomad/
Deployment: Run nomad volume job with Terraform to create volume:
Actual results
Deployed pool within external_id has pool-id 4 even though my cluster does not have a pool with id 4
0001-0024-090e7e3f-0b34-289q-9202-gh8z35g3db51-0000000000000004-084f01c4-9a21-4b5a-a23d-5045e47cb6fz
Expected behavior
Deployed pool should have pool-id 21 within it's external_id.
0001-0024-090e7e3f-0b34-289q-9202-gh8z35g3db51-0000000000000015-084f01c4-9a21-4b5a-a23d-5045e47cb6fz
Logs
Output from
ceph osd lspools
: