Skip to content

no suitable node available for task #2707

@dani-docker

Description

@dani-docker

When logs is set to debug, user can see many log entries like this:

Jul 13 15:50:42 ucpleader dockerd: time="2018-07-13T15:50:42.940480757Z" level=debug msg="no suitable node available for task" module=node node.id=xjmdhj9quobn9zufkezwlbfng task.id=3h6xnbt75p66i54l5619yp1f7

trying to inspect the task:

[centos@ucpleader ~]$ docker inspect 3h6xnbt75p66i54l5619yp1f7
[]
Error: No such object: 3h6xnbt75p66i54l5619yp1f

Steps To Reproduce:

steps to repro:

  • set daemon.log to debug
  • create a service with a node constraint that does not exist:
    ex: docker service create -d --constraint 'node.labels.type == queue' alpine sleep 10000
  • watch the logs, you should see an error
    no suitable node available for task
  • delete the service and invoke the tick() by creating another service; watch the log and notice the same warning taskID in pops up after service is deleted

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions