Containers' IpcMode causes containers restart during reconfigure
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla-ansible |
New
|
High
|
Chason Chan |
Bug Description
When doing a kolla-ansible reconfigure with docker-ce >= 17.09, almost every containers are restarted (except the one with docker HostConfig IpcMode = host), even if there no containers change nor configuration changes.
It seems that docker-ce changed their default behavior about IpcMode default configuration from "" to shareable (will be private in a future version) since docker-ce version 17.09 (https:/
When kolla-ansible compares the containers (Check *** containers task), the module kolla_docker.py compares the IpcMode required by kolla (in most of the case IpcMode is omitted) with the one returned by docker: IpcMode = shareable) and will return changed = true, notifying the Restart <container name> container handler.
This problem does not happen with docker-ce 17.06
This bug was tested on :
Centos 7.4.1708
Docker-ce 17.09 / 17.06
Kolla-Ansible 5.0.1
Kolla containers built from source (5.0.1 on Centos latest image)
The problem will certainly also affect Ubuntu 16.04
Changed in kolla-ansible: | |
importance: | Undecided → High |
Changed in kolla-ansible: | |
assignee: | nobody → Chason Chan (chen-xing) |
As a workaround, you can explicitly set ipc_mode in docker_ common_ options, for example:
docker_ common_ options:
ipc_mode: "private"