mirror of
https://github.com/ceph/ceph
synced 2025-03-20 09:16:59 +00:00
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 from6c7253be6f
adding retries and logs to see if that's the case Fixes: https://tracker.ceph.com/issues/62972 Signed-off-by: Nizamudeen A <nia@redhat.com> (cherry picked from commitb2da7394ee
)
This commit is contained in:
parent
bfee4c6b17
commit
afba83d8af
@ -6,7 +6,8 @@ import logging
|
||||
import requests
|
||||
|
||||
from .helper import (DashboardTestCase, JLeaf, JList, JObj,
|
||||
module_options_object_schema, module_options_schema)
|
||||
module_options_object_schema, module_options_schema,
|
||||
retry)
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@ -14,6 +15,7 @@ logger = logging.getLogger(__name__)
|
||||
class MgrModuleTestCase(DashboardTestCase):
|
||||
MGRS_REQUIRED = 1
|
||||
|
||||
@retry(on_exception=RuntimeError, tries=2, delay=0.5, logger=logger)
|
||||
def wait_until_rest_api_accessible(self):
|
||||
"""
|
||||
Wait until the REST API is accessible.
|
||||
|
Loading…
Reference in New Issue
Block a user