Merge lp:~jtran/nova/lp744519 into lp:~hudson-openstack/nova/trunk
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Devin Carlen | ||||
Approved revision: | 1252 | ||||
Merged at revision: | 1255 | ||||
Proposed branch: | lp:~jtran/nova/lp744519 | ||||
Merge into: | lp:~hudson-openstack/nova/trunk | ||||
Diff against target: |
111 lines (+28/-8) 2 files modified
nova/api/ec2/cloud.py (+5/-1) nova/tests/test_cloud.py (+23/-7) |
||||
To merge this branch: | bzr merge lp:~jtran/nova/lp744519 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Devin Carlen (community) | Approve | ||
Vish Ishaya (community) | Approve | ||
Brian Waldon (community) | Approve | ||
Review via email: mp+67273@code.launchpad.net |
Commit message
flaw in ec2 cloud api, _get_image method , if doing a search for aki-0000009, yet that image name doesn't exist, it strips off aki- and looks for any image_id 0000009 and if there was an image match that happens to be an ami instead of aki, it will go ahead and deregister the ami instead. That behavior is unintended, so added logic to ensure that the original request image_id matches the type of image being returned from database by matching against container_format attr
Description of the change
flaw in ec2 cloud api, _get_image method , if doing a search for aki-0000009, yet that image name doesn't exist, it strips off aki- and looks for any image_id 0000009 and if there was an image match that happens to be an ami instead of aki, it will go ahead and deregister the ami instead. That behavior is unintended, so added logic to ensure that the original request image_id matches the type of image being returned from database by matching against container_format attr
Looks good, John.