forked from rook/rook
If the kernel doesnt support mapping of rbd image with deep-flatten feature,cephcsi need to flatten the rbd image first and than map the image on the node. cephcsi first tries to add a task to flatten the rbd image if its receives any permission error it will try to call rbd CLI command which is a blocking call. This commit adds mgr caps to the csi-rbd-node user so that cephcsi will add flatten task and return immediate error to the kubelet, let kubelet retry again,If we go with blocking rbd CLI call we may end up having stale maps on the node in corner cases. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>