From 1aaeab75130345ae9198de23d013f9840044c8b5 Mon Sep 17 00:00:00 2001 From: Delia Popescu Date: Wed, 9 May 2018 15:31:22 +0300 Subject: Add image extra properties back in vping_base Image extra properties are missing for ARM Set image_url for ARM JIRA: ARMBAND-383 Change-Id: I0e2730c3f22214ad61d72424ea76173f1783d0ca Signed-off-by: Delia Popescu --- functest/ci/config_aarch64_patch.yaml | 2 ++ functest/opnfv_tests/openstack/vping/vping_base.py | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/functest/ci/config_aarch64_patch.yaml b/functest/ci/config_aarch64_patch.yaml index 2f1289c1c..b4e465a29 100644 --- a/functest/ci/config_aarch64_patch.yaml +++ b/functest/ci/config_aarch64_patch.yaml @@ -5,6 +5,8 @@ os: image_name: TestVM image_file_name: cirros-d161201-aarch64-disk.img image_password: gocubsgo + image_url: + /home/opnfv/functest/images/cirros-d161201-aarch64-disk.img extra_properties: hw_firmware_type: 'uefi' hw_video_model: 'vga' diff --git a/functest/opnfv_tests/openstack/vping/vping_base.py b/functest/opnfv_tests/openstack/vping/vping_base.py index 2d1f856d7..2451c2de4 100644 --- a/functest/opnfv_tests/openstack/vping/vping_base.py +++ b/functest/opnfv_tests/openstack/vping/vping_base.py @@ -64,9 +64,12 @@ class VPingBase(testcase.TestCase): image_base_name = '{}-{}'.format( getattr(config.CONF, 'vping_image_name'), self.guid) self.logger.info("Creating image with name: '%s'", image_base_name) + meta = getattr(config.CONF, 'openstack_extra_properties', None) + self.logger.info("Image metadata: %s", meta) self.image = self.cloud.create_image( image_base_name, - filename=getattr(config.CONF, 'openstack_image_url')) + filename=getattr(config.CONF, 'openstack_image_url'), + meta=meta) self.logger.debug("image: %s", self.image) private_net_name = getattr( -- cgit 1.2.3-korg