commit 7c4a5b1ee729a4e9bb6add2a6b6423f9bbd1c0d0
Author: Matt Riedemann <email address hidden>
Date: Sat Sep 24 11:24:40 2016 -0400
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 2fe5daeb5fcd2750b0eb083fc5c8bfd3fdb992e2)
Reviewed: https:/ /review. openstack. org/376999 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=7c4a5b1ee72 9a4e9bb6add2a6b 6423f9bbd1c0d0
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit 7c4a5b1ee729a4e 9bb6add2a6b6423 f9bbd1c0d0
Author: Matt Riedemann <email address hidden>
Date: Sat Sep 24 11:24:40 2016 -0400
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: Ifaa150fda393e2 b49114e30dd5e30 e5bf52b4ed1 0b0eb083fc5c8bf d3fdb992e2)
Closes-Bug: #1616938
(cherry picked from commit 2fe5daeb5fcd275