yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #83364
[Bug 1879500] Re: Unable to rescue using volume snapshot based images
Reviewed: https://review.opendev.org/729261
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=b9ff0ca94e670a080f82358c2003a0bf4b963bc8
Submitter: Zuul
Branch: master
commit b9ff0ca94e670a080f82358c2003a0bf4b963bc8
Author: Lee Yarwood <lyarwood@xxxxxxxxxx>
Date: Tue May 19 13:40:16 2020 +0100
compute: Do not allow rescue attempts using volume snapshot images
As seen in I7356b54bef0c614d9bfd1ed0d7b42574b58966f9 Nova is currently
unable to rescue instances using volume snapshot based images. This
currently results in zero length files being created on the compute as
the images are actually metadata stores and contain no image data.
This change adds a simple check within the compute API to reject
requests that provided an image reference that itself provides an
img_block_device_mapping before we cast out to the computes.
Depends-On: https://review.opendev.org/#/c/725812/
Closes-Bug: #1879500
Change-Id: I87253c518bd60a3e7cd08af68da9ade96f4a40db
** Changed in: nova
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1879500
Title:
Unable to rescue using volume snapshot based images
Status in OpenStack Compute (nova):
Fix Released
Bug description:
Description
===========
While working on bug #1876330 it was observed that attempts to rescue
an instance with a volume snapshot image were permitted but would
ultimately fail to boot the instance with file based imagebackends
*or* fail out right with the rbd imagebackend. This is due to these
images being metadata containers and containing no image data, thus
resulting in Nova attempting to rescue with zero length images.
Steps to reproduce
==================
* Launch a volume backed instance
* Snapshot the instance using the imageCreate API.
* Attempt to rescue the image using the created image.
Expected result
===============
The request is rejected as there is no support for rescuing using a
volume snapshot based image.
Actual result
=============
The request is acceptable and either fails to boot the instance or
fails earlier due to the zero length image.
Environment
===========
1. Exact version of OpenStack you are running. See the following
list for all releases: http://docs.openstack.org/releases/
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
==============
See bug #1876330.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1879500/+subscriptions
References