From 3f5fc948bb7e4775e471376a22358f3cc91f6f7f Mon Sep 17 00:00:00 2001 From: Wido den Hollander Date: Thu, 3 May 2018 12:11:58 +0200 Subject: [PATCH] mgr/influx: Only split string on first occurence of dot (.) Service names are not always osd.X or mon.X, they might be rgw.radosgw.rgw1 This would lead to: Unhandled exception from module 'influx' while running on mgr.mon01: too many values to unpack Only split on the first dot as the rest is the service name Fixes: http://tracker.ceph.com/issues/23996 Signed-off-by: Wido den Hollander (cherry picked from commit bd7d0fc16a90b3fefadc2d6904180a7fd04ef5eb) --- src/pybind/mgr/influx/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/influx/module.py b/src/pybind/mgr/influx/module.py index adeb452701d81..bc66fff96d594 100644 --- a/src/pybind/mgr/influx/module.py +++ b/src/pybind/mgr/influx/module.py @@ -72,7 +72,7 @@ class Module(MgrModule): data = [] for daemon, counters in self.get_all_perf_counters().iteritems(): - svc_type, svc_id = daemon.split(".") + svc_type, svc_id = daemon.split(".", 1) metadata = self.get_metadata(svc_type, svc_id) for path, counter_info in counters.items(): -- 2.39.5