[hg] galaxy 3071: Updates instance startup for EC2 to include us...
details: http://www.bx.psu.edu/hg/galaxy/rev/7f3054622e87 changeset: 3071:7f3054622e87 user: Enis Afgan <afgane@gmail.com> date: Wed Oct 21 11:40:51 2009 -0400 description: Updates instance startup for EC2 to include user data as per new AMI's requiremets diffstat: lib/galaxy/cloud/providers/ec2.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diffs (16 lines): diff -r 049083fee997 -r 7f3054622e87 lib/galaxy/cloud/providers/ec2.py --- a/lib/galaxy/cloud/providers/ec2.py Mon Oct 19 17:45:49 2009 -0400 +++ b/lib/galaxy/cloud/providers/ec2.py Wed Oct 21 11:40:51 2009 -0400 @@ -270,9 +270,9 @@ gSecurityGroup.authorize( 'tcp', 22, 22, '0.0.0.0/0' ) # Open SSH port # Start an instance log.debug( "***** Starting instance for UCI '%s'" % uci_wrapper.get_name() ) - #TODO: Get customization scripts remotley and pass volID and user credential data only as user data from here. - userdata = open('/Users/afgane/Dropbox/Galaxy/EC2startupScripts/web/ec2autorun.zip', 'rb').read() - log.debug( 'Using following command: conn.run_instances( image_id=%s, key_name=%s, security_groups=[%s], instance_type=%s, placement=%s )' + #TODO: Once multiple volumes can be attached to a single instance, update 'userdata' composition + userdata = uci_wrapper.get_store_volume_id()+"|"+uci_wrapper.get_access_key()+"|"+uci_wrapper.get_secret_key() + log.debug( 'Using following command: conn.run_instances( image_id=%s, key_name=%s, security_groups=[%s], user_data=[OMITTED], instance_type=%s, placement=%s )' % ( mi_id, uci_wrapper.get_key_pair_name( i_index ), [security_group], uci_wrapper.get_type( i_index ), uci_wrapper.get_uci_availability_zone() ) ) reservation = conn.run_instances( image_id=mi_id, key_name=uci_wrapper.get_key_pair_name( i_index ),
participants (1)
-
Greg Von Kuster