summaryrefslogtreecommitdiffstats
path: root/sfc/lib/odl_utils.py
diff options
context:
space:
mode:
authorManuel Buil <mbuil@suse.com>2018-01-26 12:54:35 +0100
committerBrady Johnson <bjohnson@inocybe.com>2018-01-29 16:20:30 +0000
commitd436fafbde49d78e2e39a8a63c31747799531ca1 (patch)
treed622ef2353ae90bbf1ef7ab80108199042818594 /sfc/lib/odl_utils.py
parentb3791d8df2a7666603148e771191e1f6e7f4a784 (diff)
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 <mbuil@suse.com>
Diffstat (limited to 'sfc/lib/odl_utils.py')
-rw-r--r--sfc/lib/odl_utils.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/sfc/lib/odl_utils.py b/sfc/lib/odl_utils.py
index 45937263..90b6b54f 100644
--- a/sfc/lib/odl_utils.py
+++ b/sfc/lib/odl_utils.py
@@ -102,17 +102,14 @@ def promised_rsps_in_computes(odl_ip, odl_port):
@ft_utils.timethis
def wait_for_classification_rules(ovs_logger, compute_nodes, odl_ip, odl_port,
- timeout=200):
+ compute_client_name, timeout=200):
'''
Check if the classification rules configured in ODL are implemented in OVS.
We know by experience that this process might take a while
'''
try:
- # Find the compute where the client is
- compute_client = os_sfc_utils.get_compute_client()
-
for compute_node in compute_nodes:
- if compute_node.name in compute_client:
+ if compute_node.name in compute_client_name:
compute = compute_node
try:
compute