CSI driver for Ceph
Go to file
王怀宗 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
cmd Fix driver name as per CSI spec 2019-03-13 12:04:30 +05:30
deploy rename socket directory to a common name 2019-03-22 09:58:21 +05:30
docs Merge branch 'csi-v1.0' into default_multiwrite_blockmode 2019-03-19 08:02:14 -06:00
examples Merge branch 'csi-v1.0' into default_multiwrite_blockmode 2019-03-19 08:02:14 -06:00
pkg issue #91 2019-03-25 22:47:39 +08:00
scripts Fix yaml lint errors 2019-03-04 19:01:25 +05:30
vendor move csi-common to ceph-csi 2019-02-27 14:17:19 +05:30
.gitignore Merge branch 'master' into wip-cephfs 2018-03-13 11:21:34 +01:00
.mergify.yml Fix yaml lint error in mergify 2019-03-22 10:57:56 +05:30
.travis.yml Fix yaml lint errors 2019-03-04 19:01:25 +05:30
deploy.sh update deploy.sh to push cephfs chat 2019-02-21 10:38:25 +05:30
Gopkg.lock move csi-common to ceph-csi 2019-02-27 14:17:19 +05:30
Gopkg.toml move csi-common to ceph-csi 2019-02-27 14:17:19 +05:30
LICENSE add Apache License 2018-01-10 16:12:00 +00:00
Makefile Rework multi-node-multi-writer feature 2019-03-18 10:07:06 -06:00
README.md Update README.md 2019-02-12 10:55:29 -05:00

Ceph CSI 1.0.0

Container Storage Interface (CSI) driver, provisioner, and attacher for Ceph RBD and CephFS.

Overview

Ceph CSI plugins implement an interface between CSI enabled Container Orchestrator (CO) and CEPH cluster. It allows dynamically provisioning CEPH volumes and attaching them to workloads. Current implementation of Ceph CSI plugins was tested in Kubernetes environment (requires Kubernetes 1.13+), but the code does not rely on any Kubernetes specific calls (WIP to make it k8s agnostic) and should be able to run with any CSI enabled CO.

For details about configuration and deployment of RBD and CephFS CSI plugins, see documentation in docs/.

For example usage of RBD and CephFS CSI plugins, see examples in examples/.

Troubleshooting

Please submit an issue at: Issues

Slack Channels

Join us at Rook ceph-csi Channel