Updated tempest isolation options

This change updates the way that the packages are installed in an
isolated deployment. This ensures that our build packages are used
within the deployment while also allowing temptest to go online and
consume upstream packages from pypi. Additionally this updates
tempest-lib which is needed to make keystone w/ fernet tokens go as
there is an upstream issues with date timestamps with all versions
of tempest-lib that will prohibit the use of fernet tokens.

Change-Id: Ia479610b9ab69d64d1de756099d840b2ab331378
Related-Bug: #1466010
This commit is contained in:
kevin 2015-06-22 15:17:28 -05:00 committed by Ian Cordasco
parent 1f49e06393
commit 2086f6edb1
4 changed files with 15 additions and 2 deletions

View File

@ -157,3 +157,13 @@ heat_service_region: "{{ service_region }}"
openrc_os_auth_url: "{{ keystone_service_internalurl }}"
openrc_os_password: "{{ keystone_auth_admin_password }}"
## Tempest Options
tempest_pip_instructions: >
--isolated
--pre
--allow-all-external
--index-url {{ repo_pip_default_index }}
--extra-index-url https://pypi.python.org/simple
--trusted-host pypi.python.org
--trusted-host {{ openstack_upstream_domain }}

View File

@ -39,8 +39,10 @@ requirements_git_dest: "/opt/requirements_{{ requirements_git_install_branch | r
## Tempest Library
tempestlib_git_repo: https://github.com/openstack/tempest-lib
tempestlib_git_install_branch: 061a2efc71ccce9024f86517edccdb4c82d416bc # HEAD of "master" as of 22.06.2015
tempestlib_git_install_fragments: "yaprtignorerequirements=true"
tempestlib_git_dest: "/opt/tempest-lib_{{ requirements_git_install_branch | replace('/', '_') }}"
## Cryptography
# NOTE(sigmavirus24): Fix this when cryptography 1.0 is released and
# global-requirements.txt allows for it. See also:

View File

@ -82,7 +82,6 @@ tempest_requires_pip_packages:
- python-swiftclient
- python-troveclient
- python-tuskarclient
- python-memcached
- virtualenv
tempest_pip_packages:
@ -102,3 +101,4 @@ tempest_images:
name: "cirros-0.3.3-x86_64-disk.img"
tempest_enable_instance_password: True
tempest_pip_instructions: "--isolated"

View File

@ -38,6 +38,7 @@
delay: 2
tags:
- tempest-git-clone
- tempest-pip-install
- name: Install pip packages for tempest
pip:
@ -45,7 +46,7 @@
state: present
virtualenv: "{{ tempest_git_dest }}"
virtualenv_site_packages: "yes"
extra_args: "--isolated"
extra_args: "{{ tempest_pip_instructions }}"
register: install_packages
until: install_packages|success
retries: 5