diff options
author | Delia Popescu <delia.popescu@enea.com> | 2018-05-09 15:31:22 +0300 |
---|---|---|
committer | Delia Popescu <delia.popescu@enea.com> | 2018-05-10 16:24:50 +0300 |
commit | 1aaeab75130345ae9198de23d013f9840044c8b5 (patch) | |
tree | fbe2048e13b46e7f4312f705e9309e83f24fb5bd | |
parent | ac8e3d4d9f7fe99021f41ee9c86370e7d9866d65 (diff) |
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 <delia.popescu@enea.com>
-rw-r--r-- | functest/ci/config_aarch64_patch.yaml | 2 | ||||
-rw-r--r-- | functest/opnfv_tests/openstack/vping/vping_base.py | 5 |
2 files changed, 6 insertions, 1 deletions
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( |