Skip to content

Commit

Permalink
Install virtualenv < 20.0.19 in CentOS7
Browse files Browse the repository at this point in the history
20.0.19 has caused issue[1] when running in CentOS7,
until it's fixed in next release and is in nodepool
images, let's workaround by installing older version.

[1] pypa/virtualenv#1810
Change-Id: I065c96a3f871f477ce572a1e508d489437af7d9c
  • Loading branch information
karelyatin committed May 4, 2020
1 parent f51d55f commit fecc3ee
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions playbooks/base/pre.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,10 @@
when:
- _worker_is_sudoer.rc == 0
- ansible_distribution != "Fedora" or (ansible_distribution == "Fedora" and ansible_distribution_major_version|int > 28)

# until /~https://github.com/pypa/virtualenv/issues/1810 is fixed and is in nodepool images
- name: install virtualenv < 20.0.19 in CentOS 7
command: sudo pip install 'virtualenv<20.0.19'
when:
- _worker_is_sudoer.rc == 0
- ansible_distribution == "CentOS" and ansible_distribution_major_version|int == 7

0 comments on commit fecc3ee

Please sign in to comment.