Unable to create an instance based on an encrypted volume snapshot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Lee Yarwood | ||
Stein |
Fix Committed
|
Undecided
|
Lee Yarwood | ||
Train |
Fix Committed
|
Undecided
|
Lee Yarwood |
Bug Description
Description
===========
Nova is currently unable to create and then boot from volumes from encrypted volume snapshots when the original volume_type is not provided as part of the block_device_
Details: {'code': 500, 'created': '2019-11-
Steps to reproduce
==================
* Create an encrypted volume snapshot
* Attempt to create an instance based on this without providing a volume_type in the block_device_
Expected result
===============
Nova copies the original volume_type if one is not provided in the request.
Actual result
=============
Nova fails to copy the original volume_type leading to a failure when attempting to create a volume based on the encrypted volume snapshot as the types do not match.
Environment
===========
1. Exact version of OpenStack you are running. See the following
list for all releases: http://
master
2. Which hypervisor did you use?
(For example: Libvirt + KVM, Libvirt + XEN, Hyper-V, PowerKVM, ...)
What's the version of that?
Libvirt + KVM
2. Which storage type did you use?
(For example: Ceph, LVM, GPFS, ...)
What's the version of that?
N/A
3. Which networking type did you use?
(For example: nova-network, Neutron with OpenVSwitch, ...)
N/A
Logs & Configs
==============
Changed in nova: | |
assignee: | nobody → Lee Yarwood (lyarwood) |
status: | New → In Progress |
Reviewed: https:/ /review. opendev. org/694497 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=5679a0bf99c 17ff336fa520c9c dfad5156c6c9d2
Committed: https:/
Submitter: Zuul
Branch: master
commit 5679a0bf99c17ff 336fa520c9cdfad 5156c6c9d2
Author: Lee Yarwood <email address hidden>
Date: Fri Nov 15 09:57:27 2019 +0000
block_device: Copy original volume_type when missing for snapshot based volumes
Attempts to launch an instance from an encrypted volume snapshot would device_ mapping of the boot request.
previously fail if a volume_type was not specified in the
block_
To avoid such failures DriverVolSnapsh otBlockDevice will now attempt to
lookup and use the volume_type of the original volume that the snapshot
is based on. This should allow the eventual volume creation request
based on the snapshot to succeed in cases where a volume_type is
required but not provided in the boot request.
Closes-Bug: #1853495 732dbe04acea303 b303acd264a
Change-Id: Ic749c49e227e41