cinder/cinder/volume
Alyson Rosa 1f96b386b3 Netapp ONTAP: Add support to revert to snapshot
This patch adds support to revert to snapshot for NFS, FC and
iSCSI drivers with FlexVol pool.

Adds a method on client_cmode to rename a NFS volume file using
the file-rename-file zapi call.

The revert steps are:
  1. Create a clone volume file/LUN from snapshot.
  2. Change the original volume file/LUN path to a temporary path.
  3. Change clone file/LUN path to the original path.
  4. Delete the volume file/LUN on temporary path.

If any step fails, the original volume file/LUN is preserved and
the clone file/LUN is deleted.

For NFS, ONTAP clone file is not supported on FlexGroup pool, in
this case the generic implementation will perform the revert to
snapshot.

Implements: blueprint ontap-revert-to-snapshot
Co-Authored-By: Fabio Oliveira <fabioaurelio1269@gmail.com>
Change-Id: I347f0ee63d8d13ff181dd41a542a006b7c10b488
2021-09-03 14:00:40 -03:00
..
drivers Netapp ONTAP: Add support to revert to snapshot 2021-09-03 14:00:40 -03:00
flows Improve quota usage for temporary resources 2021-08-26 18:47:27 +02:00
targets Remove six of dir cinder/volume/* 2020-10-14 09:08:54 +08:00
__init__.py Fix dynamic import of CONF.volume_api_class 2016-02-12 10:50:31 -06:00
api.py Snapshot in-use volumes without force flag 2021-08-31 14:48:32 -04:00
configuration.py Add support for shared "backend_defaults" config 2017-07-11 18:58:58 +00:00
driver.py Improve quota usage for temporary resources 2021-08-26 18:47:27 +02:00
driver_utils.py Remove log translations 2017-03-19 14:59:57 +00:00
group_types.py Remove six of dir cinder/volume/* 2020-10-14 09:08:54 +08:00
manager.py Improve quota usage for temporary resources 2021-08-26 18:47:27 +02:00
qos_specs.py [Doc] Handle Sphinx warnings as errors 2017-08-29 16:00:09 -05:00
rpcapi.py mypy: continued manager, scheduler, rpcapi 2021-08-11 08:36:09 -04:00
throttling.py Remove exception.Error class 2020-07-21 18:21:21 +03:00
volume_migration.py Initiating Cinder Volume Manager with large number of volumes 2019-01-11 08:19:07 -05:00
volume_types.py mypy: create_volume flows 2021-08-10 10:26:39 -04:00
volume_utils.py mypy: create_volume flows 2021-08-10 10:26:39 -04:00