run_tests.sh script corrupt due to ‘error horizon.egg-info/requires.txt: Permission denied’
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.
Command "/opt/stack/
running develop
running egg_info
writing requirements to horizon.
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.
Changed in horizon: | |
status: | Incomplete → Invalid |
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?