run_tests.sh script corrupt due to ‘error horizon.egg-info/requires.txt: Permission denied’

Bug #1009912 reported by Edward
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Invalid
Undecided
Gabriel Hurley

Bug Description

This error occurs when running ./run_tests.sh.

./run_tests.sh
Checking environment.
Your environment appears to be out of date. Update? (Y/n) y
...
...
Installing horizon module in development mode...
Warning: Could not import Horizon dependencies. This is normal during installation.
error: horizon.egg-info/requires.txt: Permission denied
Command "/opt/stack/horizon/tools/with_venv.sh python setup.py develop" failed.
running develop
running egg_info
writing requirements to horizon.egg-info/requires.txt

It seems that the owner of horizon.egg-info directory is root by default. current user running this script doesn't have file permission. This problem could be resolved by change the owner of horizon.egg-info to current user.

Revision history for this message
Gabriel Hurley (gabriel-hurley) wrote :

I'm unable to reproduce this... The horizon.egg-info directory is created by running setup.py develop (which happens in the run_tests.sh/install_venv.py scripts); that means it gets run as the same user you're acting as unless you're installing by some other method (distro packaging?).

Without further information we can't do much more for you. Can you provide some insight into what version of Horizon you're running, on what system, and how you installed it?

Changed in horizon:
assignee: nobody → Gabriel Hurley (gabriel-hurley)
status: New → Incomplete
Kieran Spear (kspear)
Changed in horizon:
status: Incomplete → Invalid
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.