ceph-csi/pkg/cephfs
王怀宗 b318964af5 issue #91
issue #217

Goal

we try to solve when csi exit unexpect, the pod use cephfs pv can not auto recovery because lost mount relation until pod be killed and reschedule to other node. i think this is may be a problem. may be csi plugin can do more thing to remount the old path so when pod may be auto recovery when pod exit and restart, the old mount path can use.

NoGoal

Pod should exit and restart when csi plugin pod exit and mount point lost. if pod not exit will get error of **transport endpoint is not connected**.

implment logic

csi-plugin start:

	1. load all MountCachEntry  from node local dir
	2. check if volID exist in cluster, if no we ignore this entry, if yes continue
	3. check if stagingPath exist, if yes we mount the path
	4. check if all targetPath exist, if yes we binmount to staging path

NodeServer:

1. NodeStageVolume: add MountCachEntry on local dir include readonly attr and ceph secret
2. NodeStagePublishVolume: add pod bind mount path to MountCachEntry  and persist local dir
3. NodeStageunPublishVolume: remove pod bind mount path From MountCachEntry  and persist local dir
4. NodeStageunStageVolume: remove MountCachEntry  from local dir
2019-03-25 22:47:39 +08:00
..
cephconf.go cephfs: don't need to store keyrings anymore 2019-02-14 13:55:51 +00:00
cephuser.go addressed review comments 2019-02-14 13:55:51 +00:00
controllerserver.go move csi-common to ceph-csi 2019-02-27 14:17:19 +05:30
credentials.go rename Id to ID to fix lint issue 2019-01-25 14:14:48 +05:30
driver.go issue #91 2019-03-25 22:47:39 +08:00
identityserver.go Fix driver name as per CSI spec 2019-03-13 12:04:30 +05:30
mountcache_test.go issue #91 2019-03-25 22:47:39 +08:00
mountcache.go issue #91 2019-03-25 22:47:39 +08:00
nodeserver.go issue #91 2019-03-25 22:47:39 +08:00
util.go cephfs/volume: create/delete-volume idempotency checks 2019-02-26 11:06:16 +01:00
volume.go Fix driver name as per CSI spec 2019-03-13 12:04:30 +05:30
volumemounter.go remove unused param from function 2019-03-04 19:01:25 +05:30
volumeoptions.go Fix issues found in gometalinter static check 2019-02-04 10:44:37 +05:30