From 6b170bb5366ec13239b768f7c344fa5e842af7ff Mon Sep 17 00:00:00 2001 From: Nitzan Mordechai Date: Mon, 17 Nov 2025 11:51:14 +0000 Subject: [PATCH] qa/tasks/mgr: test_module_selftest set influx hostname to avoid warnings self-test will hit error MGR_INFLUX_NO_SERVER since we dont have hostname configed, the following command will add a test hostname so the error won't appear and fail the test. Fixes: https://tracker.ceph.com/issues/72747 Signed-off-by: Nitzan Mordechai --- qa/tasks/mgr/test_module_selftest.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qa/tasks/mgr/test_module_selftest.py b/qa/tasks/mgr/test_module_selftest.py index c41a95c71f7..069031b2a67 100644 --- a/qa/tasks/mgr/test_module_selftest.py +++ b/qa/tasks/mgr/test_module_selftest.py @@ -201,6 +201,10 @@ class TestModuleSelftest(MgrTestCase): Use the selftest module to exercise inter-module communication """ self._load_module("selftest") + #before we are enabling influx, set config options to avoid errors + self.mgr_cluster.mon_manager.raw_cluster_cmd( + "config", "set", "mgr", "mgr/influx/hostname", "testhost") + # The "self-test remote" operation just happens to call into # influx. self._load_module("influx") -- 2.47.3