Comment 13 for bug 1616938

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/newton)

Reviewed: https://review.openstack.org/376999
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=7c4a5b1ee729a4e9bb6add2a6b6423f9bbd1c0d0
Submitter: Jenkins
Branch: stable/newton

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)