[Bug 1608934] Re: ephemeral/swap disk creation fails for local storage with image type raw/lvm
OpenStack Infra
1608934 at bugs.launchpad.net
Fri Sep 30 02:20:22 UTC 2016
Reviewed: https://review.openstack.org/368216
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=9146f9d602ae1ee64cd8ccbf6fc371bc3fb36395
Submitter: Jenkins
Branch: stable/mitaka
commit 9146f9d602ae1ee64cd8ccbf6fc371bc3fb36395
Author: Jens Rosenboom <j.rosenboom at x-ion.de>
Date: Mon Aug 15 13:16:58 2016 +0200
Fix resizing in imagebackend.cache()
The Raw and Lvm backends do not create a 'base image' (the file in the
image cache) when creating an ephemeral or swap disk. However, cache()
expects it to exist when checking if a resize is required.
This change ignores the resize check if the backing file doesn't exist.
This happens to be ok, because ephemeral and swap disks are always
created with the correct target size anyway, and therefore never need
to be resized.
NOTE(mriedem): There is a slight change in the commit message and
test since the Raw image backend was renamed to Flat in Newton. Since
Flat didn't exist in Mitaka it's better to use Raw here.
Closes-Bug: 1608934
Co-Authored-By: Matthew Booth <mbooth at redhat.com>
Change-Id: I46b5658efafe558dd6b28c9910fb8fde830adec0
(cherry picked from commit d0775c50d0c2bd50a62ccd49ea7063948af6c3b3)
** Changed in: cloud-archive/mitaka
Status: In Progress => Fix Committed
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to Ubuntu Cloud Archive.
https://bugs.launchpad.net/bugs/1608934
Title:
ephemeral/swap disk creation fails for local storage with image type
raw/lvm
Status in Ubuntu Cloud Archive:
Fix Released
Status in Ubuntu Cloud Archive liberty series:
In Progress
Status in Ubuntu Cloud Archive mitaka series:
Fix Committed
Status in Ubuntu Cloud Archive newton series:
Fix Released
Status in OpenStack Compute (nova):
Fix Released
Status in OpenStack Compute (nova) mitaka series:
In Progress
Status in nova package in Ubuntu:
Fix Released
Status in nova source package in Xenial:
New
Bug description:
Description
===========
I am currently trying to launch an instance in my mitaka cluster with a flavor with ephemeral and root storage. Whenever i am trying to start the instance i am running into an "DiskNotFound" Error (see trace below). Starting instances without ephemeral works perfectly fine and the root disk is created as expected in /var/lib/nova/instance/$INSTANCEID/disk .
Steps to reproduce
==================
1. Create a flavor with ephemeral and root storage.
2. Start an instance with that flavor.
Expected result
===============
Instance starts and ephemeral disk is created in /var/lib/nova/instances/$INSTANCEID/disk.eph0 or disk.local ? (Not sure where the switchase for the naming is)
Actual result
=============
Instance does not start, ephemeral disk seems to be created at /var/lib/nova/instances/$INSTANCEID/disk.eph0, but nova checks /var/lib/nova/instances/_base/ephemeral_* for disk_size
TRACE: http://pastebin.com/raw/TwtiNLY2
Environment
===========
I am running OpenStack mitaka on Ubuntu 16.04 in the latest version with Libvirt + KVM as hypervisor (also latest stable in xenial).
Config
======
nova.conf:
...
[libvirt]
images_type = raw
rbd_secret_uuid = XXX
virt_type = kvm
inject_key = true
snapshot_image_format = raw
disk_cachemodes = "network=writeback"
rng_dev_path = /dev/random
rbd_user = cinder
...
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1608934/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list