Build fails with: you have set Docker as container engine, but the Python library is not found

Bug #2067042 reported by Will Szumski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
In Progress
Undecided
Unassigned

Bug Description

This is occurring in the kayobe-seed-images-rocky9 job:

TASK [Ensure Kolla container images are built] *********************************
Thursday 23 May 2024 15:26:15 +0000 (0:00:00.077) 0:01:02.747 **********
failed: [seed] (item={'regexes': '^base'}) => {"ansible_loop_var": "item", "changed": true, "cmd": "set -o pipefail && . /opt/kayobe/venvs/kolla/bin/activate && kolla-build --config-dir /opt/kayobe/etc/kolla --registry mirror.bhs1.ovh.opendev.org:4447 ^base 2>&1 | tee --append /var/log/kolla-build.log\n", "delta": "0:00:00.419363", "end": "2024-05-23 15:26:15.861108", "item": {"regexes": "^base"}, "msg": "non-zero return code", "rc": 1, "start": "2024-05-23 15:26:15.441745", "stderr": "", "stderr_lines": [], "stdout": "INFO:kolla.common.utils:Using engine: docker\nERROR:kolla.common.utils:Error, you have set Docker as container engine, but the Python library is not found.Try running 'pip install docker'", "stdout_lines": ["INFO:kolla.common.utils:Using engine: docker", "ERROR:kolla.common.utils:Error, you have set Docker as container engine, but the Python library is not found.Try running 'pip install docker'"]}

Seems like we are missing the packaging package:

(kayobe-venv) [vagrant@controller0 vagrant]$ /opt/kayobe/venvs/kolla/bin/pip freeze
certifi==2024.2.2
charset-normalizer==3.3.2
debtcollector==3.0.0
docker==7.1.0
gitdb==4.0.11
GitPython==3.1.43
idna==3.6
Jinja2==3.1.3
kolla @ file:///opt/kayobe/src/kolla
MarkupSafe==2.1.5
netaddr==0.10.1
oslo.config==9.4.0
oslo.i18n==6.3.0
pbr==6.0.0
PyYAML==6.0.1
requests==2.31.0
rfc3986==2.0.0
smmap==5.0.1
stevedore==5.2.0
urllib3==1.26.18
wrapt==1.16.0

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/kolla/+/920381

Changed in kolla:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on kolla (master)

Change abandoned by "Will Szumski <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/kolla/+/920381
Reason: Abandoning in favour of: https://review.opendev.org/c/openstack/kolla/+/920279

Revision history for this message
Will Szumski (willjs) wrote :
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.