Discussion:
mgr[influx] Cannot transmit statistics: influxdb python module not found.
Add Reply
k***@gmail.com
2018-02-12 16:03:30 UTC
Reply
Permalink
Raw Message
Dear all,

I'd like to store ceph luminous metrics into influxdb. It seems like influx plugin has been already
backported for lumious:
rpm -ql ceph-mgr-12.2.2-0.el7.x86_64|grep -i influx
/usr/lib64/ceph/mgr/influx
/usr/lib64/ceph/mgr/influx/__init__.py
/usr/lib64/ceph/mgr/influx/__init__.pyc
/usr/lib64/ceph/mgr/influx/__init__.pyo
/usr/lib64/ceph/mgr/influx/module.py
/usr/lib64/ceph/mgr/influx/module.pyc
/usr/lib64/ceph/mgr/influx/module.pyo

So following http://docs.ceph.com/docs/master/mgr/influx/ doc I enabled influx plugin by executing
the following command on mgr node:
ceph mgr module enable influx

but in ceph log I see the following error:
2018-02-12 15:51:31.241854 7f95e7942600 0 ceph version 12.2.2
(cf0baeeeeba3b47f9427c6c97e2144b094b7e5ba) luminous (stable), process (unknown), pid 96425
[....]
2018-02-12 15:51:31.422414 7f95dec29700 1 mgr init Loading python module 'influx'
[....]
2018-02-12 15:51:32.227206 7f95c36ec700 1 mgr load Constructed class from module: influx
[....]
2018-02-12 15:51:32.228163 7f95c0ee7700 0 mgr[influx] Cannot transmit statistics: influxdb python
module not found. Did you install it?

Indeed there is no python-influxdb module install on my mgr node (CentOS 7 x64) but yum search can't
find it with the following repos enabled:
repo id repo
name
status
Ceph/x86_64 Ceph
packages for x86_64
Ceph-noarch Ceph
noarch packages
base/7/x86_64
CentOS-7 - Base
ceph-source Ceph
source packages
epel/x86_64 Extra
Packages for Enterprise Linux 7 - x86_64
extras/7/x86_64
CentOS-7 - Extras
updates/7/x86_64
CentOS-7 - Updates

Python version is 2.7.5.

Is 'pip install' the only way to go or there is still some option to have required python module via
rpm? I wonder how other people deals with that issue?
Benjeman Meekhof
2018-02-12 20:50:10 UTC
Reply
Permalink
Raw Message
In our case I think we grabbed the SRPM from Fedora and rebuilt it on
Scientific Linux (another RHEL derivative). Presumably the binary
didn't work or I would have installed it directly. I'm not quite sure
why it hasn't migrated to EPEL yet.

I haven't tried the SRPM for latest releases, we're actually quite far
behind the current python-influx version since I built it a while back
but if I were you I'd grab whatever SRPM gets you the latest
python-influxdb release and give it a try.

http://rpmfind.net/linux/rpm2html/search.php?query=python-influxdb

