XenAPINFS: Volume always uploaded as vhd/ovf

Bug #1131291 reported by Mate Lakat
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released
Mate Lakat

Bug Description

# Create a qcow Image from a Volume

## Step 1. Generic Setup
You have a cinder box running XenAPINFS

    cd devstack
    . openrc admin
    alias getid="sed -e 's/[ |]*//' -e 's/ .*//'"

## Step 2. Upload a XenServer image

    glance image-create --name demoimage \
    --copy-from=https://github.com/downloads/citrix-openstack/warehouse/cirros-0.3.0-x86_64-disk.vhd.tgz \
    --container-format=ovf --disk-format=vhd

Wait until it is active, and get its id:

    IMGID=$(glance image-list | grep demoimage | getid)

## Step 2. Create a Volume

    cinder create --display_name="demovolume" --image-id=$IMGID 1

Wait until it is available, and get its id:

    VOLID=$(cinder list | grep "demovolume" | getid)

## Step 3. Upload as a qcow image

    cinder upload-to-image --container-format=bare --disk-format=qcow2 $VOLID uploaded_image

## Problem
The uploaded image is in vhd/ovf format, because

    glance image-list | grep uploaded_image


    ... | vhd | ovf ...

Mate Lakat (mate-lakat)
Changed in cinder:
assignee: nobody → Mate Lakat (mate-lakat)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/22576

Changed in cinder:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/22576
Committed: http://github.com/openstack/cinder/commit/edbfe4c78cca6c4dd8b8a164de86b1fa4c210ab9
Submitter: Jenkins
Branch: master

commit edbfe4c78cca6c4dd8b8a164de86b1fa4c210ab9
Author: Mate Lakat <email address hidden>
Date: Thu Feb 21 17:10:42 2013 +0000

    XenAPINFS: Fix Volume always uploaded as vhd/ovf

    Fixes bug 1131291

    copy_volume_to_image was always using the glance plugin to do the
    upload, and was ignoring the users request. Thus the image was always
    uploaded as vhd/ovf. This patch is using the image utils to fix the
    generic case.

    Change-Id: If12c3d175b3d4437305ac4d2f954a2a42ee3a3c1

Changed in cinder:
status: In Progress → Fix Committed
Changed in cinder:
milestone: none → grizzly-rc1
importance: Undecided → High
Thierry Carrez (ttx)
Changed in cinder:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: grizzly-rc1 → 2013.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.