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:
parent
514ccbbfbd
commit
25938bfbd1
|
@ -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')
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue