Snapshot queries original image which could be gone

Bug #1039662 reported by Chris Behrens
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Unassigned

Bug Description

_get_minram_mindisk_params in compute api queries original image for properties, but the image could have been deleted, so we don't inherit min_ram/min_disk properties like we should.

There's other cases in the various compute driver implementations of 'snapshot' that also try to get the original image properties. All of these things should be converted to use the instance_system_metadata entries that are prefixed with 'image_'.

Chris Behrens (cbehrens)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/11751

Changed in nova:
status: New → In Progress
Revision history for this message
Thierry Carrez (ttx) wrote :

@Chris: still working on that ?

Changed in nova:
importance: Undecided → Medium
status: In Progress → Confirmed
Changed in nova:
assignee: nobody → Xavier Queralt (xqueralt)
status: Confirmed → In Progress
Revision history for this message
John Garbutt (johngarbutt) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/43784
Committed: http://github.com/openstack/nova/commit/4389f2292a0177c8eedc0a398ceb3c5535a9ef82
Submitter: Jenkins
Branch: master

commit 4389f2292a0177c8eedc0a398ceb3c5535a9ef82
Author: Xavier Queralt <email address hidden>
Date: Mon Aug 26 22:55:46 2013 +0200

    Avoid errors on some actions when image not usable

    Using the metadata saved on instance creation, we can now get all the
    image related metadata we need from the instance itself.

    This patch replace the logic for getting the image metadata on some
    actions that shouldn't fail when the image is not accessible (create
    an snapshot, resize, migrate, rescue an instance or attach an
    interface).

    Fixes bug 1039662

    Change-Id: Id8c2f13ca96908317d271a84fd685104b64f87e9

Changed in nova:
status: In Progress → Fix Committed
Changed in nova:
milestone: none → havana-rc1
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: havana-rc1 → 2013.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.