From 24d0fbb7071f5622ac8b59aefc2f6aac1075ece3 Mon Sep 17 00:00:00 2001 From: NitzanMordhai Date: Wed, 4 Mar 2026 12:38:59 +0000 Subject: [PATCH] qa/tasks/mgr: test_module_selftest set influx hostname to avoid warnings during plugin test This is a follow pr for pr#66376 and complete the set for influx server start. 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qa/tasks/mgr/test_module_selftest.py b/qa/tasks/mgr/test_module_selftest.py index 069031b2a67..db707d9469e 100644 --- a/qa/tasks/mgr/test_module_selftest.py +++ b/qa/tasks/mgr/test_module_selftest.py @@ -41,6 +41,9 @@ class TestModuleSelftest(MgrTestCase): self._selftest_plugin("prometheus") def test_influx(self): + #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") self._selftest_plugin("influx") def test_diskprediction_local(self): -- 2.47.3