EC2 terminate allows partial terminations
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Joe Gordon |
Bug Description
When using ec2 it seems like all the instance ids that are given should either be terminated or none should be terminated? Currently it looks like the EC2 terminate operation can partially succeed, then throw an exception (thus signifying failure when actually some instances were terminated).
See: https:/
You will notice that the instance ids are validated inside the loop, instead of beforehand, thus if instance ids 1, 2, 3 are passed in, 3 could be invalid, but 1 and 2 would have been terminated already, but an exception would be thrown for #3, thus sending a error back to the user, when really 2 instances were terminated.
That seems bad. Possible verify before u terminate and report partial success....
Changed in nova: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
tags: | added: ec2 |
Changed in nova: | |
assignee: | nobody → Joe Gordon (joe-gordon0) |
Changed in nova: | |
milestone: | none → folsom-rc1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | folsom-rc1 → 2012.2 |
This also seems valid for reboot instances, stop instances, ......