Cinder - creating clone of encrypted volume fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
New
|
Medium
|
Unassigned |
Bug Description
This was found when testing a PowerMax encrypted volume. Traced it to cinder/
def _create_
# NOTE(harlowja): if the source volume has disappeared this will be our
# detection of that since this database call should fail.
#
# NOTE(harlowja): likely this is not the best place for this to happen
# and we should have proper locks on the source volume while actions
# that use the source volume are underway.
srcvol_ref = objects.
try:
if model_update is None:
if volume.
In the _rekey_volume method an _attach_volume is called and for PowerMax driver we need provider_location populated in order to be able to find the volume in order to attach it.
def _rekey_volume(self, context, volume):
"""Change encryption key on volume.
:returns: model update dict
"""
properties = utils.brick_
attach_info = None
new_key_id = None
key_mgr = key_manager.
try:
Possible fix is to update the volume object before passing it to the _rekey_volume
tags: | added: powermax |
tags: | added: volume |
tags: | added: encryption |
Changed in cinder: | |
importance: | Undecided → Medium |
submission at https:/ /review. opendev. org/c/openstack /cinder/ +/772517