Nova launch instance from snapshot ignores --min-disk

Bug #1401101 reported by Tzach Shefi
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned
OpenStack Dashboard (Horizon)
Fix Released
Medium
Itxaka Serrano

Bug Description

Description of problem: Nova launch instance from Horizon, if glance image has --min-disk set insufficient flavors are filtered out. When launching from a snapshot with --min-disk set, flavors aren't filtered out, they all show up even flavors with insufficient disk size.

Version-Release number of selected component (if applicable):
rhel7
python-nova-2014.1.3-9.el7ost.noarch
openstack-nova-compute-2014.1.3-9.el7ost.noarch
openstack-nova-common-2014.1.3-9.el7ost.noarch
python-novaclient-2.17.0-2.el7ost.noarch

How reproducible:
Every time

Steps to Reproduce:
1. Upload an image to glance, set --min-disk to say 20G
2. Try to launch an instance from within horizon from that image, notice tiny flavor is grayed out.
3. From the booted instance above create a snapshot
4. Edit that snapshot #glance image-update snapID --min-disk 20
5. From horizon boot an instance from the snapshot, notice you can select any flavor including tiny which should have been grayed out as in the case of image on step 2.

Actual results:
Tiny flavor isn't filtered from Horizon launch instance page.

Expected results:
As in the case of image if --min-disk is set any flavor with insufficient disk space should be grayed out.

If this happens to --min-disk it might also happen with --min-ram.

Revision history for this message
Sean Dague (sdague) wrote :

This is actually a horizon UX issue

Changed in nova:
status: New → Invalid
Changed in horizon:
assignee: nobody → Michael Hagedorn (mike-hagedorn)
Matthias Runge (mrunge)
Changed in horizon:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Matthias Runge (mrunge) wrote :

snapshots are currently not checked for size limits in launch instance wizard

Revision history for this message
Matthias Runge (mrunge) wrote :

Mike, are you going to submit a fix here?

Revision history for this message
Matthias Runge (mrunge) wrote :

I think, this should be fixed during launch instance refactoring

Revision history for this message
Michael Hagedorn (mike-hagedorn) wrote : Re: [Bug 1401101] Re: Nova launch instance from snapshot ignores --min-disk

Yeah I got sidetracked but am getting back to it in the next day or so.

On 1/15/15, 8:43 AM, "Matthias Runge" <email address hidden> wrote:

>I think, this should be fixed during launch instance refactoring
>
>--
>You received this bug notification because you are a bug assignee.
>https://bugs.launchpad.net/bugs/1401101
>
>Title:
> Nova launch instance from snapshot ignores --min-disk
>
>Status in OpenStack Dashboard (Horizon):
> Confirmed
>Status in OpenStack Compute (Nova):
> Invalid
>
>Bug description:
> Description of problem: Nova launch instance from Horizon, if glance
> image has --min-disk set insufficient flavors are filtered out. When
> launching from a snapshot with --min-disk set, flavors aren't filtered
> out, they all show up even flavors with insufficient disk size.
>
>
> Version-Release number of selected component (if applicable):
> rhel7
> python-nova-2014.1.3-9.el7ost.noarch
> openstack-nova-compute-2014.1.3-9.el7ost.noarch
> openstack-nova-common-2014.1.3-9.el7ost.noarch
> python-novaclient-2.17.0-2.el7ost.noarch
>
>
> How reproducible:
> Every time
>
> Steps to Reproduce:
> 1. Upload an image to glance, set --min-disk to say 20G
> 2. Try to launch an instance from within horizon from that image,
>notice tiny flavor is grayed out.
> 3. From the booted instance above create a snapshot
> 4. Edit that snapshot #glance image-update snapID --min-disk 20
> 5. From horizon boot an instance from the snapshot, notice you can
>select any flavor including tiny which should have been grayed out as in
>the case of image on step 2.
>
>
> Actual results:
> Tiny flavor isn't filtered from Horizon launch instance page.
>
> Expected results:
> As in the case of image if --min-disk is set any flavor with
>insufficient disk space should be grayed out.
>
>
> If this happens to --min-disk it might also happen with --min-ram.
>
>To manage notifications about this bug go to:
>https://bugs.launchpad.net/horizon/+bug/1401101/+subscriptions

Revision history for this message
Michael Hagedorn (mike-hagedorn) wrote :

Yeah that¹s a good point, is this worth pursuing? Or fix it then
coordinate with the launch instance folks. Thoughts?

On 1/15/15, 8:43 AM, "Matthias Runge" <email address hidden> wrote:

>I think, this should be fixed during launch instance refactoring
>
>--
>You received this bug notification because you are a bug assignee.
>https://bugs.launchpad.net/bugs/1401101
>
>Title:
> Nova launch instance from snapshot ignores --min-disk
>
>Status in OpenStack Dashboard (Horizon):
> Confirmed
>Status in OpenStack Compute (Nova):
> Invalid
>
>Bug description:
> Description of problem: Nova launch instance from Horizon, if glance
> image has --min-disk set insufficient flavors are filtered out. When
> launching from a snapshot with --min-disk set, flavors aren't filtered
> out, they all show up even flavors with insufficient disk size.
>
>
> Version-Release number of selected component (if applicable):
> rhel7
> python-nova-2014.1.3-9.el7ost.noarch
> openstack-nova-compute-2014.1.3-9.el7ost.noarch
> openstack-nova-common-2014.1.3-9.el7ost.noarch
> python-novaclient-2.17.0-2.el7ost.noarch
>
>
> How reproducible:
> Every time
>
> Steps to Reproduce:
> 1. Upload an image to glance, set --min-disk to say 20G
> 2. Try to launch an instance from within horizon from that image,
>notice tiny flavor is grayed out.
> 3. From the booted instance above create a snapshot
> 4. Edit that snapshot #glance image-update snapID --min-disk 20
> 5. From horizon boot an instance from the snapshot, notice you can
>select any flavor including tiny which should have been grayed out as in
>the case of image on step 2.
>
>
> Actual results:
> Tiny flavor isn't filtered from Horizon launch instance page.
>
> Expected results:
> As in the case of image if --min-disk is set any flavor with
>insufficient disk space should be grayed out.
>
>
> If this happens to --min-disk it might also happen with --min-ram.
>
>To manage notifications about this bug go to:
>https://bugs.launchpad.net/horizon/+bug/1401101/+subscriptions

