Werk #14828: Docker agent plugin: Handle race conditions caused by removed containers

Komponente Checks & agents
Titel Docker agent plugin: Handle race conditions caused by removed containers
Datum 14.11.2022
Checkmk Edition Checkmk Raw (CRE)
Checkmk-Version 2.0.0p31 2.1.0p17 2.2.0b1
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen

As of this werk, the docker agent plugin handles the following two race conditions:

  • Removal of a container exactly at the time when the agent plugin attempts to query container statistics (CPU usage etc.). Before this werk, depending on the docker version, the plugin crashed with either requests.exceptions.JSONDecodeError or json.decoder.JSONDecodeError.
  • For old docker versions only (eg. 1.31): Removal of a container in between querying the list of containers on the target system and subsequently querying the individual containers. For newer docker versions, the agent plugin already handled this race condition before this werk.

Note that users have to update the agent plugin on affected systems in order to benefit from this werk.

Zur Liste aller Werks