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 <email address hidden>
Reviewed: https:/ /review. opendev. org/606038 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=394fbd7e20d bd8fb8cc5851065 7753432c43fa9b
Committed: https:/
Submitter: Zuul
Branch: master
commit 394fbd7e20dbd8f b8cc58510657753 432c43fa9b 99cloud. net>
Author: zhu.boxiang <zhu.boxiang@
Date: Fri Sep 28 19:07:12 2018 +0800
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 <email address hidden>
Change-Id: Ib713aa91b775d8 ec07ffdb24dfe1d b1b6ecf2921
Closes-Bug: #1794956