ReadTimeout UnixHTTPConnectionPool
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla-ansible |
Fix Released
|
Medium
|
Mark Goddard | ||
Rocky |
Fix Released
|
Medium
|
Unassigned | ||
Stein |
Fix Released
|
Medium
|
Unassigned | ||
Train |
Fix Released
|
Medium
|
Unassigned | ||
Ussuri |
Fix Released
|
Medium
|
Mark Goddard |
Bug Description
During a kolla-ansible deploy, I frequently have encountered the following failure:
fatal: [localhost]: FAILED! => {"changed": true, "msg": "'Traceback (most recent call last):\\n File \"/tmp/
The ReadTimeout occurs on different tasks. The underlying cause is that the docker daemon is not responding within the default 60 second timeout. The workaround when running docker or docker-compose is to set timeout environment variables, e.g.:
export DOCKER_
export COMPOSE_
See also https:/
However, I have been unable to set these directly in the kolla-ansible playbook 'ansible/site.yml' (via environment variables) and setting the environment variables in bash has no affect on the read timeout.
Does anyone know how to set the docker timeout variable variables in kolla-ansible?
I have temporarily set the nice priority value of the dockerd process to -10 which does avoid the the issue some of the time. Setting the timeout value would be the correct solution.
stable/queens release
description: | updated |
Changed in kolla-ansible: | |
importance: | Undecided → Medium |
I don't think this is currently possible. From looking at the docker-py code [1], we should be able to pass a timeout argument to the docker.APIClient constructor. We'd need a new module argument for the kolla_docker module in kolla-ansible.
[1] https:/ /github. com/docker/ docker- py/blob/ c344660f20353be dec6c18ef22b25b 3083c8fe3f/ docker/ api/client. py#L102