← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1587108] [NEW] Booting an instance from snapshot (which is an instance booted from Cinder volume) fails with: "Volume is smaller than the minimum size specified in image metadata."

 

Public bug reported:

Description
===========

Booting an instance from snapshot (which is an instance booted from
Cinder volume) fails with:

    ERROR (BadRequest): Volume is smaller than the minimum size specified in
    image metadata. Volume size is 1073741824 bytes, minimum size is
    3221225472 bytes. (HTTP 400) (Request-ID:
    req-547c0339-0576-418f-a5a1-72d9ff114401)

[Source: Originally reported by cshastri@xxxxxxxxxx as a downstream bug
report.]

I reproduced this issue with upstream Nova on a single-node DevStack.
Details below:


Steps to reproduce
==================

(1) Create a new Nova flavor (`nova flavor-create <name> <id> <ram> 
    <disk> <vcpus>`):

    $ nova flavor-create m1.test 6 256 3 1

(2) Create a Cinder volume (the UUID here is of 
    cirros-0.3.4-x86_64-disk):

    $ cinder create --display-name cirr-vol1 \
        --image-id 577d309a-b9e8-48fa-b461-28b14e002b4d 1

(3) Boot an instance from the created volume the UUID below is of
    the the Cinder volume created above:

    $ nova boot --boot-volume 360f97a0-6588-46ae-b25a-e5687cc2c0e0 \
        --flavor 6 instance-boot-from-vol

(4) Create a snapshot of the instance we just booted:

    $ nova image-create --poll instance-boot-from-vol \
        snap-of-instance-boot-from-vol

(5) Enumerate Glance images to get the UUID of the snapshot created 
    above:

    $ glance image-list | grep snap-of-instance-boot-from-vol \
        | awk '{print$2}'
    a8b8b3b1-1312-4ece-96b0-2216e4e2d075

(6) Boot an instance using the above snapshot UUID as the image:

    $ nova boot --flavor 6 --image a8b8b3b1-1312-4ece-96b0-2216e4e2d075
        instance-from-snap


Actual Results
==============

    $ nova boot --flavor 6 --image a8b8b3b1-1312-4ece-96b0-2216e4e2d075
        instance-from-snap
    ERROR (BadRequest): Volume is smaller than the minimum size specified in
    image metadata. Volume size is 1073741824 bytes, minimum size is
    3221225472 bytes. (HTTP 400) (Request-ID:
    req-547c0339-0576-418f-a5a1-72d9ff114401)


Expected Results
================

Booting an instance from snapshot of a Cinder volume should succeed


Environment
===========

When I reproduced this issue with upstream Nova on DevStack, I was on 
these commits:
------------------------------------------------------------------------
cinder
1eef3c7 (Merge "NetApp: Add iterator handling to client library", 2016-05-26)
devstack
327f8d1 (Merge "Fix typo in local variable name in time_stop", 2016-05-27)
devstack-tar-installer-plugin
d2d9575 (Added .gitreview, 2016-04-21)
glance
24fae90 (Merge "Normalize the options use singele quotes", 2016-05-24)
keystone
0b65a96 (Merge "Add identity providers integration tests", 2016-05-26)
neutron
d320df5 (Merge "Don't load DNS integration in l3_router_plugin", 2016-05-26)
nova
784f88b (Merge "Updated from global requirements", 2016-05-27)
requirements
2d2d21d (Merge "Raise mock requirement to 2.0", 2016-05-26)
------------------------------------------------------------------------

** Affects: nova
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1587108

Title:
  Booting an instance from snapshot (which is an instance booted from
  Cinder volume) fails with: "Volume is smaller than the minimum size
  specified in image metadata."

Status in OpenStack Compute (nova):
  New

Bug description:
  Description
  ===========

  Booting an instance from snapshot (which is an instance booted from
  Cinder volume) fails with:

      ERROR (BadRequest): Volume is smaller than the minimum size specified in
      image metadata. Volume size is 1073741824 bytes, minimum size is
      3221225472 bytes. (HTTP 400) (Request-ID:
      req-547c0339-0576-418f-a5a1-72d9ff114401)

  [Source: Originally reported by cshastri@xxxxxxxxxx as a downstream
  bug report.]

  I reproduced this issue with upstream Nova on a single-node DevStack.
  Details below:

  
  Steps to reproduce
  ==================

  (1) Create a new Nova flavor (`nova flavor-create <name> <id> <ram> 
      <disk> <vcpus>`):

      $ nova flavor-create m1.test 6 256 3 1

  (2) Create a Cinder volume (the UUID here is of 
      cirros-0.3.4-x86_64-disk):

      $ cinder create --display-name cirr-vol1 \
          --image-id 577d309a-b9e8-48fa-b461-28b14e002b4d 1

  (3) Boot an instance from the created volume the UUID below is of
      the the Cinder volume created above:

      $ nova boot --boot-volume 360f97a0-6588-46ae-b25a-e5687cc2c0e0 \
          --flavor 6 instance-boot-from-vol

  (4) Create a snapshot of the instance we just booted:

      $ nova image-create --poll instance-boot-from-vol \
          snap-of-instance-boot-from-vol

  (5) Enumerate Glance images to get the UUID of the snapshot created 
      above:

      $ glance image-list | grep snap-of-instance-boot-from-vol \
          | awk '{print$2}'
      a8b8b3b1-1312-4ece-96b0-2216e4e2d075

  (6) Boot an instance using the above snapshot UUID as the image:

      $ nova boot --flavor 6 --image a8b8b3b1-1312-4ece-96b0-2216e4e2d075
          instance-from-snap

  
  Actual Results
  ==============

      $ nova boot --flavor 6 --image a8b8b3b1-1312-4ece-96b0-2216e4e2d075
          instance-from-snap
      ERROR (BadRequest): Volume is smaller than the minimum size specified in
      image metadata. Volume size is 1073741824 bytes, minimum size is
      3221225472 bytes. (HTTP 400) (Request-ID:
      req-547c0339-0576-418f-a5a1-72d9ff114401)

  
  Expected Results
  ================

  Booting an instance from snapshot of a Cinder volume should succeed

  
  Environment
  ===========

  When I reproduced this issue with upstream Nova on DevStack, I was on 
  these commits:
  ------------------------------------------------------------------------
  cinder
  1eef3c7 (Merge "NetApp: Add iterator handling to client library", 2016-05-26)
  devstack
  327f8d1 (Merge "Fix typo in local variable name in time_stop", 2016-05-27)
  devstack-tar-installer-plugin
  d2d9575 (Added .gitreview, 2016-04-21)
  glance
  24fae90 (Merge "Normalize the options use singele quotes", 2016-05-24)
  keystone
  0b65a96 (Merge "Add identity providers integration tests", 2016-05-26)
  neutron
  d320df5 (Merge "Don't load DNS integration in l3_router_plugin", 2016-05-26)
  nova
  784f88b (Merge "Updated from global requirements", 2016-05-27)
  requirements
  2d2d21d (Merge "Raise mock requirement to 2.0", 2016-05-26)
  ------------------------------------------------------------------------

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1587108/+subscriptions