thanks,
Ben
Post by k***@gmail.com
Dear all,
I'd like to store ceph luminous metrics into influxdb. It seems like influx
rpm -ql ceph-mgr-12.2.2-0.el7.x86_64|grep -i influx
/usr/lib64/ceph/mgr/influx
/usr/lib64/ceph/mgr/influx/__init__.py
/usr/lib64/ceph/mgr/influx/__init__.pyc
/usr/lib64/ceph/mgr/influx/__init__.pyo
/usr/lib64/ceph/mgr/influx/module.py
/usr/lib64/ceph/mgr/influx/module.pyc
/usr/lib64/ceph/mgr/influx/module.pyo
So following http://docs.ceph.com/docs/master/mgr/influx/ doc I enabled
ceph mgr module enable influx
2018-02-12 15:51:31.241854 7f95e7942600 0 ceph version 12.2.2
(cf0baeeeeba3b47f9427c6c97e2144b094b7e5ba) luminous (stable), process (unknown), pid 96425
[....]
2018-02-12 15:51:31.422414 7f95dec29700 1 mgr init Loading python module 'influx'
[....]
2018-02-12 15:51:32.227206 7f95c36ec700 1 mgr load Constructed class from module: influx
[....]
2018-02-12 15:51:32.228163 7f95c0ee7700 0 mgr[influx] Cannot transmit
statistics: influxdb python module not found. Did you install it?
Indeed there is no python-influxdb module install on my mgr node (CentOS 7
repo id
repo name status
Ceph/x86_64
Ceph packages for x86_64
Ceph-noarch
Ceph noarch packages
base/7/x86_64 CentOS-7 - Base
ceph-source
Ceph source packages
epel/x86_64
Extra Packages for Enterprise Linux 7 - x86_64
extras/7/x86_64 CentOS-7 - Extras
updates/7/x86_64 CentOS-7 - Updates
Python version is 2.7.5.
Is 'pip install' the only way to go or there is still some option to have
required python module via rpm? I wonder how other people deals with that
issue?
_______________________________________________
ceph-users mailing list
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
k***@gmail.com
2018-02-15 06:18:43 UTC
Reply
Permalink
Raw Message
Post by Benjeman Meekhof
In our case I think we grabbed the SRPM from Fedora and rebuilt it on
Scientific Linux (another RHEL derivative).
I've just done the same: rebuild from fc28 srpm (some spec-file tunning was required to build it on
centos 7).
Post by Benjeman Meekhof
Presumably the binary
didn't work or I would have installed it directly. I'm not quite sure
why it hasn't migrated to EPEL yet.
I guess one of the reason can be https://bugzilla.redhat.com/show_bug.cgi?id=1336097
Post by Benjeman Meekhof
I haven't tried the SRPM for latest releases, we're actually quite far
behind the current python-influx version since I built it a while back
but if I were you I'd grab whatever SRPM gets you the latest
python-influxdb release and give it a try.
the mentioned in my initial email error disappeared
Post by Benjeman Meekhof
http://rpmfind.net/linux/rpm2html/search.php?query=python-influxdb
Ben, thanks for sharing your experience and the rest of info!
Post by Benjeman Meekhof
thanks,
Ben
Post by k***@gmail.com
Dear all,
I'd like to store ceph luminous metrics into influxdb. It seems like influx
rpm -ql ceph-mgr-12.2.2-0.el7.x86_64|grep -i influx
/usr/lib64/ceph/mgr/influx
/usr/lib64/ceph/mgr/influx/__init__.py
/usr/lib64/ceph/mgr/influx/__init__.pyc
/usr/lib64/ceph/mgr/influx/__init__.pyo
/usr/lib64/ceph/mgr/influx/module.py
/usr/lib64/ceph/mgr/influx/module.pyc
/usr/lib64/ceph/mgr/influx/module.pyo
So following http://docs.ceph.com/docs/master/mgr/influx/ doc I enabled
ceph mgr module enable influx
2018-02-12 15:51:31.241854 7f95e7942600 0 ceph version 12.2.2
(cf0baeeeeba3b47f9427c6c97e2144b094b7e5ba) luminous (stable), process
(unknown), pid 96425
[....]
2018-02-12 15:51:31.422414 7f95dec29700 1 mgr init Loading python module 'influx'
[....]
2018-02-12 15:51:32.227206 7f95c36ec700 1 mgr load Constructed class from module: influx
[....]
2018-02-12 15:51:32.228163 7f95c0ee7700 0 mgr[influx] Cannot transmit
statistics: influxdb python module not found. Did you install it?
Indeed there is no python-influxdb module install on my mgr node (CentOS 7
repo id
repo name status
Ceph/x86_64
Ceph packages for x86_64
Ceph-noarch
Ceph noarch packages
base/7/x86_64 CentOS-7 - Base
ceph-source
Ceph source packages
epel/x86_64
Extra Packages for Enterprise Linux 7 - x86_64
extras/7/x86_64 CentOS-7 - Extras
updates/7/x86_64 CentOS-7 - Updates
Python version is 2.7.5.
Is 'pip install' the only way to go or there is still some option to have
required python module via rpm? I wonder how other people deals with that
issue?
_______________________________________________
ceph-users mailing list
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Marc Roos
2018-02-12 21:50:02 UTC
Reply
Permalink
Raw Message
why not use collectd? centos7 rpms should do fine.
Post by Benjeman Meekhof
In our case I think we grabbed the SRPM from Fedora and rebuilt it on
Scientific Linux (another RHEL derivative).  Presumably the binary
didn't work or I would have installed it directly.  I'm not quite sure
why it hasn't migrated to EPEL yet.
I haven't tried the SRPM for latest releases, we're actually quite far
behind the current python-influx version since I built it a while back
but if I were you I'd grab whatever SRPM gets you the latest
python-influxdb release and give it a try.
http://rpmfind.net/linux/rpm2html/search.php?query=python-influxdb
thanks,
Ben
Post by k***@gmail.com
Dear all,
I'd like to store ceph luminous metrics into influxdb. It seems like influx
rpm -ql ceph-mgr-12.2.2-0.el7.x86_64|grep -i influx
/usr/lib64/ceph/mgr/influx
/usr/lib64/ceph/mgr/influx/__init__.py
/usr/lib64/ceph/mgr/influx/__init__.pyc
/usr/lib64/ceph/mgr/influx/__init__.pyo
/usr/lib64/ceph/mgr/influx/module.py
/usr/lib64/ceph/mgr/influx/module.pyc
/usr/lib64/ceph/mgr/influx/module.pyo
So following http://docs.ceph.com/docs/master/mgr/influx/ doc I enabled
ceph mgr module enable influx
2018-02-12 15:51:31.241854 7f95e7942600  0 ceph version 12.2.2
(cf0baeeeeba3b47f9427c6c97e2144b094b7e5ba) luminous (stable), process
(unknown), pid 96425
[....]
2018-02-12 15:51:31.422414 7f95dec29700  1 mgr init Loading python module
'influx'
[....]
2018-02-12 15:51:32.227206 7f95c36ec700  1 mgr load Constructed class from
module: influx
[....]
2018-02-12 15:51:32.228163 7f95c0ee7700  0 mgr[influx] Cannot transmit
statistics: influxdb python module not found.  Did you install it?
Indeed there is no python-influxdb module install on my mgr node (CentOS 7
repo id
repo name                   status
Ceph/x86_64
Ceph packages for x86_64
Ceph-noarch
Ceph noarch packages
base/7/x86_64 CentOS-7 - Base
ceph-source
Ceph source packages
epel/x86_64
Extra Packages for Enterprise Linux 7 - x86_64
extras/7/x86_64 CentOS-7 - Extras
updates/7/x86_64 CentOS-7 - Updates
Python version is 2.7.5.
Is 'pip install' the only way to go or there is still some option to have
required python module via rpm? I wonder how other people deals with that
issue?
_______________________________________________
ceph-users mailing list
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
_______________________________________________
ceph-users mailing list
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Loading...