When the "bundle Instance" button is clicked, it does not do anything. In aws_ec2_lib_display_instance_info_submit() function, the bundle instance switch case is simply

    case t('Bundle Instance'):

      drupal_set_message( t('Trying for Bundle Image: @instance_id', array('@instance_id' => $instance_id) ) );
      drupal_goto( $cloud_menu_path . '/instances/bundle_instance');
      return;

The proper instance bundling needs to be implemented.

Comments

baldwinlouie’s picture

Status: Active » Postponed

Deferring for now. Will come back and implement the "Create Image" functionality for EBS backed amis.

baldwinlouie’s picture

Status: Postponed » Active
baldwinlouie’s picture

Status: Active » Fixed

Added a lot of new functionality to make Bundle Instance more complete.

  1. For EBS backed Instance, added ability to call the create_image in the Amazon API. Added associated UI so users can specify image name and description as well as the ability to reboot or not reboot the image as per: http://docs.amazonwebservices.com/AWSSDKforPHP/latest/#m=AmazonEC2/creat...
  2. Added new column in the cloud_aws_images table and storing whether the AMI is S3 or EBS backed. Depending on this flag, the Instance detail page will show either "Bundle Instance" or "Backup Instance". The latter is calling the create_image API.
  3. Bundle Instance script is fully working now.
  4. Add bundle_id and timestamp into the cloud_bundle_instance table. The bundle_id is used to update the status of an in-progress bundle. This fixes a bug where if there are multiple rows with the same instance_id (for example, bundle an instance multiple times), the status is blindly updated in the aws_cloud_db_bundle_instance_update_status() function
  5. Added code to prevent bundling until an instance has been successfully bundled. Messages are now shown on the bundle form telling the user if a bundle is currently in progress or if it failed.
  6. The bundle script "aws_cloud_bundle_image_ami_tools.sh" takes too long to execute. There might be occasions where cron will time out. This script is now put in the background.
  7. The aws_cloud_bundle_image_ami_tools.sh script has been cleaned up. Added Region into the script. This was needed for the ec2-upload-bundle command

Code checked in:
http://drupalcode.org/project/cloud.git/commit/18467c0

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.