Skip flavor's disk check when booting from volume

Bug #1638581 reported by Mate Lakat
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Confirmed
High
Mateusz Kowalski

Bug Description

To reproduce:
 - Have an image which specifies minDisk as non-zero:
   wget http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img
   glance image-create --name testimg-explicit-mindisk --min-disk 1 --disk-format=qcow2 --file cirros-0.3.4-x86_64-disk.img --container-format=bare
 - Have a flavor which has a zero disk requirement:
   nova flavor-create --ephemeral 0 --swap 0 tstflav tstflav 512 0 1

On Horizon follow these steps:
 - Instances -> Launch Instance
 - Give a name for the instance, move to Source tab
 - Boot source is image, select yes to create a volume
 - Select testimg-explicit-mindisk for image
 - Move to Flavor tab

See that flavors with 0 disk (like `tstflav`) cannot be selected.

The yellow triangle shows the following message:

The selected image source requires a flavor with at least 1 GB of root disk. Select a flavor with a larger root disk or use a different image source.

Itxaka Serrano (itxaka)
Changed in horizon:
status: New → Confirmed
Mate Lakat (mate-lakat)
Changed in horizon:
assignee: nobody → Mate Lakat (mate-lakat)
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/393250

Changed in horizon:
status: Confirmed → In Progress
Revision history for this message
Mate Lakat (mate-lakat) wrote : Re: Flavor with zero disk cannot be selected while booting from volume

The same thing happens on Liberty, but the UI is different - as it is not using the new angular workflow.

tags: added: newton-backport-potential
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/396685

Changed in horizon:
assignee: Mate Lakat (mate-lakat) → Mateusz Kowalski (makowals)
Revision history for this message
Mateusz Kowalski (makowals) wrote : Re: Flavor with zero disk cannot be selected while booting from volume

I have no idea why assignee was changed (sorry, new into launchpad), but the review I've created is "on top" of Mate's, not instead

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on horizon (master)

Change abandoned by Mateusz Kowalski (<email address hidden>) on branch: master
Review: https://review.openstack.org/396685
Reason: Amended the change into #393250 -- makes more sense to have it as a big one

Revision history for this message
Ying Zuo (yingzuo) wrote : Re: Flavor with zero disk cannot be selected while booting from volume

Bug 1643100 reported other issues related to flavors with zero disk. If those issues will be resolved in this ticket, please mark that as a duplicate. Thanks.

https://bugs.launchpad.net/horizon/+bug/1643100

Revision history for this message
Ying Zuo (yingzuo) wrote :

Opened bugs #1643953 and #1643954 as per discussion on https://review.openstack.org/#/c/393250.

Revision history for this message
Mate Lakat (mate-lakat) wrote :

Ying, Reading your comments on the proposed change - If I understand correctly, what you are suggesting is that if a flavor's disk size is zero, no disk-size check should be performed regardless of booting from volume or from image. That seems to align with the official documentation: http://docs.openstack.org/admin-guide/compute-flavors.html

I would say let's file a new ticket for that, and modify this ticket's description to:
- Skip Flavor's disk check when booting from volume

And the new bug's description should be:
- Don't check flavors with zero root disk

Ideas?

Revision history for this message
Ying Zuo (yingzuo) wrote :

Mate,
That's correct. Flavor with zero disk is a special case and should not be blocked by the disk size check. I will open a new defect then.

Revision history for this message
Ying Zuo (yingzuo) wrote :

I reopened the original ticket https://bugs.launchpad.net/horizon/+bug/1643100.

Revision history for this message
Mate Lakat (mate-lakat) wrote :
summary: - Flavor with zero disk cannot be selected while booting from volume
+ Skip flavor's disk check when booting from volume
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on horizon (stable/liberty)

Change abandoned by Richard Jones (<email address hidden>) on branch: stable/liberty
Review: https://review.openstack.org/396063
Reason: We are no longer patching Liberty.

Revision history for this message
Mateusz Kowalski (makowals) wrote :

This is the current patch for master -- https://review.openstack.org/#/c/393250/

Akihiro Motoki (amotoki)
tags: removed: newton-backport-potential
Revision history for this message
Chris Wright (chwright) wrote :

Wondering the status of this fix - I believe the correct result should be the flavor check should ignore the configured root disk size when a cinder volume is being used for the boot/root drive. Through the API you can use a flavor / image combination with any root drive size configured on the flavor when a cinder volume is used instead (as long as the cinder volume is large enough to fit the chosen image) - however horizon incorrectly prohibits this with its validation checks.

Akihiro Motoki (amotoki)
Changed in horizon:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on horizon (master)

Change abandoned by Ivan Kolodyazhny (<email address hidden>) on branch: master
Review: https://review.openstack.org/393250
Reason: This review is > 4 months without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

Ivan Kolodyazhny (e0ne)
Changed in horizon:
status: In Progress → Confirmed
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.