From: Tatjana Dehler Date: Fri, 11 Oct 2019 08:45:53 +0000 (+0200) Subject: mgr/dashboard: wait a moment after module load X-Git-Tag: v15.1.0~1275^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=dcb70a3c0d0062e64b5f4b46e6c40442d15945de;p=ceph.git mgr/dashboard: wait a moment after module load After a dashboard module load we need to wait (10 secs) for the module to be back again. Otherwise the module might not be able to answer requests properly. It could lead to issues in some cases, e.g.: 'Failed to establish a new connection: [Errno 111] Connection refused'. Signed-off-by: Tatjana Dehler --- diff --git a/qa/tasks/mgr/dashboard/test_user.py b/qa/tasks/mgr/dashboard/test_user.py index 860bc8bf45b4..29e182ebcb4d 100644 --- a/qa/tasks/mgr/dashboard/test_user.py +++ b/qa/tasks/mgr/dashboard/test_user.py @@ -2,6 +2,8 @@ from __future__ import absolute_import +import time + from .helper import DashboardTestCase @@ -81,6 +83,7 @@ class UserTest(DashboardTestCase): # Restart dashboard module. self._unload_module('dashboard') self._load_module('dashboard') + time.sleep(10) self._get('/api/user/klara') self.assertStatus(200)