summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Buil <mbuil@suse.com>2017-03-22 18:10:34 +0100
committerManuel Buil <mbuil@suse.com>2017-03-22 18:55:32 +0100
commit6a93c1e0e34e357869879dcea98ce2d4561e52ab (patch)
treee27b0a0a154e343434e6161999b581fd255a608b
parent08aa86e1e7cb874aac72c831e239c003070e5ca3 (diff)
Added more logs to classification check
The classification check is not working in CI and we don't understand why. I added a lot more logs to check Change-Id: I81bcc8874c5e5e843e0c301e1d66d5d11de092f3 Signed-off-by: Manuel Buil <mbuil@suse.com>
-rw-r--r--sfc/lib/utils.py20
-rw-r--r--sfc/tests/functest/sfc_one_chain_two_service_functions_different_computes.py3
-rw-r--r--sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py3
3 files changed, 24 insertions, 2 deletions
diff --git a/sfc/lib/utils.py b/sfc/lib/utils.py
index 5340d66c..65942b9f 100644
--- a/sfc/lib/utils.py
+++ b/sfc/lib/utils.py
@@ -426,12 +426,20 @@ def wait_for_classification_rules(ovs_logger, compute_clients,
else:
first_RSP = ''
rsps = ''
- logger.debug("This is the first_RSP: %s" % first_RSP)
+ logger.info("This is the first_RSP: %s" % first_RSP)
if num_chains == 1:
while not ((len(rsps) == 1) and (first_RSP != rsps[0])):
rsps = ofctl_time_counter(ovs_logger, compute_client)
- logger.debug("These are the rsps: %s" % rsps)
+ logger.info("These are the rsps: %s" % rsps)
timeout -= 1
+ if timeout == 10:
+ output = ovs_logger.ofctl_dump_flows(compute_client)
+ logger.info("output ofctl: %s" % output)
+ output2 = ovs_logger.vsctl_show(compute_client)
+ logger.info("output vsctl: %s" % output2)
+ _, stdout, _ = compute_client.exec_command('ip a')
+ output3 = ''.join(stdout.readlines())
+ logger.info("The interfaces: %s" % output3)
if timeout == 0:
logger.error(
"Timeout but classification rules are not updated")
@@ -443,6 +451,14 @@ def wait_for_classification_rules(ovs_logger, compute_clients,
rsps = ofctl_time_counter(ovs_logger, compute_client)
logger.info("This is the rsps: %s" % rsps)
timeout -= 1
+ if timeout == 10:
+ output = ovs_logger.ofctl_dump_flows(compute_client)
+ logger.info("output ofctl: %s" % output)
+ output2 = ovs_logger.vsctl_show(compute_client)
+ logger.info("output vsctl: %s" % output2)
+ _, stdout, _ = compute_client.exec_command('ip a')
+ output3 = ''.join(stdout.readlines())
+ logger.info("The interfaces: %s" % output3)
if timeout == 0:
logger.error(
"Timeout but classification rules are not updated")
diff --git a/sfc/tests/functest/sfc_one_chain_two_service_functions_different_computes.py b/sfc/tests/functest/sfc_one_chain_two_service_functions_different_computes.py
index 079bc0b8..c4713c54 100644
--- a/sfc/tests/functest/sfc_one_chain_two_service_functions_different_computes.py
+++ b/sfc/tests/functest/sfc_one_chain_two_service_functions_different_computes.py
@@ -51,6 +51,9 @@ def main():
compute_nodes = [node for node in openstack_nodes
if node.is_compute()]
+ for compute in compute_nodes:
+ logger.info("This is a compute: %s" % compute.info)
+
results = Results(COMMON_CONFIG.line_length)
results.add_to_summary(0, "=")
results.add_to_summary(2, "STATUS", "SUBTEST")
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 021e8df1..747cf19f 100644
--- a/sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py
+++ b/sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py
@@ -50,6 +50,9 @@ def main():
compute_nodes = [node for node in openstack_nodes
if node.is_compute()]
+ for compute in compute_nodes:
+ logger.info("This is a compute: %s" % compute.info)
+
results = Results(COMMON_CONFIG.line_length)
results.add_to_summary(0, "=")
results.add_to_summary(2, "STATUS", "SUBTEST")