Kolla-ansible complains, "No command specified"

Bug #1668402 reported by kbaegis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
New
Undecided
Unassigned

Bug Description

Gentoo with docker 1.13.1, docker-py 2.1.0, ansible 2.2.1.0, and kolla-ansible stable/ocata

Following bug reported for python 2.7/3.4

Passes all kolla-ansible prechecks.

**Note: ansible/roles/prechecks/tasks/package_checks.yml should have:
:3: command: "{{ ansible_python.executable }} -c \"import docker; print (docker.__version__)\""
not :3: command: "{{ ansible_python.executable }} -c \"import docker; print docker.__version__\""
for python 3+

Error -vvv output:

TASK [common : Starting fluentd container] *************************************
fatal: [localhost]: FAILED! => {"changed": true, "failed": true, "msg": "'Traceback (most recent call last):\\n File \"/usr/lib64/python3.4/site-packages/docker/api/client.py\", line 214, in _raise_for_status\\n response.raise_for_status()\\n File \"/usr/lib64/python3.4/site-packages/requests/models.py\", line 909, in raise_for_status\\n raise HTTPError(http_error_msg, response=self)\\nrequests.exceptions.HTTPError: 400 Client Error: Bad Request for url: http+docker://localunixsocket/v1.26/containers/create?name=fluentd\\n\\nDuring handling of the above exception, another exception occurred:\\n\\nTraceback (most recent call last):\\n File \"/tmp/ansible_belmzyst/ansible_module_kolla_docker.py\", line 781, in main\\n result = bool(getattr(dw, module.params.get(\\'action\\'))())\\n File \"/tmp/ansible_belmzyst/ansible_module_kolla_docker.py\", line 603, in start_container\\n self.create_container()\\n File \"/tmp/ansible_belmzyst/ansible_module_kolla_docker.py\", line 573, in create_container\\n self.dc.create_container(**options)\\n File \"/usr/lib64/python3.4/site-packages/docker/api/container.py\", line 446, in create_container\\n return self.create_container_from_config(config, name)\\n File \"/usr/lib64/python3.4/site-packages/docker/api/container.py\", line 457, in create_container_from_config\\n return self._result(res, True)\\n File \"/usr/lib64/python3.4/site-packages/docker/api/client.py\", line 220, in _result\\n self._raise_for_status(response)\\n File \"/usr/lib64/python3.4/site-packages/docker/api/client.py\", line 216, in _raise_for_status\\n raise create_api_error_from_http_exception(e)\\n File \"/usr/lib64/python3.4/site-packages/docker/errors.py\", line 30, in create_api_error_from_http_exception\\n raise cls(e, response=response, explanation=explanation)\\ndocker.errors.APIError: 400 Client Error: Bad Request for url: http+docker://localunixsocket/v1.26/containers/create?name=fluentd (\"No command specified\")\\n'"}

kbaegis (kbaegis)
description: updated
Revision history for this message
Jeffrey Zhang (jeffrey4l) wrote :

There must be some wrong in gentoo packaging. check [0][1]. docker-py > 2.0.0 is not back compatible and it is renamed to docker, too.

Kolla do not support docker > 2.0.0 rgith now too.

Mark this duplicated to 1668346

[0] https://bugs.launchpad.net/kolla/+bug/1668346
[1] https://github.com/docker/docker-py/releases/tag/2.0.0

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.