]> 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 67800/head
authorNitzan Mordechai <nmordech@redhat.com>
Mon, 17 Nov 2025 11:51:14 +0000 (11:51 +0000)
committerNitzan Mordechai <nmordch@li-2bf86dcc-35b8-11b2-a85c-b1dfd4248b42.ibm.com>
Sun, 15 Mar 2026 12:12:26 +0000 (14:12 +0200)
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>
(cherry picked from commit 6b170bb5366ec13239b768f7c344fa5e842af7ff)

qa/tasks/mgr/test_module_selftest.py

index 7ac2960371cd745b02dfc68c9fd766668530c421..efd7d13d87406fef8cfaaad50dc68be18b807309 100644 (file)
@@ -208,6 +208,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")