Image creation needs a size parameter

Bug #1057806 reported by Joshua Harlow
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Joshua Harlow

Bug Description

It seems like a bug was introduced that should of formatted the qemu create options as a comma separated list.

Revision history for this message
Joshua Harlow (harlowja) wrote :

2012-09-27 22:01:27 ERROR nova.compute.manager [req-2a609574-ec50-4127-a55f-898d31e39582 9cfba3bf8cf04c5ab0c4613a98c50df6 27b0e44aa8ba465586b52feff8aa2d14] [instance: d0db9727-9598-49eb-891c-c95f60f2597f] Build error: ['Traceback (most recent call last):\n', ' File "/home/harlowja/openstack/nova/app/nova/compute/manager.py", line 501, in _run_instance\n injected_files, admin_password)\n', ' File "/home/harlowja/openstack/nova/app/nova/compute/manager.py", line 748, in _spawn\n block_device_info)\n', ' File "/home/harlowja/openstack/nova/app/nova/exception.py", line 117, in wrapped\n temp_level, payload)\n', ' File "/usr/lib64/python2.6/contextlib.py", line 23, in __exit__\n self.gen.next()\n', ' File "/home/harlowja/openstack/nova/app/nova/exception.py", line 92, in wrapped\n return f(*args, **kw)\n', ' File "/home/harlowja/openstack/nova/app/nova/virt/libvirt/driver.py", line 1060, in spawn\n admin_pass=admin_password)\n', ' File "/home/harlowja/openstack/nova/app/nova/virt/libvirt/driver.py", line 1314, in _create_image\n project_id=instance[\'project_id\'])\n', ' File "/home/harlowja/openstack/nova/app/nova/virt/libvirt/imagebackend.py", line 126, in cache\n *args, **kwargs)\n', ' File "/home/harlowja/openstack/nova/app/nova/virt/libvirt/imagebackend.py", line 175, in create_image\n copy_qcow2_image(base, self.path, size)\n', ' File "/home/harlowja/openstack/nova/app/nova/utils.py", line 752, in inner\n retval = f(*args, **kwargs)\n', ' File "/home/harlowja/openstack/nova/app/nova/virt/libvirt/imagebackend.py", line 171, in copy_qcow2_image\n libvirt_utils.create_cow_image(qcow2_base, target)\n', ' File "/home/harlowja/openstack/nova/app/nova/virt/libvirt/utils.py", line 110, in create_cow_image\n execute(*cmd)\n', ' File "/home/harlowja/openstack/nova/app/nova/virt/libvirt/utils.py", line 53, in execute\n return utils.execute(*args, **kwargs)\n', ' File "/home/harlowja/openstack/nova/app/nova/utils.py", line 206, in execute\n cmd=\' \'.join(cmd))\n', "ProcessExecutionError: Unexpected error while running command.\nCommand: qemu-img create -f qcow2 -o backing_file=/home/openstack/instances/_base/0fbb91a9816031daaf5acf504aeac1ec4182c20c cluster_size=65536 /home/openstack/instances/instance-00000001/disk\nExit code: 1\nStdout: ''\nStderr: 'qemu-img: Invalid image size specified! You may use k, M, G or T suffixes for \\nqemu-img: kilobytes, megabytes, gigabytes and terabytes.\\n'\n"]

Changed in nova:
assignee: nobody → Joshua Harlow (harlowja)
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/13800

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

Reviewed: https://review.openstack.org/13800
Committed: http://github.com/openstack/nova/commit/fb0b1e953a8c85b34303ef3e8eed70a818f92d64
Submitter: Jenkins
Branch: master

commit fb0b1e953a8c85b34303ef3e8eed70a818f92d64
Author: Joshua Harlow <email address hidden>
Date: Thu Sep 27 15:23:45 2012 -0700

    Fixes csv list required for qemu-img create.

    Makes the list sent to qemu-img create be formatted correctly. Fixes bug 1057806.

    Change-Id: I7f0ec3617754f9251d582f4265eb771859cb6e15

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