Browse Source

Detailed haproxy failure message

That is aimed to make debug easier and
faster.

Change-Id: I5aa633b954e4cd8c6bb7291339c1c5806925c8c9
Related-bug: #1570805
Closes-bug: #1587063
tags/10.0.0b1^2
Alexandr Kostrikov 3 years ago
parent
commit
afc374aa9e
1 changed files with 5 additions and 3 deletions
  1. 5
    3
      fuel_health/tests/ha/test_haproxy.py

+ 5
- 3
fuel_health/tests/ha/test_haproxy.py View File

@@ -86,7 +86,9 @@ class HAProxyCheck(test.BaseTestCase):
86 86
 
87 87
             dead_backends = filter(lambda x: 'DOWN' in x,
88 88
                                    haproxy_status.splitlines())
89
-            LOG.debug("Dead backends {0}".format(dead_backends))
89
+            backends_message = "Dead backends {0}"\
90
+                .format(dead_backends)
91
+            LOG.debug(backends_message)
92
+            error_message = "Step 2 failed: " + backends_message
90 93
             self.verify_response_true(
91
-                len(dead_backends) == 0,
92
-                "Step 2 failed: Some haproxy backend has down state.")
94
+                len(dead_backends) == 0, error_message)

Loading…
Cancel
Save