Skip to content

Commit b2da739

Browse files
committed
qa/tests: fix test_list_enabled_modules timeout error
This test deals with enabling/disabling the modules. The assumption I have is after enabling the module test will wait for an active mgr but its not able to find it in time and it fails. so taking inspiration from ceph@6c7253b adding retries and logs to see if that's the case Fixes: https://tracker.ceph.com/issues/62972 Signed-off-by: Nizamudeen A <[email protected]>
1 parent 52deba6 commit b2da739

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

qa/tasks/mgr/dashboard/test_mgr_module.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@
66
import requests
77

88
from .helper import (DashboardTestCase, JLeaf, JList, JObj,
9-
module_options_object_schema, module_options_schema)
9+
module_options_object_schema, module_options_schema,
10+
retry)
1011

1112
logger = logging.getLogger(__name__)
1213

1314

1415
class MgrModuleTestCase(DashboardTestCase):
1516
MGRS_REQUIRED = 1
1617

18+
@retry(on_exception=RuntimeError, tries=2, delay=0.5, logger=logger)
1719
def wait_until_rest_api_accessible(self):
1820
"""
1921
Wait until the REST API is accessible.

0 commit comments

Comments
 (0)