Bug 906302 - When Launching a new Instance, all flavors are displayed regardless of the image requirements
Summary: When Launching a new Instance, all flavors are displayed regardless of the im...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-django-horizon
Version: 2.1
Hardware: Unspecified
OS: Linux
low
low
Target Milestone: ga
: 7.0 (Kilo)
Assignee: Matthias Runge
QA Contact: Ido Ovadia
URL:
Whiteboard:
Depends On:
Blocks: 1072204 1072205
TreeView+ depends on / blocked
 
Reported: 2013-01-31 12:16 UTC by Julie Pichon
Modified: 2016-04-26 13:59 UTC (History)
5 users (show)

Fixed In Version: python-django-horizon-2015.1.0-6.el7ost
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1072204 1072205 (view as bug list)
Environment:
Last Closed: 2015-08-05 13:10:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
pic (49.23 KB, image/jpeg)
2014-06-19 05:33 UTC, Amit Ugol
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1116122 0 None None None Never
Launchpad 1337278 0 None None None Never
OpenStack gerrit 31099 0 None None None Never
Red Hat Product Errata RHEA-2015:1548 0 normal SHIPPED_LIVE Red Hat Enterprise Linux OpenStack Platform Enhancement Advisory 2015-08-05 17:07:06 UTC

Description Julie Pichon 2013-01-31 12:16:29 UTC
Description of problem:
Reported by aortega. Regardless of an image's disk and RAM requirements, all flavors are available in the drop-down menu when Launching an instance. Therefore you can end up using e.g. a m1.tiny flavour with 512Mb RAM with an image that requires at least 2Gb of RAM.

Version-Release number of selected component (if applicable):
python-django-horizon-2012.2.1-2.el6ost.noarch

How reproducible:
Always

Steps to Reproduce:
1. Create a new image, setting the minimum RAM requirement to 2048MB
2. After the image is uploaded, try to Launch it
3. 
  
Actual results:
The flavor selected by default is m1.tiny, which doesn't actually provide enough RAM for the image.

After clicking Launch, the instance fails to launch with an error "Instance type's memory is too small for requested image. (HTTP 400)"

Expected results:
Horizon should default to an appropriate flavor, and probably prevent the user from launching an image with a flavor that doesn't meet the image's requirements.

The UI should also be enhanced to display the image's requirements. At the moment, there is no indication what an image's requirements are when launching a new instance.


Additional info:

Comment 2 Matt Wagner 2013-11-27 15:33:48 UTC
This has been merged:


commit fda6eb590cc728c82f8e61a8d5248574f3d258c3
Merge: 7986570 e07e93a
Author: Jenkins <jenkins.org>
Date:   Wed Nov 27 01:25:42 2013 +0000

    Merge "Disable selection of undersized flavors for image"




commit e07e93a1d7bc7b4b42569518701bfe30be8f3b03
Author: Matt Wagner <matt.wagner>
Date:   Thu May 30 13:48:49 2013 -0400

    Disable selection of undersized flavors for image

    Where an image has minimum requirements for RAM or disk, we should
    not allow users to select a flavor that does not meet those
    requirements only to have the form fail when submitted.

    Change-Id: I00667f4ca30a43771eaf3257fd055d3387687658
    Fixes: bug 1116122

Comment 3 Julie Pichon 2013-11-27 15:45:33 UTC
Changing back to POST, MODIFIED will be set when the patch had made it into our packages. Thanks again!

Comment 4 Amit Ugol 2014-06-19 05:33:04 UTC
Created attachment 910251 [details]
pic

Comment 5 Amit Ugol 2014-06-19 05:47:06 UTC
tested on python-django-horizon-2014.1-7.el7ost.noarch.
I have created an image with a min disc and min ram of 8gb.
tiny is grayed out. small(2gb) is selectable.

from cli:
# nova image-show 606cd2bd-1b06-4782-a7b3-1790c5db7f17
+----------------------+--------------------------------------+
| Property             | Value                                |
+----------------------+--------------------------------------+
| OS-EXT-IMG-SIZE:size | 2111766528                           |
| created              | 2014-06-19T05:26:50Z                 |
| id                   | 606cd2bd-1b06-4782-a7b3-1790c5db7f17 |
| minDisk              | 8                                    |
| minRam               | 8                                    |
| name                 | test-002                             |
| progress             | 100                                  |
| status               | ACTIVE                               |
| updated              | 2014-06-19T05:27:01Z                 |
+----------------------+--------------------------------------+

see attached pic

Comment 6 Julie Pichon 2014-07-03 10:47:00 UTC
I can reproduce the RAM issue using python-django-horizon-2014.1-7.el7ost and on master upstream. I filed https://bugs.launchpad.net/horizon/+bug/1337278 to track the fix.

Comment 10 Matthias Runge 2015-02-16 08:39:40 UTC
Checks were added for Icehouse version. It turned out, checks didn't cover all possibilities.

Launch instance workflow will significantly change in kilo. A backport is not possible then.

For further info, please see https://blueprints.launchpad.net/horizon/+spec/launch-instance-redesign

Comment 13 Ido Ovadia 2015-06-11 12:57:32 UTC
Verified
========
python-django-horizon-2015.1.0-8.el7ost.noarch

Comment 15 errata-xmlrpc 2015-08-05 13:10:30 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2015:1548


Note You need to log in before you can comment on or make changes to this bug.