TASK Failed : Checking docker SDK version

Bug #1982715 reported by Satish Patel
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
kolla-ansible
In Progress
Undecided
Tom Fifield

Bug Description

Getting following error with latest kolla-ansible code

$ kolla-ansible -i all-in-one prechecks
..
..
TASK [prechecks : Checking docker SDK version] ***********************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "cmd": ["/usr/bin/python3", "-c", "import docker; print(docker.__version__)"], "delta": "0:00:00.026487", "end": "2022-07-25 05:47:36.618366", "failed_when_result": true, "msg": "non-zero return code", "rc": 1, "start": "2022-07-25 05:47:36.591879", "stderr": "Traceback (most recent call last):\n File \"<string>\", line 1, in <module>\nModuleNotFoundError: No module named 'docker'", "stderr_lines": ["Traceback (most recent call last):", " File \"<string>\", line 1, in <module>", "ModuleNotFoundError: No module named 'docker'"], "stdout": "", "stdout_lines": []}

Solution:

$ apt-get install python3-docker

We should document it in koll-ansible dependency section.

Tom Fifield (fifieldt)
Changed in kolla-ansible:
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (master)
Changed in kolla-ansible:
status: Confirmed → In Progress
Tom Fifield (fifieldt)
Changed in kolla-ansible:
assignee: nobody → Tom Fifield (fifieldt)
Revision history for this message
Eugen Mayer (eugenmayer) wrote :

I do not think this is all we need. AFAICS python3-docker is needed on all nodes, not just the node kolla runs on. At least i find the doc changes miss-leading (not even sure it is needed for the kolla-node, but it is needed for controller/computes for sure).

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.