Bug 1344339

Summary: install_venv script fails to open requirements file
Product: [Community] RDO Reporter: John Trowbridge <jtrowbri>
Component: tempestAssignee: Daniel Mellado <dmellado>
Status: CLOSED NOTABUG QA Contact: tkammer
Severity: medium Docs Contact:
Priority: unspecified    
Version: MitakaCC: gchamoul, whayutin
Target Milestone: ---   
Target Release: trunk   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-29 09:36:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description John Trowbridge 2016-06-09 12:46:03 UTC
Description of problem:
tripleo-quickstart (https://github.com/openstack/tripleo-quickstart) uses the install_venv script in the tempest rpm, because otherwise we hit rhbz#1333884

However, now the install_venv script is also failing due to missing requirements.txt. In order to use tempest for validating a TripleO deployment we need either this or rhbz#1333884 to be fixed.

Version-Release number of selected component (if applicable):
openstack-tempest-12.0.1.dev139

How reproducible:
100%

Steps to Reproduce:

After a successful TripleO deployment
1. /usr/share/openstack-tempest-12.0.1.dev139/tools/configure-tempest-directory
2. python ./tools/install_venv.py

Actual results:
Fails with:
Could not open requirements file: [Errno 2] No such file or directory: '/home/stack/tempest/requirements.txt'

Expected results:
Successfully installs tempest venv

Additional info:

+ /usr/share/openstack-tempest-12.0.1.dev139/tools/configure-tempest-directory
+ python ./tools/install_venv.py
Downloading/unpacking pip>=1.4 from https://pypi.python.org/packages/e7/a8/7556133689add8d1a54c0b14aeff0acb03c64707ce100ecd53934da1aa13/pip-8.1.2.tar.gz#md5=87083c0b9867963b29f7aba3613e8f4a
  Running setup.py egg_info for package pip
    
    warning: no previously-included files found matching '.coveragerc'
    warning: no previously-included files found matching '.mailmap'
    warning: no previously-included files found matching '.travis.yml'
    warning: no previously-included files found matching '.landscape.yml'
    warning: no previously-included files found matching 'pip/_vendor/Makefile'
    warning: no previously-included files found matching 'tox.ini'
    warning: no previously-included files found matching 'dev-requirements.txt'
    warning: no previously-included files found matching 'appveyor.yml'
    no previously-included directories found matching '.github'
    no previously-included directories found matching '.travis'
    no previously-included directories found matching 'docs/_build'
    no previously-included directories found matching 'contrib'
    no previously-included directories found matching 'tasks'
    no previously-included directories found matching 'tests'
Installing collected packages: pip
  Found existing installation: pip 1.4.1
    Uninstalling pip:
      Successfully uninstalled pip
  Running setup.py install for pip
    
    warning: no previously-included files found matching '.coveragerc'
    warning: no previously-included files found matching '.mailmap'
    warning: no previously-included files found matching '.travis.yml'
    warning: no previously-included files found matching '.landscape.yml'
    warning: no previously-included files found matching 'pip/_vendor/Makefile'
    warning: no previously-included files found matching 'tox.ini'
    warning: no previously-included files found matching 'dev-requirements.txt'
    warning: no previously-included files found matching 'appveyor.yml'
    no previously-included directories found matching '.github'
    no previously-included directories found matching '.travis'
    no previously-included directories found matching 'docs/_build'
    no previously-included directories found matching 'contrib'
    no previously-included directories found matching 'tasks'
    no previously-included directories found matching 'tests'
    Installing pip script to /home/stack/tempest/.venv/bin
    Installing pip2.7 script to /home/stack/tempest/.venv/bin
    Installing pip2 script to /home/stack/tempest/.venv/bin
Successfully installed pip
Cleaning up...
Collecting setuptools
  Downloading setuptools-22.0.5-py2.py3-none-any.whl (510kB)
Installing collected packages: setuptools
  Found existing installation: setuptools 0.9.8
    Uninstalling setuptools-0.9.8:
      Successfully uninstalled setuptools-0.9.8
Successfully installed setuptools-22.0.5
Collecting pbr
  Downloading pbr-1.10.0-py2.py3-none-any.whl (96kB)
Installing collected packages: pbr
Successfully installed pbr-1.10.0
Could not open requirements file: [Errno 2] No such file or directory: '/home/stack/tempest/requirements.txt'
Command "tools/with_venv.sh pip install --upgrade -r /home/stack/tempest/requirements.txt -r /home/stack/tempest/test-requirements.txt" failed.