From d436fafbde49d78e2e39a8a63c31747799531ca1 Mon Sep 17 00:00:00 2001 From: Manuel Buil Date: Fri, 26 Jan 2018 12:54:35 +0100 Subject: Fix problem to fetch the compute name of client VM When migrating to SNAPs a bug was introduced and could be seen in logs as: Error when waiting for classification rules: 'module' object has no attribute 'get_compute_client' The cause is that get_compute_client is not a global function anymore but a method inside a class. Besides, due to SNAPs, we need to fetch the compute name in another way Change-Id: I32007c83894281ba9514a121b7939b5bfe52f4bc Signed-off-by: Manuel Buil --- sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py') diff --git a/sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py b/sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py index d7eb2994..9d4c68c8 100644 --- a/sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py +++ b/sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py @@ -183,7 +183,8 @@ def main(): # Start measuring the time it takes to implement the classification rules t1 = threading.Thread(target=odl_utils.wait_for_classification_rules, - args=(ovs_logger, compute_nodes, odl_ip, odl_port,)) + args=(ovs_logger, compute_nodes, odl_ip, + odl_port, openstack_sfc.get_compute_client(),)) try: t1.start() @@ -272,7 +273,8 @@ def main(): # Start measuring the time it takes to implement the classification rules t2 = threading.Thread(target=odl_utils.wait_for_classification_rules, - args=(ovs_logger, compute_nodes, odl_ip, odl_port,)) + args=(ovs_logger, compute_nodes, odl_ip, + odl_port, openstack_sfc.get_compute_client(),)) try: t2.start() except Exception as e: -- cgit 1.2.3-korg