[BUG] mk_docker.py got an unexpected keyword argument 'ignore_removed'

CMK version: CheckMK Enterprise 2.1.0p15
OS version: Ubuntu 20.04 LTS (CheckMK Server), Ubuntu 18.04 LTS (monitored servers with docker)

Error Message

<<<docker_node_info:sep(124)>>>
@docker_version_info|{"PluginVersion": "0.1", "DockerPyVersion": "2.5.1"}
<<<docker_node_info:sep(0)>>>
{"Unknown": "Plugin exception in MKDockerClient.__init__: list() got an unexpected keyword argument 'ignore_removed'"}

After Upgrading to 2.1.0p15 and distributiong the new agents, mk_docker.py yields UNKN status on some servers.

It seems to be originating from the following mk_docker.py code:

class MKDockerClient(docker.DockerClient):
    """a docker.DockerClient that caches containers and node info"""

    API_VERSION = "auto"
    _DEVICE_MAP_LOCK = multiprocessing.Lock()

    def __init__(self, config):
        super(MKDockerClient, self).__init__(config["base_url"], version=MKDockerClient.API_VERSION)
        all_containers = self.containers.list(all=True, ignore_removed=True)

If I replace

all_containers = self.containers.list(all=True, ignore_removed=True)

with

all_containers = self.containers.list(all=True)

the check seems to work again.

Does anyone else have this problem or is it just me?

Best regards,
pixelpoint

[EDIT]
Edited Ubuntu Versions of monitored hosts (problem only shows on Ubuntu 18.04 LTS servers)

Same here. :frowning:
Came with 2.1.0p15.

Hey @HenriWahl ,

at least I’m not alone with these messages :slight_smile:
I only get this error on Ubuntu Servers with 18.04 LTS installed, how about you?
Do you see them anywhere else?

Yes, actually this is what these hosts have in common - running Ubuntu 18.04.

i got the same problem