* Refactors ec2utils.glance_id_to_id to create a new S3Image
object associating a glance id to an internal id if such a
mapping does not already exist. Previously, only calls to nova.api.ec2.cloud.CloudController.describe_images would
add new mappings, but now any attempt to convert a glance id
to an internal id will succeed, resolving bug 948286.
* Adds 2 convenience methods to ec2utils, as per bcwaldon:
ec2_id_to_glance_id glance_id_to_ec2_id
* Since this is a strict refactor and only streamlines existing
well-tested functionality, this change includes no new tests.
Reviewed: https:/ /review. openstack. org/5268 github. com/openstack/ nova/commit/ 0929e3a289af39f c38b46c4a55db06 b8888e671e
Committed: http://
Submitter: Jenkins
Branch: master
commit 0929e3a289af39f c38b46c4a55db06 b8888e671e
Author: Maru Newby <email address hidden>
Date: Mon Mar 12 23:19:16 2012 -0700
Refactor glance id<->internal id conversion for s3
* Moves nova.image. s3.S3ImageServi ce functions for converting
between glance ('image_uuid') and internal (db) ids to ec2utils:
* Refactors ec2utils. glance_ id_to_id to create a new S3Image
nova.api. ec2.cloud. CloudController .describe_ images would
object associating a glance id to an internal id if such a
mapping does not already exist. Previously, only calls to
add new mappings, but now any attempt to convert a glance id
to an internal id will succeed, resolving bug 948286.
* Adds 2 convenience methods to ec2utils, as per bcwaldon:
* Since this is a strict refactor and only streamlines existing
well-tested functionality, this change includes no new tests.
Change-Id: I810afe05223228 df1bcc20a0ac688 d8c62c472b4