Add support for extra properties in an image 41/29441/5
authorCristina Pauna <cristina.pauna@enea.com>
Fri, 24 Feb 2017 14:41:46 +0000 (16:41 +0200)
committerCristina Pauna <cristina.pauna@enea.com>
Wed, 1 Mar 2017 15:10:34 +0000 (17:10 +0200)
commit8392f34fbc479e04c9e8d803c7b5179a9070cde1
treec4588b7ddc9868cab5da1aeafda6cfd5a9466d09
parentc613af85630307c1c50ccd109d8c4efae5f0265b
Add support for extra properties in an image

This patch adds a new setting for images, extra_properties.
This field is a dict and can be used to create a 3-part image
by setting the kernel_id and the ramdisk_id of the main image.

Unit tests have been added to set some generic property, for
creation of the 3-part image, and for creating an instance
with that 3-part image

JIRA: SNAPS-32

Change-Id: Ifb53d1da1085fcd6429ddc0607c905522db5e8bb
Signed-off-by: Cristina Pauna <cristina.pauna@enea.com>
snaps/openstack/create_image.py
snaps/openstack/tests/create_image_tests.py
snaps/openstack/tests/create_instance_tests.py
snaps/openstack/tests/openstack_tests.py
snaps/openstack/utils/glance_utils.py