]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add image metadata API extension
authorNikola Dipanov <ndipanov@redhat.com>
Fri, 7 Dec 2012 14:53:28 +0000 (15:53 +0100)
committerNikola Dipanov <ndipanov@redhat.com>
Fri, 14 Dec 2012 08:04:27 +0000 (09:04 +0100)
commit349d5bdf0ed6fb18308c1e1e352d726ed9e00d8f
treeb2d4623f309f04fa71ea072566cf3c365f5a714c
parent29b9290cb9f9556d5f9e1e90af4cfaba64e4ba2f
Add image metadata API extension

This patch introduces an API extension that will expose the volume
metadata inherited from the image if the volume was created from an image.

This data will be used by Nova when booting from volume without any
image supplied.

In addition, the patch introduces a helper method on the volume.API
class for accessing the image metadata and also updates the policy.json
files to be aware of the new extension.

This patch is part of the blueprint improve-boot-from-volume

This patch also introduces DocImpact as it extends the cinder API

Change-Id: I64515cc02f8de863e65e96c66eb1fda1a1954ac7
cinder/api/contrib/volume_image_metadata.py [new file with mode: 0644]
cinder/tests/api/contrib/test_volume_image_metadata.py [new file with mode: 0644]
cinder/tests/policy.json
cinder/volume/api.py
etc/cinder/policy.json