Revision history for this message
Matthias Runge (mrunge) wrote :

Depending on when new launch instance is will be ready. Could you ask them? At least a refactoring would be required here.

Revision history for this message
Michael Hagedorn (mike-hagedorn) wrote :

Yeah I will coordinate with them

On 1/15/15, 10:01 AM, "Matthias Runge" <email address hidden> wrote:

>Depending on when new launch instance is will be ready. Could you ask
>them? At least a refactoring would be required here.
>
>--
>You received this bug notification because you are a bug assignee.
>https://bugs.launchpad.net/bugs/1401101
>
>Title:
> Nova launch instance from snapshot ignores --min-disk
>
>Status in OpenStack Dashboard (Horizon):
> Confirmed
>Status in OpenStack Compute (Nova):
> Invalid
>
>Bug description:
> Description of problem: Nova launch instance from Horizon, if glance
> image has --min-disk set insufficient flavors are filtered out. When
> launching from a snapshot with --min-disk set, flavors aren't filtered
> out, they all show up even flavors with insufficient disk size.
>
>
> Version-Release number of selected component (if applicable):
> rhel7
> python-nova-2014.1.3-9.el7ost.noarch
> openstack-nova-compute-2014.1.3-9.el7ost.noarch
> openstack-nova-common-2014.1.3-9.el7ost.noarch
> python-novaclient-2.17.0-2.el7ost.noarch
>
>
> How reproducible:
> Every time
>
> Steps to Reproduce:
> 1. Upload an image to glance, set --min-disk to say 20G
> 2. Try to launch an instance from within horizon from that image,
>notice tiny flavor is grayed out.
> 3. From the booted instance above create a snapshot
> 4. Edit that snapshot #glance image-update snapID --min-disk 20
> 5. From horizon boot an instance from the snapshot, notice you can
>select any flavor including tiny which should have been grayed out as in
>the case of image on step 2.
>
>
> Actual results:
> Tiny flavor isn't filtered from Horizon launch instance page.
>
> Expected results:
> As in the case of image if --min-disk is set any flavor with
>insufficient disk space should be grayed out.
>
>
> If this happens to --min-disk it might also happen with --min-ram.
>
>To manage notifications about this bug go to:
>https://bugs.launchpad.net/horizon/+bug/1401101/+subscriptions

Revision history for this message
Matthias Runge (mrunge) wrote :

Removing assignee due to inactivity on this here

Changed in horizon:
assignee: Michael Hagedorn (mike-hagedorn) → nobody
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

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

Changed in horizon:
assignee: nobody → Itxaka Serrano (itxakaserrano)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/257424
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=fc23b53339d199fe7874ab11486ad249474ef8ec
Submitter: Jenkins
Branch: master

commit fc23b53339d199fe7874ab11486ad249474ef8ec
Author: Itxaka <email address hidden>
Date: Mon Dec 14 15:59:03 2015 +0100

    ng launch instance: Validate minimun ram for snapshot source

    On launch instance NG there was no check for
    min ram values when launching from snapshot

    Change-Id: Ifc4b5f971cbb6092823d2d72d37887193a6200fb
    Partial-Bug: #1401101

Matthias Runge (mrunge)
Changed in horizon:
milestone: none → mitaka-3
Changed in horizon:
milestone: mitaka-3 → newton-1
Changed in horizon:
milestone: newton-1 → newton-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/257489
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=ce8677e675ce1e7462dc941caacbd8d961104a0e
Submitter: Jenkins
Branch: master

commit ce8677e675ce1e7462dc941caacbd8d961104a0e
Author: Itxaka <email address hidden>
Date: Mon Dec 14 17:56:25 2015 +0100

    Validate minimum RAM for snapshot source

    On launch instance there was no check for
    min RAM values when launching from snapshot.
    Now when launching from snapshot it will check
    the same requirements as the images.

    Change-Id: I138476b839319f357022f9545c5104a17a382df3
    Partial-Bug: #1401101

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/335026

Changed in horizon:
milestone: newton-2 → newton-3
Revision history for this message
Rob Cresswell (robcresswell-deactivatedaccount) wrote :

Marking released, as it seems to be fixed in Master.

Changed in horizon:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (stable/mitaka)

Reviewed: https://review.openstack.org/335026
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=d4ac1d28c3808575a9bbef4b67389da0593956d1
Submitter: Jenkins
Branch: stable/mitaka

commit d4ac1d28c3808575a9bbef4b67389da0593956d1
Author: Itxaka <email address hidden>
Date: Mon Dec 14 17:56:25 2015 +0100

    Validate minimum RAM for snapshot source

    On launch instance there was no check for
    min RAM values when launching from snapshot.
    Now when launching from snapshot it will check
    the same requirements as the images.

    Change-Id: I138476b839319f357022f9545c5104a17a382df3
    Partial-Bug: #1401101
    (cherry picked from commit ce8677e675ce1e7462dc941caacbd8d961104a0e)

tags: added: in-stable-mitaka
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Related blueprints

Remote bug watches

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