Docker daemon floods logs with false errors: Error getting service... service ... not found #45316
Labels
area/logging
area/swarm
kind/bug
Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed.
status/0-triage
Description
Hi!
Recently spotted that the Docker with a swarm initiated puts a lot of messages to the system logs about the unavailability of the service after looking for this service by the task id.
The example and investigation based on this example:
Take some container (in my case a task of 'es_test' service)
Its task id is
p438c59lx1k1g7rq4etfyh32c
With docker daemon debug enabled we see the following picture.
AFAICS, docker probes the id
p438c59lx1k1g7rq4etfyh32c
supposing it to be a container, then an image, network, and so on.These entities are not found and on the default level of logging, we get one of these messages:
error msg="Error getting service p438c59lx1k1g7rq4etfyh32c: service p438c59lx1k1g7rq4etfyh32c not found"
At the end of probing docker eventually finds the id as a task and goes on:
This is done for all task ids in the system and that's the way I'm getting flooded with
Error getting service...
messages.Can you please help to sort out this issue? Is this an expected behavior or something I can adjust in configs?
Thank you in advance!
Reproduce
Expected behavior
Docker should not try to get the various entities using the task ID and thus causing the errors.
docker version
docker info
Additional Info
No response
The text was updated successfully, but these errors were encountered: