nova/nova
Maru Newby 0929e3a289 Refactor glance id<->internal id conversion for s3
* Moves nova.image.s3.S3ImageService functions for converting
   between glance ('image_uuid') and internal (db) ids to ec2utils:

       get_image_id => ec2utils.glance_id_to_id
       get_image_uuid => ec2utils.id_to_glance_id

 * 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.

Change-Id: I810afe05223228df1bcc20a0ac688d8c62c472b4
2012-03-13 10:09:12 -07:00
..
api Refactor glance id<->internal id conversion for s3 2012-03-13 10:09:12 -07:00
auth improve speed of metadata 2012-03-12 12:37:31 -07:00
CA Clean up crypto.py 2012-01-18 21:56:14 -08:00
cert fix restructuredtext formatting in docstrings that show up in the developer guide 2012-03-05 16:18:53 -05:00
cloudpipe Add pybasedir and bindir options 2012-03-09 11:23:33 +00:00
common improve speed of metadata 2012-03-12 12:37:31 -07:00
compat Merge "fix restructuredtext formatting in docstrings that show up in the developer guide" 2012-03-07 01:34:42 +00:00
compute Sort results from describe_instances in EC2 API. 2012-03-13 11:26:39 -04:00
console Add pybasedir and bindir options 2012-03-09 11:23:33 +00:00
consoleauth Standardize logging delaration and use 2012-02-14 13:02:43 -06:00
db Sort results from describe_instances in EC2 API. 2012-03-13 11:26:39 -04:00
image Refactor glance id<->internal id conversion for s3 2012-03-13 10:09:12 -07:00
ipv6 Remove the last of the gflags shim layer 2012-02-10 06:31:56 +00:00
locale Imported Translations from Launchpad 2012-03-04 23:02:22 +00:00
network Update floating auto assignment to use the model 2012-03-12 14:00:18 -06:00
notifier HACKING fixes, all but sqlalchemy. 2012-03-07 12:51:39 +04:00
objectstore fix restructuredtext formatting in docstrings that show up in the developer guide 2012-03-05 16:18:53 -05:00
openstack Update cfg from openstack-common 2012-03-09 11:35:15 +00:00
rootwrap Merge "Make snapshots with qemu-img instead of libvirt" 2012-03-12 20:10:59 +00:00
rpc Deprecate carrot rpc code 2012-03-08 10:34:17 -08:00
scheduler Don't use ec2 IDs in scheduler driver 2012-03-07 22:27:11 -08:00
testing improve speed of metadata 2012-03-12 12:37:31 -07:00
tests Merge "Sort results from describe_instances in EC2 API." 2012-03-13 16:59:53 +00:00
virt virt/firewall: NoopFirewallDriver::instance_filter_exists must return True 2012-03-13 16:35:06 +09:00
vnc Standardize logging delaration and use 2012-02-14 13:02:43 -06:00
volume HACKING fixes, all but sqlalchemy. 2012-03-07 12:51:39 +04:00
vsa HACKING fixes, all but sqlalchemy. 2012-03-07 12:51:39 +04:00
__init__.py Allow file logging config 2012-02-17 11:24:32 -06:00
block_device.py Refactor metadata code out of ec2/cloud.py 2011-11-17 11:10:30 -08:00
context.py Add kwargs to RequestContext __init__ 2012-03-08 08:32:36 -08:00
crypto.py Merge "Fixes cloudpipe extension to work with keystone" 2012-02-28 09:17:18 +00:00
exception.py Merge "Fixes for ec2 images" 2012-03-06 19:59:21 +00:00
flags.py Add pybasedir and bindir options 2012-03-09 11:23:33 +00:00
local.py Add local storage of context for logging 2011-11-02 17:09:49 -07:00
log.py Prevent infinite loop in PublishErrorsHandler 2012-02-23 16:26:27 +00:00
manager.py Standardize logging delaration and use 2012-02-14 13:02:43 -06:00
policy.py fix restructuredtext formatting in docstrings that show up in the developer guide 2012-03-05 16:18:53 -05:00
quota.py Remove the last of the gflags shim layer 2012-02-10 06:31:56 +00:00
service.py Clean stale lockfiles on service startup : fixes bug 785955 2012-02-24 15:10:33 -08:00
test.py Clear created attributes when tearing down tests 2012-03-07 15:52:40 +00:00
utils.py Merge "Use a high number for our default mac addresses" 2012-03-10 04:18:07 +00:00
version.py Add optional revision field to version number 2012-01-11 07:19:59 +00:00
wsgi.py Standardize logging delaration and use 2012-02-14 13:02:43 -06:00