Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Why can't I create instance in CentOS host from image created in ubuntu?

It seems that I cannot use images that I created on my Ubuntu set-up in my CentOS set-up. I can create the image in openstack but it fails to create an instance. Anyone know what the best option is, e.g. can I convert it?

Error: image uses a qcow2 feature which is not supported by this qemu version

I see the following error in scheduler.log:

2014-10-07 14:11:16.351 5627 ERROR nova.scheduler.filter_scheduler [req-fce92b3f-7c51-402d-a471-4346d09c193a bf865458a5e44b869e7822ded2f3aaed 126d62bbd3984b0988b0d1a6f3d5cb98] [instance: 02441a7a-72b0-470a-bdae-e64a77eb312a] Error from last host: qa-openstack02 (node qa-openstack02): [u'Traceback (most recent call last):\n', u' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1329, in _build_instance\n set_access_ip=set_access_ip)\n', u' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 393, in decorated_function\n return function(self, context, args, *kwargs)\n', u' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1741, in _spawn\n LOG.exception(_(\'Instance failed to spawn\'), instance=instance)\n', u' File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 68, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', u' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1738, in _spawn\n block_device_info)\n', u' File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 2279, in spawn\n admin_pass=admin_password)\n', u' File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 2648, in _create_image\n project_id=instance[\'project_id\'])\n', u' File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/imagebackend.py", line 192, in cache\n args, *kwargs)\n', u' File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/imagebackend.py", line 383, in create_image\n prepare_template(target=base, max_size=size, args, *kwargs)\n', u' File "/usr/lib/python2.6/site-packages/nova/openstack/common/lockutils.py", line 249, in inner\n return f(args, *kwargs)\n', u' File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/imagebackend.py", line 182, in fetch_func_sync\n fetch_func(target=target, args, *kwargs)\n', u' File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/utils.py", line 653, in fetch_image\n max_size=max_size)\n', u' File "/usr/lib/python2.6/site-packages/nova/virt/images.py", line 81, in fetch_to_raw\n data = qemu_img_info(path_tmp)\n', u' File "/usr/lib/python2.6/site-packages/nova/virt/images.py", line 54, in qemu_img_info\n \'qemu-img\', \'info\', path)\n', u' File "/usr/lib/python2.6/site-packages/nova/utils.py", line 165, in execute\n return processutils.execute(cmd, *kwargs)\n', u' File "/usr/lib/python2.6/site-packages/nova/openstack/common/processutils.py", line 193, in execute\n cmd=\' \'.join(cmd))\n', u'ProcessExecutionError: Unexpected error while running command.\nCommand: env LC_ALL=C LANG=C qemu-img info /var/lib/nova/instances/_base/0866c58df4a6f20f22ab764b7acb1c394b3e202b.part\nExit code: 1\nStdout: \'\'\nStderr: "\'image\' uses a qcow2 feature which is not supported by this qemu version: QCOW version 3\nCould not open \'/var/lib/nova/instances/_base/0866c58df4a6f20f22ab764b7acb1c394b3e202b.part\': Operation not supported\n"\n']

I created the image via virt-install on an Ubuntu set-up as follows.

virt-install -n mick-testVm -r 2048 --vcpus=1 --network bridge=virbr0 --os-variant=rhel6 --disk path=/images/mick-testVm.qcow2,format=qcow2,size=20 -l http://10.10.12.254/CENTOS6.4-x86_64-ES -x "ks=http://10.10.12.254/client_files/openstack/image-templates/mick-testVm/mick-testVm.cfg text console=tty0 utf8 console=ttyS0,115200"

click to hide/show revision 2
No.2 Revision

Why can't I create instance in CentOS host from image created in ubuntu?

It seems that I cannot use images that I created on my Ubuntu set-up in my CentOS set-up. I can create the image in openstack OpenStack but it fails to create an instance. Anyone know what the best option is, e.g. can I convert it?

Error: image uses a qcow2 feature which is not supported by this qemu version

version

I see the following error in scheduler.log:scheduler.log:

2014-10-07 14:11:16.351 5627 ERROR nova.scheduler.filter_scheduler [req-fce92b3f-7c51-402d-a471-4346d09c193a bf865458a5e44b869e7822ded2f3aaed 126d62bbd3984b0988b0d1a6f3d5cb98] [instance: 02441a7a-72b0-470a-bdae-e64a77eb312a] Error from last host: qa-openstack02 (node qa-openstack02): [u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1329, in _build_instance\n    set_access_ip=set_access_ip)\n', u'  File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 393, in decorated_function\n    return function(self, context, args, *kwargs)\n', *args, **kwargs)\n', u'  File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1741, in _spawn\n    LOG.exception(_(\'Instance failed to spawn\'), instance=instance)\n', u'  File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 68, in __exit__\n    six.reraise(self.type_, self.value, self.tb)\n', u'  File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1738, in _spawn\n    block_device_info)\n', u'  File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 2279, in spawn\n    admin_pass=admin_password)\n', u'  File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 2648, in _create_image\n    project_id=instance[\'project_id\'])\n', u'  File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/imagebackend.py", line 192, in cache\n    args, *kwargs)\n', *args, **kwargs)\n', u'  File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/imagebackend.py", line 383, in create_image\n    prepare_template(target=base, max_size=size, args, *kwargs)\n', *args, **kwargs)\n', u'  File "/usr/lib/python2.6/site-packages/nova/openstack/common/lockutils.py", line 249, in inner\n    return f(args, *kwargs)\n', f(*args, **kwargs)\n', u'  File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/imagebackend.py", line 182, in fetch_func_sync\n    fetch_func(target=target, args, *kwargs)\n', *args, **kwargs)\n', u'  File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/utils.py", line 653, in fetch_image\n    max_size=max_size)\n', u'  File "/usr/lib/python2.6/site-packages/nova/virt/images.py", line 81, in fetch_to_raw\n    data = qemu_img_info(path_tmp)\n', u'  File "/usr/lib/python2.6/site-packages/nova/virt/images.py", line 54, in qemu_img_info\n    \'qemu-img\', \'info\', path)\n', u'  File "/usr/lib/python2.6/site-packages/nova/utils.py", line 165, in execute\n    return processutils.execute(cmd, *kwargs)\n', processutils.execute(*cmd, **kwargs)\n', u'  File "/usr/lib/python2.6/site-packages/nova/openstack/common/processutils.py", line 193, in execute\n    cmd=\' \'.join(cmd))\n', u'ProcessExecutionError: Unexpected error while running command.\nCommand: env LC_ALL=C LANG=C qemu-img info /var/lib/nova/instances/_base/0866c58df4a6f20f22ab764b7acb1c394b3e202b.part\nExit code: 1\nStdout: \'\'\nStderr: "\'image\' uses a qcow2 feature which is not supported by this qemu version: QCOW version 3\nCould 3\\nCould not open \'/var/lib/nova/instances/_base/0866c58df4a6f20f22ab764b7acb1c394b3e202b.part\': Operation not supported\n"\n']

supported\\n"\n']

I created the image via virt-install on an Ubuntu set-up as follows.

virt-install -n mick-testVm -r 2048 --vcpus=1 --network bridge=virbr0 --os-variant=rhel6 --disk path=/images/mick-testVm.qcow2,format=qcow2,size=20 -l http://10.10.12.254/CENTOS6.4-x86_64-ES -x "ks=http://10.10.12.254/client_files/openstack/image-templates/mick-testVm/mick-testVm.cfg text console=tty0 utf8 console=ttyS0,115200"

console=ttyS0,115200"