ceph-csi/deploy/rbd/kubernetes
Prasanna Kumar Kalever b6a88dd728 rbd: add volume healer
Problem:
-------
For rbd nbd userspace mounter backends, after a restart of the nodeplugin
all the mounts will start seeing IO errors. This is because, for rbd-nbd
backends there will be a userspace mount daemon running per volume, post
restart of the nodeplugin pod, there is no way to restore the daemons
back to life.

Solution:
--------
The volume healer is a one-time activity that is triggered at the startup
time of the rbd nodeplugin. It navigates through the list of volume
attachments on the node and acts accordingly.

For now, it is limited to nbd type storage only, but it is flexible and
can be extended in the future for other backend types as needed.

From a few feets above:
This solves a severe problem for nbd backed csi volumes. The healer while
going through the list of volume attachments on the node, if finds the
volume is in attached state and is of type nbd, then it will attempt to
fix the rbd-nbd volumes by sending a NodeStageVolume request with the
required volume attributes like secrets, device name, image attributes,
and etc.. which will finally help start the required rbd-nbd daemons in
the nodeplugin csi-rbdplugin container. This will allow reattaching the
backend images with the right nbd device, thus allowing the applications
to perform IO without any interruptions even after a nodeplugin restart.

Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2021-07-16 16:30:58 +00:00
..
csi-config-map.yaml refact: Remove Kubernetes 1.13.x support 2020-01-20 10:32:30 +00:00
csi-nodeplugin-psp.yaml Add run hostpath to daemonset pods 2020-01-28 16:50:18 +00:00
csi-nodeplugin-rbac.yaml deploy: add few more cluster-roles for rbd nodeplugin 2021-07-16 16:30:58 +00:00
csi-provisioner-psp.yaml Added PodSecurityPolicy support 2020-01-22 08:19:42 +00:00
csi-provisioner-rbac.yaml deploy: allow RBD components to get ServiceAccounts 2021-07-13 17:16:35 +00:00
csi-rbdplugin-provisioner.yaml deploy: update csi-snapshotter sidecar 2021-06-25 15:45:14 +00:00
csi-rbdplugin.yaml rbd: add volume healer 2021-07-16 16:30:58 +00:00
csidriver.yaml deploy: add csidriver object for cephfs and rbd 2021-03-31 13:41:35 +00:00