-
-
Save odyssey4me/e4f2be1bc6dfd5c8745a4c5e9b96196f to your computer and use it in GitHub Desktop.
Using a different openstacksdk with os_tempest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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