run_instances empty list result may be invalid
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
txAWS |
New
|
Undecided
|
Unassigned |
Bug Description
Thomas and I had a long discussion today about the behaviour of txaws.ec2.
"If Amazon EC2 cannot launch the minimum number AMIs you request, no instances launch."
The docs don't say whether an error is returned, and we could find no specific error for Amazon not being able to launch a minimum requested instance count.
If the behaviour of EC2 can be confirmed in practice to return an error in the event of not being able to start up the minimum requested number of instances, the txAWS EC2 client's run_instances method needs to be updated to account for that.
If the behaviour of EC2 can be confirmed to never return an non-error result with no instances in it, then the txAWS EC2 client's run_instances method needs to be changed.
I don't think there is anything to change in txaws? If an error is returned, it's already turned into an exception.
My point is, today txaws doesn't return an empty list in run_instances.