Skip to content

Commit 5ef5870

Browse files
mnasiadkayoctozepto
authored andcommitted
baremetal: Install Docker SDK less than 5.0.0
Docker 5.0.0 [1] dropped requirement for six, but still imports it. [1]: docker/docker-py#2807 Closes-Bug: #1928915 Change-Id: I726541f4b3fdc357387a44c6a2153593a10bf282 (cherry picked from commit b053bd8)
1 parent 3b783fb commit 5ef5870

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

ansible/roles/baremetal/tasks/install.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@
137137
- name: Install docker SDK for python
138138
pip:
139139
# NOTE(hrw) docker 2.4.2 is in kolla-ansible requirements
140-
name: docker>=2.4.2
140+
# NOTE(mnasiadka): docker 5.0.0 lacks six in deps but requires it
141+
name: docker>=2.4.2,<5.0.0
141142
executable: "{{ virtualenv is none | ternary('pip3', omit) }}"
142143
virtualenv: "{{ virtualenv is none | ternary(omit, virtualenv) }}"
143144
virtualenv_site_packages: "{{ virtualenv is none | ternary(omit, virtualenv_site_packages) }}"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
fixes:
3+
- |
4+
Fixed an issue where docker python SDK 5.0.0 was failing due to missing
5+
six - introduced a constraint to install version lower than 5.x.
6+
`LP#1928915 <https://launchpad.net/bugs/1928915>`__

0 commit comments

Comments
 (0)