FIX: Single memif tests failing 41/15041/2
authorPeter Mikus <pmikus@cisco.com>
Fri, 28 Sep 2018 13:34:46 +0000 (13:34 +0000)
committerPeter Mikus <pmikus@cisco.com>
Fri, 28 Sep 2018 15:36:23 +0000 (15:36 +0000)
This patch suppose to fix the single memif TCs failing on SKX nodes.
By stoping Host VPP during startup of Guest VPP. This way Guest VPP
can take interface on single pass.o

Change-Id: I88e6932bf007ce0f6a367927de5f017ffb8fdaca
Signed-off-by: Peter Mikus <pmikus@cisco.com>
resources/libraries/python/VPPUtil.py
resources/libraries/robot/performance/performance_setup.robot
resources/libraries/robot/shared/container.robot

index de3caad..17310aa 100644 (file)
@@ -81,6 +81,15 @@ class VPPUtil(object):
         """
         DUTSetup.stop_service(node, Constants.VPP_UNIT)
 
+    @staticmethod
+    def stop_vpp_service_on_all_duts(nodes):
+        """Stop VPP service on all nodes.
+
+        :param nodes: Nodes in the topology.
+        :type nodes: dict
+        """
+        DUTSetup.stop_service_on_all_duts(nodes, Constants.VPP_UNIT)
+
     @staticmethod
     def verify_vpp_on_dut(node):
         """Verify that VPP is installed on DUT node.
index e9f1555..f5288e7 100644 (file)
 | | Acquire all 'VNF' containers
 | | Create all 'VNF' containers
 | | Configure VPP in all 'VNF' containers
+| | Stop VPP service on all DUTs | ${nodes}
 | | Install VPP in all 'VNF' containers
+| | Start VPP service on all DUTs | ${nodes}
 
 | Set up performance test suite with MEMIF
 | | [Documentation]
index 5b1b2ff..e7b101c 100644 (file)
@@ -29,7 +29,6 @@
 | | :FOR | ${dut} | IN | @{duts}
 | | | ${env}= | Create List | DEBIAN_FRONTEND=noninteractive
 | | | ${mnt}= | Create List | /tmp:/mnt/host | /dev/vfio:/dev/vfio
-| | | ... | /dev/bus:/dev/bus
 | | | ${cpu_node}= | Get interfaces numa node | ${nodes['${dut}']}
 | | | ... | ${dut1_if1} | ${dut1_if2}
 | | | Run Keyword | ${group}.Construct containers