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>
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")