-
Committer:
Tarmac
-
Author(s):
Vishvananda Ishaya
-
Date:
2011-04-08 00:32:34 UTC
-
mfrom:
(922.2.12 fix-describe-images)
-
Revision ID:
tarmac-20110408003234-iqjytg1g56t4sdyv
Fixes issues with describe instances due to improperly set metadata.
* Removes image['properties']['type']
* Uses image['container_format'] to key display of type and create ec2 ids.
* Defaults to 'ami' if container_format cannot be deduced. This allows
bare images to show up in describe instances and be launched even though they
are not officially in 'ami' format.
* Changes nova-manage register to set proper container format
* Fixes tests
* Fixes _do_get_kernel_and_ramdisk in openstack api to only try to get them if it is a true 'ami'
* Replaces 'owner_id' with 'project_id' since that is expected by glance code
* Moves the filtering scheme to base image service so all services filter the same way