]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Fix for some dashboard timing issues 24219/head
authorPatrick Nawracay <pnawracay@suse.com>
Mon, 17 Sep 2018 07:25:34 +0000 (09:25 +0200)
committerPatrick Nawracay <pnawracay@suse.com>
Fri, 21 Sep 2018 14:01:24 +0000 (16:01 +0200)
Specifically fixes the recurringly occurring `test_osd.py` error on the
`test_scrub` method. But this change should also prevent other issues of
the same kind. Issues of "same kind" are issues which occurr due to
tests which do not immediately result in a clean cluster status and
aren't manually programmed to wait for it.

Fixes: http://tracker.ceph.com/issues/36107
Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
qa/tasks/mgr/dashboard/helper.py

index af536288c0298f5ea769576e1156e9f633d8df91..025665be4f4c9a3ff319b2d3ad0bf83eda15392e 100644 (file)
@@ -144,6 +144,7 @@ class DashboardTestCase(MgrTestCase):
     def setUp(self):
         if not self._loggedin and self.AUTO_AUTHENTICATE:
             self.login('admin', 'admin')
+        self.wait_for_health_clear(20)
 
     @classmethod
     def tearDownClass(cls):