Add image extra properties for fuel installer in functest test 03/63203/2
authorDelia Popescu <delia.popescu@enea.com>
Fri, 5 Oct 2018 07:41:02 +0000 (10:41 +0300)
committerCédric Ollivier <cedric.ollivier@orange.com>
Sat, 6 Oct 2018 06:32:31 +0000 (08:32 +0200)
With using scsi volume device type, additional image
extra_properties are needed.
Set environment variable IMAGE_PROPERTIES when installer is fuel for
functest test run.

Related to:
  https://gerrit.opnfv.org/gerrit/#/c/61913/
  https://gerrit.opnfv.org/gerrit/#/c/63225/

Change-Id: If35aa282abaf5dab1a5bacc2f26fe89292b09605
Signed-off-by: Delia Popescu <delia.popescu@enea.com>
jjb/functest/functest-alpine.sh

index c821474..2e21fb6 100755 (executable)
@@ -135,7 +135,8 @@ ssh_options="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
 if [ "${INSTALLER_TYPE}" == 'fuel' ]; then
     COMPUTE_ARCH=$(ssh -l ubuntu ${INSTALLER_IP} -i ${SSH_KEY} ${ssh_options} \
         "sudo salt 'cmp*' grains.get cpuarch --out yaml | awk '{print \$2; exit}'")
-    envs="${envs} -e POD_ARCH=${COMPUTE_ARCH}"
+    IMAGE_PROPERTIES="hw_disk_bus: scsi, hw_scsi_model: virtio-scsi"
+    envs="${envs} -e POD_ARCH=${COMPUTE_ARCH} -e ${IMAGE_PROPERTIES}"
 fi