maheshwarirohit87 / typica

Automatically exported from code.google.com/p/typica
Apache License 2.0
0 stars 0 forks source link

Unable to launch EC2 images with security group or user data #94

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Typica 1.7
Changes in rev 312 broke the image launch, "LaunchSpecification." is
prepended to UserData and SecurityGroup parameters when it shouldn't.

Related to Issue #90, may be the same cause

http://code.google.com/p/typica/source/diff?spec=svn329&r=312&format=side&path=/
trunk/java/com/xerox/amazonws/ec2/LaunchConfiguration.java&old_path=/trunk/java/
com/xerox/amazonws/ec2/LaunchConfiguration.java&old=306

API docs:
http://docs.amazonwebservices.com/AWSEC2/2009-11-30/APIReference/ApiReference-qu
ery-RunInstances.html

The exception I'm getting is 

com.xerox.amazonws.ec2.EC2Exception: Client error : The parameter
LaunchSpecification is not recognized
    at com.xerox.amazonws.ec2.Jec2.makeRequestInt(Jec2.java:2289)
    at com.xerox.amazonws.ec2.Jec2.runInstances(Jec2.java:648)

Original issue reported on code.google.com by carlossg on 20 May 2010 at 9:59

GoogleCodeExporter commented 9 years ago
I'll do some testing, but look at page 172 of the ec2 API reference. It 
describes it as I have it coded. Now, 
sometimes the docs are wrong.

Original comment by dkavan...@gmail.com on 4 Jun 2010 at 12:12

GoogleCodeExporter commented 9 years ago
I'll do some testing, but look at page 172 of the ec2 API reference. It 
describes it as I have it coded. Now, 
sometimes the docs are wrong.

Original comment by dkavan...@gmail.com on 4 Jun 2010 at 12:12

GoogleCodeExporter commented 9 years ago
On those two params, I hadn't removed the "LaunchConfiguration." string in 
favor of a passed in prefix on the 
method that setup query params for spot and regular instance requests. Fixed in 
SVN

Original comment by dkavan...@gmail.com on 4 Jun 2010 at 2:52

GoogleCodeExporter commented 9 years ago
David Thx for the quick response. I have confirmed this is working.

Original comment by David.M.Beer@gmail.com on 4 Jun 2010 at 6:30

GoogleCodeExporter commented 9 years ago
Any sense of when a new release will be cut with this fix?  It is a fairly 
major problem to not be able to run instances with security groups.  I'm using 
trunk for now, but wondering how soon you think you'll cut another release 
(maybe a 1.7.1 release?).  Thanks.

Original comment by brian.p...@gmail.com on 15 Jun 2010 at 2:26