Flavor's disk is too small for requested image.

Bug #1325670 reported by Aaron Rosen
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Glance
New
Undecided
Unassigned
OpenStack Compute (nova)
In Progress
Undecided
Aaron Rosen

Bug Description

I uploaded an image to glance and booted it. Once it landed on a compute node it tried to download the image to the compute node over and over and fails with this exception and never goes to error state.

2014-06-02 10:53:19.651 ERROR nova.compute.manager [req-83d5f514-5650-4fd2-8c01-1680428b7419 demo demo] [instance: 4cb1ec29-94d0-4ad2-8f64-eaea80dcd12a] Instance failed to spawn
2014-06-02 10:53:19.651 TRACE nova.compute.manager [instance: 4cb1ec29-94d0-4ad2-8f64-eaea80dcd12a] Traceback (most recent call last):
2014-06-02 10:53:19.651 TRACE nova.compute.manager [instance: 4cb1ec29-94d0-4ad2-8f64-eaea80dcd12a] File "/opt/stack/nova/nova/compute/manager.py", line 2059, in _build_resources
2014-06-02 10:53:19.651 TRACE nova.compute.manager [instance: 4cb1ec29-94d0-4ad2-8f64-eaea80dcd12a] yield resources
2014-06-02 10:53:19.651 TRACE nova.compute.manager [instance: 4cb1ec29-94d0-4ad2-8f64-eaea80dcd12a] File "/opt/stack/nova/nova/compute/manager.py", line 1962, in _build_and_run_instan
ce
2014-06-02 10:53:19.651 TRACE nova.compute.manager [instance: 4cb1ec29-94d0-4ad2-8f64-eaea80dcd12a] block_device_info=block_device_info)
2014-06-02 10:53:19.651 TRACE nova.compute.manager [instance: 4cb1ec29-94d0-4ad2-8f64-eaea80dcd12a] File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 2281, in spawn
2014-06-02 10:53:19.651 TRACE nova.compute.manager [instance: 4cb1ec29-94d0-4ad2-8f64-eaea80dcd12a] admin_pass=admin_password)
2014-06-02 10:53:19.651 TRACE nova.compute.manager [instance: 4cb1ec29-94d0-4ad2-8f64-eaea80dcd12a] File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 2655, in _create_image
2014-06-02 10:53:19.651 TRACE nova.compute.manager [instance: 4cb1ec29-94d0-4ad2-8f64-eaea80dcd12a] project_id=instance['project_id'])
2014-06-02 10:53:19.651 TRACE nova.compute.manager [instance: 4cb1ec29-94d0-4ad2-8f64-eaea80dcd12a] File "/opt/stack/nova/nova/virt/libvirt/imagebackend.py", line 192, in cache
2014-06-02 10:53:19.651 TRACE nova.compute.manager [instance: 4cb1ec29-94d0-4ad2-8f64-eaea80dcd12a] *args, **kwargs)
2014-06-02 10:53:19.651 TRACE nova.compute.manager [instance: 4cb1ec29-94d0-4ad2-8f64-eaea80dcd12a] File "/opt/stack/nova/nova/virt/libvirt/imagebackend.py", line 384, in create_image
2014-06-02 10:53:19.651 TRACE nova.compute.manager [instance: 4cb1ec29-94d0-4ad2-8f64-eaea80dcd12a] prepare_template(target=base, max_size=size, *args, **kwargs)
2014-06-02 10:53:19.651 TRACE nova.compute.manager [instance: 4cb1ec29-94d0-4ad2-8f64-eaea80dcd12a] File "/opt/stack/nova/nova/openstack/common/lockutils.py", line 249, in inner
2014-06-02 10:53:19.651 TRACE nova.compute.manager [instance: 4cb1ec29-94d0-4ad2-8f64-eaea80dcd12a] return f(*args, **kwargs)
2014-06-02 10:53:19.651 TRACE nova.compute.manager [instance: 4cb1ec29-94d0-4ad2-8f64-eaea80dcd12a] File "/opt/stack/nova/nova/virt/libvirt/imagebackend.py", line 182, in fetch_func_s
ync
2014-06-02 10:53:19.651 TRACE nova.compute.manager [instance: 4cb1ec29-94d0-4ad2-8f64-eaea80dcd12a] fetch_func(target=target, *args, **kwargs)
2014-06-02 10:53:19.651 TRACE nova.compute.manager [instance: 4cb1ec29-94d0-4ad2-8f64-eaea80dcd12a] File "/opt/stack/nova/nova/virt/libvirt/utils.py", line 660, in fetch_image
2014-06-02 10:53:19.651 TRACE nova.compute.manager [instance: 4cb1ec29-94d0-4ad2-8f64-eaea80dcd12a] max_size=max_size)
2014-06-02 10:53:19.651 TRACE nova.compute.manager [instance: 4cb1ec29-94d0-4ad2-8f64-eaea80dcd12a] File "/opt/stack/nova/nova/virt/images.py", line 110, in fetch_to_raw
2014-06-02 10:53:19.651 TRACE nova.compute.manager [instance: 4cb1ec29-94d0-4ad2-8f64-eaea80dcd12a] raise exception.FlavorDiskTooSmall()
2014-06-02 10:53:19.651 TRACE nova.compute.manager [instance: 4cb1ec29-94d0-4ad2-8f64-eaea80dcd12a] FlavorDiskTooSmall: Flavor's disk is too small for requested image.
2014-06-02 10:53:19.651 TRACE nova.compute.manager [instance: 4cb1ec29-94d0-4ad2-8f64-eaea80dcd12a]

Aaron Rosen (arosen)
Changed in nova:
assignee: nobody → Aaron Rosen (arosen)
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/97328

Changed in nova:
status: New → In Progress
Revision history for this message
Vish Ishaya (vishvananda) wrote :

FYI if min_disk is set properly in the image, it will fail on download. Glance should be automatically setting min_disk from virtual_size when it can. Virtual size of qcow images can be determined via qemu-img info with just the first 512 bytes or so of the image.

Revision history for this message
Vish Ishaya (vishvananda) wrote :

s/fail on download/throw an error in nova api/

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

Change abandoned by Aaron Rosen (<email address hidden>) on branch: master
Review: https://review.openstack.org/97328

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.