I have installed the latest docker version 1.11.2 and the prechecks task on kolla-ansible is failing even though the minimum version is 1.10. Please see the ansible logs below:
TASK [prechecks : Checking Docker version] *************************************
fatal: [node5]: FAILED! => {"changed": false, "cmd": ["docker", "version"], "delta": "0:00:00.013148", "end": "2016-07-13 08:19:34.490367", "failed": true, "failed_when_result": true, "rc": 1, "start": "2016-07-13 08:19:34.477219", "stderr": "Cannot connect to the Docker daemon. Is the docker daemon running on this host?", "stdout": "Client:\n Version: 1.11.2\n API version: 1.23\n Go version: go1.5.4\n Git commit: b9f10c9\n Built: Wed Jun 1 22:00:43 2016\n OS/Arch: linux/amd64", "stdout_lines": ["Client:", " Version: 1.11.2", " API version: 1.23", " Go version: go1.5.4", " Git commit: b9f10c9", " Built: Wed Jun 1 22:00:43 2016", " OS/Arch: linux/amd64"], "warnings": []}
fatal: [node1]: FAILED! => {"changed": false, "cmd": ["docker", "version"], "delta": "0:00:00.018061", "end": "2016-07-13 08:19:34.515649", "failed": true, "failed_when_result": true, "rc": 1, "start": "2016-07-13 08:19:34.497588", "stderr": "Cannot connect to the Docker daemon. Is the docker daemon running on this host?", "stdout": "Client:\n Version: 1.11.2\n API version: 1.23\n Go version: go1.5.4\n Git commit: b9f10c9\n Built: Wed Jun 1 22:00:43 2016\n OS/Arch: linux/amd64", "stdout_lines": ["Client:", " Version: 1.11.2", " API version: 1.23", " Go version: go1.5.4", " Git commit: b9f10c9", " Built: Wed Jun 1 22:00:43 2016", " OS/Arch: linux/amd64"], "warnings": []}
fatal: [node4]: FAILED! => {"changed": false, "cmd": ["docker", "version"], "delta": "0:00:00.012889", "end": "2016-07-13 08:19:34.516979", "failed": true, "failed_when_result": true, "rc": 1, "start": "2016-07-13 08:19:34.504090", "stderr": "Cannot connect to the Docker daemon. Is the docker daemon running on this host?", "stdout": "Client:\n Version: 1.11.2\n API version: 1.23\n Go version: go1.5.4\n Git commit: b9f10c9\n Built: Wed Jun 1 22:00:43 2016\n OS/Arch: linux/amd64", "stdout_lines": ["Client:", " Version: 1.11.2", " API version: 1.23", " Go version: go1.5.4", " Git commit: b9f10c9", " Built: Wed Jun 1 22:00:43 2016", " OS/Arch: linux/amd64"], "warnings": []}
fatal: [node2]: FAILED! => {"changed": false, "cmd": ["docker", "version"], "delta": "0:00:00.012024", "end": "2016-07-13 08:19:34.535055", "failed": true, "failed_when_result": true, "rc": 1, "start": "2016-07-13 08:19:34.523031", "stderr": "Cannot connect to the Docker daemon. Is the docker daemon running on this host?", "stdout": "Client:\n Version: 1.11.2\n API version: 1.23\n Go version: go1.5.4\n Git commit: b9f10c9\n Built: Wed Jun 1 22:00:43 2016\n OS/Arch: linux/amd64", "stdout_lines": ["Client:", " Version: 1.11.2", " API version: 1.23", " Go version: go1.5.4", " Git commit: b9f10c9", " Built: Wed Jun 1 22:00:43 2016", " OS/Arch: linux/amd64"], "warnings": []}
fatal: [node3]: FAILED! => {"changed": false, "cmd": ["docker", "version"], "delta": "0:00:00.011852", "end": "2016-07-13 08:19:34.538148", "failed": true, "failed_when_result": true, "rc": 1, "start": "2016-07-13 08:19:34.526296", "stderr": "Cannot connect to the Docker daemon. Is the docker daemon running on this host?", "stdout": "Client:\n Version: 1.11.2\n API version: 1.23\n Go version: go1.5.4\n Git commit: b9f10c9\n Built: Wed Jun 1 22:00:43 2016\n OS/Arch: linux/amd64", "stdout_lines": ["Client:", " Version: 1.11.2", " API version: 1.23", " Go version: go1.5.4", " Git commit: b9f10c9", " Built: Wed Jun 1 22:00:43 2016", " OS/Arch: linux/amd64"], "warnings": []}
Could you attempt the following and report back?
First, make sure that docker permissions aren't the issue. You can fix them later for better security, but start with the following:
$ sudo usermod -aG docker
Then if that doesn't work, you can attempt to modify the following: ansible/ roles/prechecks /vars/main. yml
$ sudo vi /opt/kolla/
You'll see max/min settings. Adjust for your Docker version.
Reinstall like the following:
$ sudo pip install ./opt/kolla/ --upgrade
Does that get you past this hurdle?