]> 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 66376/head
authorNitzan Mordechai <nmordech@redhat.com>
Mon, 17 Nov 2025 11:51:14 +0000 (11:51 +0000)
committerNitzan Mordechai <nmordech@redhat.com>
Sun, 23 Nov 2025 14:13:50 +0000 (14:13 +0000)
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 c41a95c71f7188265590e08c2f7205ea376c44d2..069031b2a675e74fde46ee16df55a0737dd6301d 100644 (file)
@@ -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")