yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #78554
[Bug 1816686] Re: fail to boot an instance because of "rbd import" qcow2 disk
Reviewed: https://review.opendev.org/640271
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=6c6ffc0476b56fe0bf822ddcf3c9a2d543912f38
Submitter: Zuul
Branch: master
commit 6c6ffc0476b56fe0bf822ddcf3c9a2d543912f38
Author: zhu.boxiang <zhu.boxiang@xxxxxxxxxxx>
Date: Fri Mar 1 16:16:31 2019 +0800
Fix failure to boot instances with qcow2 format images
Ceph doesn't support QCOW2 for hosting a virtual machine
disk:
http://docs.ceph.com/docs/master/rbd/rbd-openstack/
When we set image_type as rbd and force_raw_images as
False and we don't launch an instance with boot-from-volume,
the instance is spawned using qcow2 as root disk but
fails to boot because data is accessed as raw.
To fix this, we raise an error and refuse to start
nova-compute service when force_raw_images and
image_type are incompatible.
When we import image into rbd, check the format of cache
images. If the format is not raw, remove it first and
fetch it again. It will be raw format now.
Change-Id: I1aa471e8df69fbb6f5d9aeb35651bd32c7123d78
Closes-Bug: 1816686
** 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/1816686
Title:
fail to boot an instance because of "rbd import" qcow2 disk
Status in OpenStack Compute (nova):
Fix Released
Bug description:
Environment
===========
OpenStack: master branch
Ceph: luminous
Steps to reproduce
==================
1. Upload a qcow2 format image to glance such as a test qcow2 image `cirros`.
2. Use command to create a new instance: `openstack server create <server-name> --image <image-name> --flavor <flavor-name> --security-group <security-group-name> --availability-zone nova --network <network-name>`
3. After instance has been spawn successfully, we run command to get the console url: `openstack console url show <server-name>`
4. Open the browser and enter the console url, I see that the instance fails to boot.
Expected result
===============
The instance succeeds to boot.
Actual result
=============
The instance fails to boot.
When importing rbd volume from _base image file, the format of image file is qcow2. When using a qcow2 as root disk, the instance is spawned but fails to boot because data is accessed as raw.
So try to convent the image format when import it into rbd as raw.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1816686/+subscriptions
References