Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

image management 3.4 spec create image and bundle instance

chris grzegorczyk edited this page Jun 26, 2013 · 4 revisions

Table of Contents

CreateImage and BundleInstance

This aspect of image management has the objective of simplifying the creation of registered images from instances which are already running in Eucalyptus. Currently, BundleInstance only supports instances running from images which have the windows platform. CreateImage, while present as an operation endpoint, is not currently supported.

In 3.4 these two operations are to become the standard way of taking an already running instance and turning it into a registered image. This goes beyond their scope as defined in AWS. That is, CreateImage/BundleInstance are to work also for linux images (not just windows).

CreateImage

Currently implemented only as the operation endpoint. Needs to:
  1. Do usual request validation (IAM, check instance id is valid and allowed)
  2. Terminates the instance if the NoReboot parameter is set to false
  3. Create a snapshot of the root volume for the running instance referenced by InstanceId
  4. Register a new image using:
    1. The created snapshot
    2. The user provided Name, Description, and BlockDeviceMappings
    3. Include as BlockDeviceMappings any volumes which were attached to the instance at the time it was snapshotted
NOTE: Support for BlockDeviceMappings is important, but second priority to the basic case.

BundleInstance

Currently implemented to only support the windows platform. Needs to:
  1. Remove precondition that checks the platform
  2. Be tested with linux instance-store instances
== BundleInstance from ebs Instances Optionally, as time allows, we would extend BundleInstance to also operate on ebs instances which would create a registered image which is backed by a bundled image. It would:
  1. Perform BundleInstance on the root volume of the ebs instance

CreateImage from instance-store Instances

Optionally, as time allows, we would extend CreateImage to also operate on instance-store instances which would create a registered image which is backed by a snapshot. It would:

  1. Perform the steps of BundleInstance up to the point where a bundle is in an S3 bucket
  2. Invoke the newly added ImportVolume operation from the Import/Export service to import the bundle from the S3 bucket.

Test Plan


tag:rls-3.4



Clone this wiki locally