setup_env fails when run from venv with a very long path

Bug #1643046 reported by Carl Baldwin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
refstack
Fix Released
Undecided
Carl Baldwin

Bug Description

If refstack-client is cloned to a place in the filesystem with a pretty long path, such that the path to pip in the virtualenv exceeds about 128 characters (with the #! in the shebang line.) then setup_env will fail because the path to the interpreter gets truncated. This is a known issue with pip [1] due to a kernel limitation on the size of the shebang line [2].

+ /<long path>/refstack-client/.tempest/.venv/bin/pip install -r /<long path>/refstack-client/.tempest/requirements.txt
./setup_env: /<long path>/refstack-client/.tempest/.venv/bin/pip: /<long path truncated>: bad interpreter: No such file or directory
----refstack client installation failed-----

[1] https://github.com/pypa/pip/issues/1773
[2] http://stackoverflow.com/questions/10813538/shebang-line-limit-in-bash-and-linux-kernel

Henry Gessau (gessau)
Changed in refstack:
status: New → Confirmed
Revision history for this message
Carl Baldwin (carl-baldwin) wrote :

The bot didn't link the review: https://review.openstack.org/#/c/399754/

Revision history for this message
Catherine Diep (cdiep) wrote :
Changed in refstack:
assignee: nobody → Carl Baldwin (carl-baldwin)
status: Confirmed → Fix Committed
Catherine Diep (cdiep)
Changed in refstack:
status: Fix Committed → Fix Released
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.