[ceph-users] Ceph mgr influx module on luminous

Stefan Kooman stefan at bit.nl
Thu Oct 5 15:55:12 PDT 2017


Hi,

The influx module had made it's appearance in Mimic. I'm eager to try it out on
luminous. So I went ahead and put the code [1] in /usr/lib/ceph/mgr/influx.

I installed "python-influxdb" because it's a dependency (Ubuntu 16.0.4.3):
 
 Python 2.7.12 (default, Nov 19 2016, 06:48:10) 
 [GCC 5.4.0 20160609] on linux2
 Type "help", "copyright", "credits" or "license" for more information.
 >>> from influxdb import InfluxDBClient
 >>> print InfluxDBClient
 <class 'influxdb.client.InfluxDBClient'>
 >>>

Activating the module:

ceph mgr module enable influx

Gives me (ceph-mgr log):

2017-10-06 00:38:24.183802 7f0f98fcc700 -1 mgr got_mgr_map mgrmap module list changed to (dashboard,influx,restful,status), respawn
2017-10-06 00:38:24.202465 7f9f57e6d500 10 mgr send_beacon sending beacon as gid 2642816 modules dashboard,influx,prometheus,restful,status,zabbix
2017-10-06 00:38:25.256103 7f9f4b9da700  1 mgr init Loading python module 'influx'
2017-10-06 00:38:25.259090 7f9f4b9da700 -1 mgr load Module not found: 'influx'
  File "/usr/lib/ceph/mgr/influx/__init__.py", line 1, in <module>
IndentationError: ('unexpected indent', ('/usr/lib/ceph/mgr/influx/module.py', 10, 4, '    from influxdb import InfluxDBClient\n'))
2017-10-06 00:38:25.259170 7f9f4b9da700 -1 mgr init Error loading module 'influx': (2) No such file or directory
2017-10-06 00:38:25.346411 7f9f4b9da700 -1 log_channel(cluster) log [ERR] : Failed to load ceph-mgr modules: influx

>From above I understand the manager cannot find the module. What else do I need
to do to activate the influx module (in luminous)?

Thanks,

Gr. Stefan

[1]: https://github.com/ceph/ceph/blob/master/src/pybind/mgr/influx/

-- 
| BIT BV  http://www.bit.nl/        Kamer van Koophandel 09090351
| GPG: 0xD14839C6                   +31 318 648 688 / info at bit.nl


More information about the ceph-users mailing list