Package starcluster :: Module image :: Class EC2ImageCreator
[hide private]
[frames] | no frames]

Class EC2ImageCreator

source code


Class for creating a new AMI from a running instance

instance must be a starcluster.node.Node instance

Instance Methods [hide private]
 
__init__(self, instance=None, aws_access_key_id=None, aws_secret_access_key=None, aws_user_id=None, ec2_cert=None, ec2_private_key=None, prefix='image', bucket=None, description=None, kernel_id=None, ramdisk_id=None, remove_image_files=False, **kwargs)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
create_image(*arg, **kargs)
Raw timing function
source code
 
_remove_image_files(self) source code
 
_transfer_pem_files(self)
copy pem files to /mnt on image host
source code
 
_bundle_image(*arg, **kargs)
Raw timing function
source code
 
_upload_image(*arg, **kargs)
Raw timing function
source code
 
_cleanup(self) source code
 
_cleanup_pem_files(self) source code
 
_register_image(self) source code
 
__clean_private_data(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, instance=None, aws_access_key_id=None, aws_secret_access_key=None, aws_user_id=None, ec2_cert=None, ec2_private_key=None, prefix='image', bucket=None, description=None, kernel_id=None, ramdisk_id=None, remove_image_files=False, **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

create_image(*arg, **kargs)

source code 

Raw timing function

Decorators:
  • @print_timing

_bundle_image(*arg, **kargs)

source code 

Raw timing function

Decorators:
  • @print_timing

_upload_image(*arg, **kargs)

source code 

Raw timing function

Decorators:
  • @print_timing