From 5b964963998dbac029bd7c0b1a6e87eb4a2c28ac Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Tue, 29 May 2018 09:49:25 +0100 Subject: [PATCH] Pin cmd2 to the last python2 version of the library The cmd2-0.9.0 is python3-only and the rally venv is built unconstrained, so it's trying to bring in the latest version which is incompatible with python2. We pin the library to ensure that the venv build completes correctly. We also re-arrange the package list to be alphabetically sorted. Depends-On: https://review.openstack.org/570879 Change-Id: I1e259ce98fc8517c0cd00a04d6fe7b3f0703f5b4 --- defaults/main.yml | 5 +++-- releasenotes/notes/cmd2-0.9.0-838765e91d9be69e.yaml | 7 +++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 releasenotes/notes/cmd2-0.9.0-838765e91d9be69e.yaml diff --git a/defaults/main.yml b/defaults/main.yml index de217e9..2b18056 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -51,10 +51,11 @@ rally_requires_pip_packages: - virtualenv rally_pip_packages: - - setuptools + - ansible==2.3.2.0 + - cmd2<0.9.0 # >=0.9.0 is python3 only - pymysql - rally - - ansible==2.3.2.0 + - setuptools # The inventory group where Rally will be installed. # This variable is used by the repo_build process to determine diff --git a/releasenotes/notes/cmd2-0.9.0-838765e91d9be69e.yaml b/releasenotes/notes/cmd2-0.9.0-838765e91d9be69e.yaml new file mode 100644 index 0000000..70dc3d9 --- /dev/null +++ b/releasenotes/notes/cmd2-0.9.0-838765e91d9be69e.yaml @@ -0,0 +1,7 @@ +--- +issues: + - | + All OSA releases earlier than 17.0.5, 16.0.4, and 15.1.22 will fail to build the + rally venv due to the release of the new cmd2-0.9.0 python library. Deployers are + encouraged to update to the latest OSA release which pins to an appropriate version + which is compatible with python2.