Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python.d/dockerd plugin update error #5200

Closed
jdelvecchio opened this issue Jan 17, 2019 · 9 comments · Fixed by #5217
Closed

python.d/dockerd plugin update error #5200

jdelvecchio opened this issue Jan 17, 2019 · 9 comments · Fixed by #5217
Assignees
Labels

Comments

@jdelvecchio
Copy link

jdelvecchio commented Jan 17, 2019

Bug report summary

Hi,

I'm trying to monitor healthy/unhealthy containers with the python.d/dockerd plugin but I get this error :

2019-01-17 14:49:24: python.d INFO: dockerd: local: check() => [OK]
2019-01-17 14:49:26: python.d ERROR: dockerd: local: update() unhandled exception: list() got an unexpected keyword argument 'sparse'
2019-01-17 14:49:27: python.d ERROR: dockerd: local: update() unhandled exception: list() got an unexpected keyword argument 'sparse'
2019-01-17 14:49:28: python.d ERROR: dockerd: local: update() unhandled exception: list() got an unexpected keyword argument 'sparse'
2019-01-17 14:49:29: python.d ERROR: dockerd: local: update() unhandled exception: list() got an unexpected keyword argument 'sparse'
2019-01-17 14:49:30: python.d ERROR: dockerd: local: update() unhandled exception: list() got an unexpected keyword argument 'sparse'
2019-01-17 14:49:33: python.d ERROR: dockerd: local: update() unhandled exception: list() got an unexpected keyword argument 'sparse'
2019-01-17 14:49:36: python.d ERROR: dockerd: local: update() unhandled exception: list() got an unexpected keyword argument 'sparse'
2019-01-17 14:49:39: python.d ERROR: dockerd: local: update() unhandled exception: list() got an unexpected keyword argument 'sparse'
2019-01-17 14:49:42: python.d ERROR: dockerd: local: update() unhandled exception: list() got an unexpected keyword argument 'sparse'
2019-01-17 14:49:45: python.d ERROR: dockerd: local: update() unhandled exception: list() got an unexpected keyword argument 'sparse'
2019-01-17 14:49:51: python.d ERROR: dockerd: local: update() unhandled exception: list() got an unexpected keyword argument 'sparse'

The initial check seems ok but the update doesn't work. No charts and alarms are configured with dockerd.

OS / Environment

Ubuntu 18.04
Netdata commit version a67afbe

Component Name

python.d/dockerd

Steps To Reproduce

Install Netdata
Install docker-ce and docker packages
Install python-docker package (with apt)

Expected behavior

The dockerd plugin works and starts monitoring health/unhealthy containers

@jdelvecchio jdelvecchio changed the title python.d/dockerd plugin error python.d/dockerd plugin update error Jan 17, 2019
@jdelvecchio
Copy link
Author

Got it fixed by installer python-docker with pip instead of system packages.

What version of python-docker is required for this module to work ?

@ilyam8
Copy link
Member

ilyam8 commented Jan 17, 2019

@jdelvecchio

Good question.

cc: @tuxity

What version of python-docker is required for this module to work ?

According docker changelog minimum required version is 3.2.0 ( i see Added sparse argument to DockerClient.containers.list())

@ilyam8
Copy link
Member

ilyam8 commented Jan 17, 2019

Ye, ubuntu 18.04 has 2.5.1
https://packages.ubuntu.com/search?suite=bionic&searchon=names&keywords=python-docker

@tuxity
Copy link
Contributor

tuxity commented Jan 17, 2019

Hello,

Which version of docker do you have ?

I work with recent ones (Docker version 18.09.0, build 4d60db4, for ex) and no problems using pip docker package
They recently renamed the pip package to docker, before it was called docker-py

@ilyam8
Copy link
Member

ilyam8 commented Jan 17, 2019

@tuxity i think we need to add minimum version req to module readme + check version in check

@ilyam8
Copy link
Member

ilyam8 commented Jan 17, 2019

@tuxity and it was a super quick response 👍 i expected it will take some time because of your github status 😄

@tuxity
Copy link
Contributor

tuxity commented Jan 17, 2019

@ilyam8 Yes, I think something like that should be added, or adapt the code to handle older docker api (without sparse in this case). No time to do a fix and tests, I will let you handle this.

@jdelvecchio
Copy link
Author

I had python-docker 2.5.1
I uninstalled it and installed python-docker with pip :
pip install docker

I don't think the proper "docker" version here was the problem, only the python-docker package

@ilyam8
Copy link
Member

ilyam8 commented Jan 18, 2019

fixed in #5217

@ilyam8 ilyam8 added collectors/python.d area/collectors Everything related to data collection and removed area/external/python labels Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants