]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/mgr: test_module_selftest set influx hostname to avoid warnings during plugi... 67649/head
authorNitzanMordhai <nmordech@ibm.com>
Wed, 4 Mar 2026 12:38:59 +0000 (12:38 +0000)
committerNitzanMordhai <nmordech@ibm.com>
Wed, 4 Mar 2026 12:39:16 +0000 (12:39 +0000)
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 <nmordec@ibm.com>
qa/tasks/mgr/test_module_selftest.py

index 069031b2a675e74fde46ee16df55a0737dd6301d..db707d9469efd92e1d23eb9487273a0c21b77fe9 100644 (file)
@@ -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):