CSI driver for Ceph
Go to file
ShyamsundarR b9cd0e18ad Make CephFS plugin stateless reusing RADOS based journal scheme
This is a part of the stateless set of commits for CephCSI.

This commit removes the dependency on config maps to store cephFS provisioned
volumes, and instead relies on RADOS based objects and keys, and required
CSI VolumeID encoding to detect the provisioned volumes.

Changes:
- Provide backward compatibility to provisioned volumes by older plugin versions (1.0.0 or older)
- Remove Create/Delete support for statically provisioned volumes (fixes #382)
- Added namespace support to RADOS OMaps and used the same to store RADOS CSI objects and keys in the CephFS metadata pool
- Added support to mention fsname for CephFS provisioning (fixes #359)
- Changed field name in CSI Identifier to 'location', to denote a pool or fscid
- Updated mounter cache to use new scheme
- Required Helm manifests are updated
- Required documentation and other manifests are updated
- Made driver option 'metadatastorage' as optional, as fresh installs do not need to specify the same

Testing done:
- Create/Mount/Delete PVC
- Create/Delete 5 PVCs
- Mount version 1.0.0 PVC
- Delete version 1.0.0 PV
- Mount Statically defined PV/PVC/Pod
- Mount Statically defined version 1.0.0 PV/PVC/Pod
- Delete Statically defined version 1.0.0 PV/PVC/Pod
- Node restart when mounted to test mountcache
- Use InstanceID other than 'default'
- RBD basic round of tests, as namespace is added to OMaps
- csitest against ceph-fs plugin
  - NOTE: CephFS plugin still does not detect and address already created
  volumes but of a different size
- Test not providing any value to the metadata storage parameter

Signed-off-by: ShyamsundarR <srangana@redhat.com>
2019-05-30 06:20:35 -04:00
.github Add PR/Issue/Feature templates 2019-05-27 11:43:44 +00:00
cmd Make CephFS plugin stateless reusing RADOS based journal scheme 2019-05-30 06:20:35 -04:00
deploy Make CephFS plugin stateless reusing RADOS based journal scheme 2019-05-30 06:20:35 -04:00
docs Make CephFS plugin stateless reusing RADOS based journal scheme 2019-05-30 06:20:35 -04:00
examples Make CephFS plugin stateless reusing RADOS based journal scheme 2019-05-30 06:20:35 -04:00
pkg Make CephFS plugin stateless reusing RADOS based journal scheme 2019-05-30 06:20:35 -04:00
scripts skip functional tests for doc change 2019-05-29 22:32:42 +00:00
vendor update vendor to latest kubernetes 1.14.0 2019-05-14 06:56:56 +00:00
.gitignore update ceph-csi to build and use a single docker image 2019-05-28 18:10:22 +00:00
.mergify.yml Default to 2 approvals for a patch to get in. 2019-04-04 07:38:02 +00:00
.travis.yml skip functional tests for doc change 2019-05-29 22:32:42 +00:00
deploy.sh update ceph-csi to build and use a single docker image 2019-05-28 18:10:22 +00:00
Gopkg.lock update vendor to latest kubernetes 1.14.0 2019-05-14 06:56:56 +00:00
Gopkg.toml update vendor to latest kubernetes 1.14.0 2019-05-14 06:56:56 +00:00
LICENSE add Apache License 2018-01-10 16:12:00 +00:00
Makefile update ceph-csi to build and use a single docker image 2019-05-28 18:10:22 +00:00
README.md Update README contents 2019-05-09 13:16:10 +00:00

Ceph CSI

Go Report
Card Build
Status

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.

Independent CSI plugins are provided to support RBD and CephFS backed volumes,

  • 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/.

Project status

Status: Alpha

The alpha status reflects possible non-backward compatible changes in the future, and is thus not recommended for production use. There is work in progress that would change on-disk metadata for certain operations, possibly breaking backward compatibility.

Supported CO platforms

Ceph CSI drivers are currently developed and tested exclusively on Kubernetes environments. There is work in progress to make this CO independent and thus support other orchestration environments in the future.

For Kubernetes versions 1.11 and 1.12, please use 0.3 images and deployments.

For Kubernetes versions 1.13 and above, please use 1.0 images and deployments.

Support Matrix

Ceph-CSI features and available versions

Plugin Features CSI driver Version
CephFS Dynamically provision, de-provision File mode RWO volume >=v0.3.0
Dynamically provision, de-provision File mode RWX volume >=v0.3.0
Creating and deleting snapshot -
Provision volume from snapshot -
Provision volume from another volume -
Resize volume -
RBD Dynamically provision, de-provision Block mode RWO volume >=v0.3.0
Dynamically provision, de-provision Block mode RWX volume >=v0.3.0
Dynamically provision, de-provision File mode RWO volume v1.0.0
Creating and deleting snapshot >=v0.3.0
Provision volume from snapshot v1.0.0
Provision volume from another volume -
Resize volume -

Ceph-CSI versions and CSI spec compatibility

Ceph CSI driver Version CSI spec version
v0.3.0 v0.3
v1.0.0 v1.0.0

CSI spec and Kubernetes version compatibility

Please refer to the matrix in the Kubernetes documentation.

Troubleshooting

Please submit an issue at: Issues

Slack Channels

Join us at Rook ceph-csi Channel