peterknife / boto

Automatically exported from code.google.com/p/boto
0 stars 0 forks source link

launching an instance into a VPC subnet fails #521

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Create a VPC and subnet using the VPC wizard in the aws vpc console
2. Launch an instance (public or otherwise) into vpc using the subnet_id 
parameter in run_instances

What is the expected output? What do you see instead?

I expect I get back the instance ID as with a regular EC2 deployment, but 
instead I get the following exception:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/faisal/work/boto/boto/ec2/connection.py", line 589, in run_instances
    return self.get_object('RunInstances', params, Reservation, verb='POST')
  File "/Users/faisal/work/boto/boto/connection.py", line 702, in get_object
    raise self.ResponseError(response.status, response.reason, body)
boto.exception.EC2ResponseError: EC2ResponseError: 400 Bad Request
<?xml version="1.0" encoding="UTF-8"?>
<Response><Errors><Error><Code>InvalidParameterCombination</Code><Message>The 
parameter groupName cannot be used with the parameter 
subnet</Message></Error></Errors><RequestID>f7937231-e93b-4027-a648-3ba01a5a3072
</RequestID></Response>

Launching without the subnet_id works fine (into EC2).

What version of the product are you using? On what operating system?

I'm currently on git master.

Please provide any additional information below.

I can generate debug logs and send them if you think it'll help.

Original issue reported on code.google.com by faisal.p...@druva.com on 2 Jun 2011 at 2:49

GoogleCodeExporter commented 9 years ago
Fixed with Patch: 
  https://github.com/boto/boto/commit/43e2eba812c10687a61b84cd8184747ac30bf67f

ec2_conn.run_instances(
    ....
   security_group_ids=["sg-12345678"],
    ....
)

Original comment by elconas...@googlemail.com on 15 Jun 2011 at 8:43

GoogleCodeExporter commented 9 years ago
Marking as fixed. 

Original comment by Mitch.Ga...@gmail.com on 15 Jun 2011 at 11:04