nova/nova/image
Matt Riedemann 7c4a5b1ee7 Determine disk_format for volume-backed snapshot from schema
Xen deployments don't support qcow2 images which is what the
glance v2 API code in nova defaults to, so basically you can't
create a snapshot of a volume-backed instance with glance v2 and
Xen right now.

This change uses the glance v2 image schema to determine the
disk_format to use based on some rules:

1. Look for a preferred disk_format using an ordered list.
2. If we still can't figure it out, just use the first
   supported disk_format available.

Change-Id: Ifaa150fda393e2b49114e30dd5e30e5bf52b4ed1
Closes-Bug: #1616938
(cherry picked from commit 2fe5daeb5f)
2016-09-26 14:07:20 -04:00
..
download Adding missing log translation hints 2016-06-23 01:14:28 -07:00
__init__.py Align internal image API with volume and network 2014-05-21 16:30:10 -04:00
api.py Fix description of parameters in nova functions 2015-02-10 11:44:45 +04:00
glance.py Determine disk_format for volume-backed snapshot from schema 2016-09-26 14:07:20 -04:00
s3.py Trivial-Fix: Fix typos 2016-06-13 06:41:08 +00:00