summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author“Manuel Buil” <mbuil@suse.com>2017-03-16 15:01:22 +0100
committer“Manuel Buil” <mbuil@suse.com>2017-03-16 15:32:40 +0100
commit189642fff7428457d3992c365eab9a9f5c0bea90 (patch)
tree4dabb879df1eb98e8c7315e8d744a87e59748e2c
parent184f787f3a8a57695fa3b9b8f17c65b9aeee1904 (diff)
Bug fix: rsps and first_RSPs must be restarted
JIRA: SFC-88 Not a blocking bug but when the classifier is implemented in several computes, we loop all computes. By the time the second compute is inspected, more than 10 seconds passed and thus, the classification rules are already there. first_RSP should not be evaluated and rsps must be restarted Change-Id: I70858d6b423eebd8088a79aebebb4950f031878d Signed-off-by: “Manuel Buil” <mbuil@suse.com>
-rw-r--r--sfc/lib/utils.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/sfc/lib/utils.py b/sfc/lib/utils.py
index 8623f859..d054a0e2 100644
--- a/sfc/lib/utils.py
+++ b/sfc/lib/utils.py
@@ -417,7 +417,11 @@ def wait_for_classification_rules(ovs_logger, compute_clients,
# first_RSP saves a potential RSP from an old deployment.
# ODL may take quite some time to implement the new flow
# and an old flow may be there
- first_RSP = rsps[0] if len(rsps) > 0 else ''
+ if compute_client == compute_clients[0]:
+ first_RSP = rsps[0] if len(rsps) > 0 else ''
+ else:
+ first_RSP = ''
+ rsps = ''
logger.debug("This is the first_RSP: %s" % first_RSP)
if num_chains == 1:
while not ((len(rsps) == 1) and (first_RSP != rsps[0])):