← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1332560] Re: Image is created without any format when instance snapshot is created

 

Christopher - I tested this issue with the latest master and now I am able to boot the instance successfully from 0 bytes image which 
is internally referring to volume snapshot to boot the instance from it. It is mentioned that the new image is simply a bucket of properties (particularly the block device mapping, kernel and ramdisk IDs) with no image data, so I think this is the reason for no image format here. 

** Changed in: nova
       Status: New => Invalid

-- 
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/1332560

Title:
  Image is created without any format when instance snapshot is created

Status in OpenStack Compute (Nova):
  Invalid

Bug description:
  When an instance is created using boot from volume, boot from
  image(creates a new volume) or boot from volume snapshot(creates a new
  volume), and after creating image snapshot from this instance an image
  of 0 bytes is created which is neither public nor protected and have
  no format defined.

  Steps to reproduce using Horizon:

  Case 1: Boot instance from volume

  1. Go to Project --> Compute --> Volumes and click on 'Create Volume'.
  2. Provide volume name, Size and select 'Image' from 'Volume Source' drop-down and an image from 'Use image as a source' drop-down.
  3. Click on 'Create Volume' button and a bootable volume will be created.
  4. Go to Project --> Compute --> Instances and click on 'Launch Instance' button from the top right.
  5. Provide instance name, select 'Boot from volume' as 'Instance Boot Source' and a bootable volume as 'volume'.
  6. Click on 'Launch' button.
  7. You will be redirected to instance list page.
  8. Click on 'Create Snapshot' to create a snapshot of this instance.
  9. In this case a new image of 0 bytes and a volume snapshot will be created.
  10. You will be redirected to image list where you will see a new image created with 0 bytes.
  11. Neither this image is public nor protected.
  12. No format is defined for this image.

  Case 2: Boot instance from image(creates a new volume)

  1. Go to Project --> Compute --> Instances and click on 'Launch Instance' button from the top right.
  2. Provide instance name, select 'Boot from image(creates a new volume)' as 'Instance Boot Source' and an image from the drop-down.
  3. Click on 'Launch' button.
  4. A new volume will be created and will be attached to this instance.
  5. You will be redirected to instance list page.
  6. Click on 'Create Snapshot' to create a snapshot of this instance.
  7. In this case a new image of 0 bytes and a volume snapshot will be created.
  8. You will be redirected to image list where you will see a new image created with 0 bytes.
  9. Neither this image is public nor protected.
  10. No format is defined for this image.

  Case 3: Boot instance from volume snapshot(creates a new volume)

  1. Go to Project --> Compute --> volumes and click on 'Create Volume' button.
  2. Create a bootable volume same as case 1.
  3. From volumes list page you will see 'more' button with respect to each volume.
  4. Click on 'more', a drop-down will open, select 'Create Snapshot' from this drop-down.
  5. A snapshot will be created for this volume.
  6. Go to Project --> Compute --> Instances and click on 'Launch Instance' button from the top right.
  7. Provide instance name, select 'Boot from image(creates a new volume)' as 'Instance Boot Source' and an image from the drop-down.
  8. Click on 'Launch' button.
  9. A new volume will be created and will be attached to this instance.
  10. You will be redirected to instance list page.
  11. Click on 'Create Snapshot' to create a snapshot of this instance.
  12. In this case a new image of 0 bytes and a volume snapshot will be created.
  13. You will be redirected to image list where you will see a new image created with 0 bytes.
  14. Neither this image is public nor protected.
  15. No format is defined for this image.

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


References