Skip to content

Instantly share code, notes, and snippets.

@odyssey4me
Created July 28, 2020 09:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save odyssey4me/e4f2be1bc6dfd5c8745a4c5e9b96196f to your computer and use it in GitHub Desktop.
Save odyssey4me/e4f2be1bc6dfd5c8745a4c5e9b96196f to your computer and use it in GitHub Desktop.
Using a different openstacksdk with os_tempest
# ansible requires openstacksdk>=0.12 do the resource setup, however
# queens upper-constraint has openstacksdk==0.11.36, so we need to
# implement a custom venv with the right openstacksdk to make it work
- name: Queens specific settings and tasks
when: release in ['queens']
vars:
sdk_venv_path: "{{ ansible_user_dir }}/.sdk"
block:
- name: Set tempest_service_setup_host_python_interpreter
set_fact:
tempest_service_setup_host_python_interpreter: "{{ sdk_venv_path }}/bin/python"
- name: Prepare openstacksdk venv
import_role:
name: "python_venv_build"
vars:
venv_build_constraints:
- "--constraint https://releases.openstack.org/constraints/upper/rocky"
venv_install_destination_path: "{{ sdk_venv_path }}"
venv_pip_packages:
- 'openstacksdk'
venv_wheel_build_enable: no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment