yardstick-verify: Mod yardstick-flavor for ovs scenarios 03/12603/1
authorBilly O'Mahony <billy.o.mahony@intel.com>
Fri, 15 Apr 2016 14:56:37 +0000 (15:56 +0100)
committerBilly O'Mahony <billy.o.mahony@intel.com>
Sat, 23 Apr 2016 11:18:29 +0000 (11:18 +0000)
VMs used with DPDK-enabled OVS must have their memory backed by large pages.

Change-Id: Id685554183a76e8a6024d58920a9a9e187b90e24
Signed-off-by: Billy O'Mahony <billy.o.mahony@intel.com>
Reviewed-by: Ana Cunha <ana.cunha@ericsson.com>
Reviewed-by: Jorgen Karlsson <jorgen.w.karlsson@ericsson.com>
Reviewed-by: Jonas Bjurel <jonas.bjurel@ericsson.com>
Reviewed-by: Daniel Smith <daniel.smith@ericsson.com>
Reviewed-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Reviewed-by: Mark D. Gray <mark.d.gray@intel.com>
(cherry picked from commit 11a452a34c345abb7d882b151dd99c536f477650)

ci/yardstick-verify

index c7b1cef..c831935 100755 (executable)
@@ -144,6 +144,10 @@ create_nova_flavor()
         echo "========== Create nova flavor =========="
         # Create the nova flavor used by some sample test cases
         nova flavor-create yardstick-flavor 100 512 3 1
+        # DPDK-enabled OVS requires guest memory to be backed by large pages
+        if [[ "$DEPLOY_SCENARIO" == *"-ovs-"* ]]; then
+            nova flavor-key yardstick-flavor set hw:mem_page_size=large
+        fi
     fi
 }