From: John O Loughlin <john.oloughlin@intel.com>
Date: Fri, 16 Feb 2018 11:38:18 +0000 (+0000)
Subject: Bug fix ansible scripts
X-Git-Tag: opnfv-6.0.0~102^2
X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F27%2F52227%2F3;p=yardstick.git

Bug fix ansible scripts

For 'qemu-img version 2.10.1' unit 'MB' is not acceptable
Changing to 'M'

JIRA: YARDSTICK-1019

Change-Id: Ic9153e9e9c85d949d15b1d15cc8cddfad986b4a3
Signed-off-by: John O Loughlin <john.oloughlin@intel.com>
---

diff --git a/ansible/roles/infra_create_vms/tasks/configure_vm.yml b/ansible/roles/infra_create_vms/tasks/configure_vm.yml
index 10201cf2a..5685e634f 100644
--- a/ansible/roles/infra_create_vms/tasks/configure_vm.yml
+++ b/ansible/roles/infra_create_vms/tasks/configure_vm.yml
@@ -328,7 +328,7 @@
 
 - name: Copy and convert the ubuntu image
   shell: >
-    qemu-img resize {{ image_dir+node_item.hostname+'.qcow2' }} {{ node_item.disk }}MB
+    qemu-img resize {{ image_dir+node_item.hostname+'.qcow2' }} {{ node_item.disk }}M
 
 - name: Define the VMs
   virt: