pip install does not create /etc/tempest

Bug #1491058 reported by Blake Devcich
This bug affects 8 people
Affects Status Importance Assigned to Milestone
Fix Released
David Paterson

Bug Description

I've also ran into this issue in a devstack environment. It appears that /etc/tempest/ is not getting created as part of the pip installation.

Steps to reproduce:
1. stack.sh with local.conf:
disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-meta
2. pip install tempest
3. ls /etc/tempest -> shows nothing
4. tempest init cloud-01
Traceback (most recent call last):
  File "/usr/local/bin/oslo-config-generator", line 11, in <module>
  File "/usr/local/lib/python2.7/dist-packages/oslo_config/generator.py", line 282, in main
    conf(args, version=version)
  File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line 1883, in __call__
    raise ConfigFilesNotFoundError(self._namespace._files_not_found)
oslo_config.cfg.ConfigFilesNotFoundError: Failed to find some config files: /home/vagrant/cloud-01/tools/config/config-generator.tempest.conf
5. Apply the change at http://paste.openstack.org/show/438157/
6. Re-run tempest init cloud-01:
[Errno 2] No such file or directory: '/etc/tempest'

Changed in tempest:
assignee: nobody → Andrea Frittoli (andrea-frittoli)
Revision history for this message
Mark Welch (mlwelch) wrote :

Confirmed happened on RHEL 6.5 installing Tempest version 7.1.0. Pip install was successful.

Changed in tempest:
status: New → Confirmed
Changed in tempest:
assignee: Andrea Frittoli (andrea-frittoli) → David Paterson (davpat2112)
status: Confirmed → In Progress
Changed in tempest:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tempest (master)

Reviewed: https://review.openstack.org/224338
Committed: https://git.openstack.org/cgit/openstack/tempest/commit/?id=0bf52d497bebb3a0b393f2a8862eaf5161d76d79
Submitter: Jenkins
Branch: master

commit 0bf52d497bebb3a0b393f2a8862eaf5161d76d79
Author: David Paterson <email address hidden>
Date: Mon Apr 13 21:55:58 2015 -0400

    Fix init command

    Init command was not working properly as it could not locate the
    configuration sample file.
    Steps taken:
    - Move config-generator.tempest.conf to etc so it will be installed
    with pbr.
    - Update all files with new path to config-generator-tempest.conf as
    - Refactor init command so if it detects we are not in a virtual
    environment, try to find the global config directory /etc/tempest.
    If that fails fallback to [sys.prefix]/etc/tempest.

    Closes-Bug: #1491058
    Closes-Bug: #1490670
    Change-Id: I960bc711ff78ac2b0441ef63dff8ec4fb268fd3a

Changed in tempest:
status: In Progress → Fix Released
Revision history for this message
Adolfo Duarte (adolfo-duarte) wrote :

I am still seeing this on current master branch
git clone https://github.com/openstack/tempest/
 pip install tempest/
Requirement already satisfied (use --upgrade to upgrade): pycparser in /usr/local/lib/python2.7/dist-packages (from cffi>=1.1.0->cryptography>=0.7->pyOpenSSL>=0.14->tempest==8.0.1.dev168)
ubuntu@devstack01:/opt/stack$ ls /etc/tempest
ls: cannot access /etc/tempest: No such file or directory

Revision history for this message
Ashish Singh (ashish-singh7) wrote :

I am also still seeing the problem.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.