Bug 1258725

Summary: KVM on rhel 6.7 does not support qcow2 (v3) images resulting in error 500
Product: Red Hat OpenStack Reporter: Amit Ugol <augol>
Component: openstack-novaAssignee: Eoghan Glynn <eglynn>
Status: CLOSED WONTFIX QA Contact: nlevinki <nlevinki>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.0 (RHEL 6)CC: berrange, dasmith, eglynn, kchamart, ndipanov, pbrady, sbauza, sferdjao, sgordon, vromanso, yeylon
Target Milestone: ---   
Target Release: 8.0 (Liberty)   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-09-11 13:00:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Amit Ugol 2015-09-01 06:15:32 UTC
Description of problem:
Trying to launch a qcow2 image resulted in this error:
{"message": "No valid host was found. ", "code": 500, "details": "  File \"/usr/lib/python2.6/site-packages/nova/scheduler/filter_scheduler.py\", line 114, in schedule_run_instance
raise exception.NoValidHost(reason=\"\") 

However in the scheduler log:
ProcessExecutionError: Unexpected error while running command.
Command: env LC_ALL=C LANG=C qemu-img info /var/lib
/nova/instances/_base/e7fbf8c282a9eec69332520ca56b88155bb07068.part
Exit code: 1
Stdout: u\'\'
Stderr: u"\'image\' uses a qcow2 feature which is not supported by this qemu version: QCOW version 3\
Could not open '/var/lib/nova/instances/_base/e7fbf8c282a9eec69332520ca56b88155bb07068.part\': Operation not supported

The image used was taken from here:
https://getfedora.org/en/cloud/download/


Version-Release number of selected component (if applicable):
openstack-nova-*-2014.1.5-1.el6ost.noarch


How reproducible:
Always


Steps to Reproduce:
1. download the latest image from the link above
2. glance image-create --name fedora-22 --disk-format=qcow2 --container-format=bare --is-public=True --file=Fedora-Cloud-Base-22-20150521.x86_64.qcow2
3. try to boot the image with nova

Actual results:
"message": "No valid host was found. ", "code": 500


Expected results:
image uses a qcow2 feature which is not supported by this qemu version: QCOW version 3 (error code 501)

Additional info:

Comment 3 Eoghan Glynn 2015-09-11 13:00:47 UTC
There is no way to provide the requested information in the error error message, as there could be a mix of RHEL 6 & 7 nodes in the OpenStack deployment.

In any case, not the type of info that OpenStack would ever expose to users.