block-device source=blank,dest=volume is allowed as a combination, but won't work

Bug #1347499 reported by Nikola Đipanov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Thang Pham

Bug Description

This is a spin-off of https://bugs.launchpad.net/nova/+bug/1347028

As per the example given there - currently source=blank, destination=volume will not work. We should either make it create an empty volume and attach it, or disallow it in the API.

Tags: volumes
Thang Pham (thang-pham)
Changed in nova:
assignee: nobody → Thang Pham (thang-pham)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

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

Reviewed: https://review.openstack.org/109834
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=9d64a827b9c2c5f332b3e57f6cb818d3f4735d23
Submitter: Jenkins
Branch: master

commit 9d64a827b9c2c5f332b3e57f6cb818d3f4735d23
Author: Thang Pham <email address hidden>
Date: Wed Jul 23 17:15:52 2014 -0400

    Allow empty volumes to be created

    The following patch allows an empty volume to be created and
    attached to an instance at boot time. Today, you can define a
    bootable volume that is sourced from an image, volume, or
    snapshot. However, you cannot define a volume that is sourced
    from 'blank', even though it is one of the source options
    available. For example, the following command will not work:
    nova boot --flavor m1.tiny
    --block-device source=blank,dest=volume,size=1,bootindex=0 test.
    This is because the method used to identify ephemeral volumes
    (new_format_is_ephemeral) believes any block device with
    source_type=blank is an ephemeral, and there is no logic to
    handle volumes where source_type=blank. The following patch
    fixes these bugs by properly identifying ephemeral block
    devices and creating blank/empty volumes when source_type=blank
    and destination_type=volume.

    Change-Id: I5aa9684bfad1749fadff3018b13a225ed8f16fe8
    Closes-Bug: #1347028
    Closes-Bug: #1347499

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → juno-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: juno-3 → 2014.2
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.