From 189642fff7428457d3992c365eab9a9f5c0bea90 Mon Sep 17 00:00:00 2001 From: “Manuel Buil” Date: Thu, 16 Mar 2017 15:01:22 +0100 Subject: Bug fix: rsps and first_RSPs must be restarted MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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” --- sfc/lib/utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sfc/lib/utils.py') 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])): -- cgit 1.2.3-korg