OS API: Servers become stuck in rebuild if flavor does not meet flavor reqs of new image

Bug #919367 reported by Daryl Walleck
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Dan Prince

Bug Description

I did this by accident. I noticed that I had a server stuck in rebuild, and realized that I had tried to rebuild my 256 MB instance into an image that had had a RAM requirement of 1024MB. It won't change state and can't be deleted, so this seems incorrect.

Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Naveed Massjouni (ironcamel) wrote :

Can you please provide the relevant nova compute log lines. This is hard to reproduce in my dev environment because I don't have any images with large RAM requirements.

Revision history for this message
Daryl Walleck (dwalleck) wrote :

I don't have access to the server on which the compute node resides. I would have to try to get an image with this type of req in my Devstack environment. I'll see what I can do.

Dan Prince (dan-prince)
Changed in nova:
assignee: nobody → Dan Prince (dan-prince)
Revision history for this message
Dan Prince (dan-prince) wrote :

The issue here seems to be that we don't even check min_ram/min_disk when performing a rebuild.

Will fix that shortly....

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/6743

Changed in nova:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/6743
Committed: http://github.com/openstack/nova/commit/148dba871ef76841e93b1a278155340c395b4a64
Submitter: Jenkins
Branch: master

commit 148dba871ef76841e93b1a278155340c395b4a64
Author: Dan Prince <email address hidden>
Date: Mon Apr 23 23:12:46 2012 -0400

    Validate min_ram/min_disk on rebuild.

    Update compute API rebuild function so that it checks min_ram
    and min_disk on the specified image.

    Fixes LP Bug #919367.

    Change-Id: Ifa38b303656709e537fa6e4e729f39715f23f552

Changed in nova:
status: In Progress → Fix Committed
Devin Carlen (devcamcar)
Changed in nova:
milestone: none → folsom-1
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: folsom-1 → 2012.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.