Creating uuid -> id mapping for S3 Image Service

This creates a mapping of Glance uuids to preserve the
EC2-specific image id format. This adds a lazily generated
mapping layer that is stored in the database.

This also fixes bug 882658

Change-Id: I64bf6c7297b97f206b967781a28791aa3874ca81
This commit is contained in:
Brian Waldon 2011-10-19 15:02:48 -04:00
parent 514ccbbfbd
commit 25938bfbd1
2 changed files with 2 additions and 2 deletions

View File

@ -362,7 +362,7 @@ DEFINE_string('null_kernel', 'nokernel',
'kernel image that indicates not to use a kernel,'
' but to use a raw disk image instead')
DEFINE_integer('vpn_image_id', 0, 'integer id for cloudpipe vpn server')
DEFINE_string('vpn_image_id', '0', 'image id for cloudpipe vpn server')
DEFINE_string('vpn_key_suffix',
'-vpn',
'Suffix to add to project name for vpn key and secgroups')

View File

@ -61,7 +61,7 @@ def _create_instance_dict(**kwargs):
inst = {}
# NOTE(jk0): If an integer is passed as the image_ref, the image
# service will use the default image service (in this case, the fake).
inst['image_ref'] = '1'
inst['image_ref'] = 'cedef40a-ed67-4d10-800e-17455edce175'
inst['reservation_id'] = 'r-fakeres'
inst['user_id'] = kwargs.get('user_id', 'admin')
inst['project_id'] = kwargs.get('project_id', 'fake')