ShyamsundarR fa68c35f3b Support mounting and deleting version 1.0.0 RBD volumes
This commit adds support to mount and delete volumes provisioned by older
plugin versions (1.0.0) in order to support backward compatibility to 1.0.0
created volumes.

It adds back the ability to specify where older meta data was specified, using
the metadatastorage option to the plugin. Further, using the provided meta data
to mount and delete the older volumes.

It also supports a variety of ways in which monitor information may have been
specified (in the storage class, or in the secret), to keep the monitor
information current.

Testing done:
- Mount/Delete 1.0.0 plugin created volume with monitors in the StorageClass
- Mount/Delete 1.0.0 plugin created volume with monitors in the secret with
  a key "monitors"
- Mount/Delete 1.0.0 plugin created volume with monitors in the secret with
  a user specified key
- PVC creation and deletion with the current version (to ensure at the minimum
  no broken functionality)
- Tested some negative cases, where monitor information is missing in secrets
  or present with a different key name, to understand if failure scenarios work
  as expected

Updates #378

Follow-up work:
- Documentation on how to upgrade to 1.1 plugin and retain above functionality
  for older volumes

Signed-off-by: ShyamsundarR <srangana@redhat.com>
2019-07-08 15:40:17 +00:00
2019-05-27 11:43:44 +00:00
2018-01-10 16:12:00 +00:00
2019-06-04 11:39:40 +05:30
2019-06-24 15:57:58 +00:00

Ceph CSI

Go Report
Card Build
Status

This repo contains [Container Storage Interface(CSI)] (https://github.com/container-storage-interface/) Ceph CSI driver for RBD, CephFS and kubernetes sidecar deployment yamls of provisioner, attacher, node-driver-registrar and snapshotter for supporting CSI functionalities.

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 plugin, please refer rbd doc and for CephFS plugin configuration and deployment please refer cephfs doc.
  • 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.

Contributing to this repo

Please follow [development-guide] (https://github.com/ceph/ceph-csi/tree/master/docs/development-guide.md) and coding style guidelines if you are interested to contribute to this repo.

Troubleshooting

Please submit an issue at: Issues

Contact

Please use the following to reach members of the community:

Description
CSI driver for Ceph
Readme Pixar 158 MiB
Languages
Go 94.8%
Shell 2.9%
Python 1.3%
Makefile 0.6%
Smarty 0.3%
Other 0.1%