Skip to content

Commit

Permalink
Merge pull request apache#229 from liu-sheng/openlab/issues/65
Browse files Browse the repository at this point in the history
Fix the Mitaka devstack installation
  • Loading branch information
kiwik authored Jun 6, 2018
2 parents 98188df + 7755464 commit 5cd7fc0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/create-devstack-local-conf/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
environment: '{{ zuul | zuul_legacy_vars }}'
when:
- '"zun" in enable_services'
- os_branch != 'stable/mitaka'

- name: create devstack local conf with ceph enabled
shell:
Expand Down
17 changes: 17 additions & 0 deletions roles/install-devstack/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,23 @@
apt install libpcre3-dev -y
ignore_errors: yes

- name: workaround devstack installation on stable/mitaka branch
shell:
cmd: |
set -e
set -x
# Because the pip10 cannot uninstall/upgrade the pre-installed distutils packages
# see: https://github.com/pypa/pip/issues/4805
sed -i '/"Running gate_hook"/ a\
sed -i "s/pip!=8/pip!=8,<10.0.0/" /opt/stack/new/devstack/tools/cap-pip.txt' '{{ ansible_user_dir }}/workspace/devstack-gate/devstack-vm-gate-wrap.sh'
# Because in setuptools>=39, the pkg_resources.parse_version(oslo_utils/versionutils.py) will return an unindexable object
pip install "setuptools==38.0.0"
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
when:
- os_branch == 'stable/mitaka'

- name: Install devstack on {{ os_branch }} branch
shell:
cmd: |
Expand Down

0 comments on commit 5cd7fc0

Please sign in to comment.