ceph-csi/pkg/rbd
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
..
controllerserver.go Support mounting and deleting version 1.0.0 RBD volumes 2019-07-08 15:40:17 +00:00
errors.go Support mounting and deleting version 1.0.0 RBD volumes 2019-07-08 15:40:17 +00:00
identityserver.go Replaces the references to the Kubernete Authors with the Ceph-CSI authors 2019-04-03 11:14:08 +02:00
nodeserver.go Support mounting and deleting version 1.0.0 RBD volumes 2019-07-08 15:40:17 +00:00
rbd_attach.go Move locks to more granular locking than CPU count based 2019-07-01 14:10:14 +00:00
rbd_journal.go Modify RBD plugin to use a single ID and move the id and key into the secret 2019-06-24 13:46:14 +00:00
rbd_util.go Support mounting and deleting version 1.0.0 RBD volumes 2019-07-08 15:40:17 +00:00
rbd.go Support mounting and deleting version 1.0.0 RBD volumes 2019-07-08 15:40:17 +00:00