cinder/cinder/volume
zhu.boxiang 5d62c72d35 RBD: fix volume reference handling in clone logic
This patch fixes a bug in volume cloning where the source volume is
prematurely closed.  If the destination volume requires flattening and
an exception occurs during flattening, the code attempts to perform
cleanup operations on an already closed volume.  This resulted in a
segmentation fault which causes cinder to restart.

Co-authored-by: Jon Bernard <jobernar@redhat.com>

Change-Id: Ib713aa91b775d8ec07ffdb24dfe1db1b6ecf2921
Closes-Bug: #1794956
(cherry picked from commit 394fbd7e20)
(cherry picked from commit 7bfd3c4dcf)
(cherry picked from commit 47caae4cbb)
2020-03-30 21:10:09 +00:00
..
drivers RBD: fix volume reference handling in clone logic 2020-03-30 21:10:09 +00:00
flows Fix: Create new cache entry when xtremio reaches snap limit 2020-02-13 13:26:49 +00:00
targets Fix Port nvmet driver to use privsep 2018-07-16 15:04:04 +00:00
__init__.py Fix dynamic import of CONF.volume_api_class 2016-02-12 10:50:31 -06:00
api.py Don't allow retype to encrypted+multiattach type 2019-09-13 09:36:08 -04:00
configuration.py Add support for shared "backend_defaults" config 2017-07-11 18:58:58 +00:00
driver.py Fix invalid escape sequence warnings 2018-06-20 16:22:26 -05:00
driver_utils.py Remove log translations 2017-03-19 14:59:57 +00:00
group_types.py handle no default_cgsnapshot_type 2017-11-28 21:55:29 +00:00
manager.py Make volume soft delete more thorough 2020-02-03 17:58:54 +00:00
qos_specs.py [Doc] Handle Sphinx warnings as errors 2017-08-29 16:00:09 -05:00
rpcapi.py Transfer snapshots with volumes 2018-07-19 09:42:43 +08:00
throttling.py Implement privsep boilerplate in cinder. 2018-06-06 09:42:54 +08:00
utils.py Fix invalid escape sequence warnings 2018-06-20 16:22:26 -05:00
volume_types.py Volume type with encryption comparison 2017-07-25 05:08:12 +00:00