Rally bash completion doesnt exist in a virtualenv
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Rally |
Fix Released
|
High
|
Sergey Skripnick |
Bug Description
OVERVIEW:
When trying to install latest master branch of rally as following:
$ ./install_rally.sh -v -y --target $WORKSPACE/
it installs everything successfully.. but fails upon :
`source $WORKSPACE/
DETAILS:
I am installing rally using jenkins, and in jenkins $WORKSPACE is automatically set for each job , which is the pwd of that job dir .
using above commands, i was installing rally in separate virtualenv, but it failed at activating the virtualenv complaining :
=======
. /var/lib/
/var/lib/
Build step 'Execute shell' marked build as failure
=======
Now upon inspecting the 'install_rally.sh" script, i saw this:
~~~~~~~~~~~~~~~~
# Post-installation
if [ "$USEVIRTUALENV" = 'yes' ]
then
# Fix bash_completion
. "$VENVDIR/
__EOF__
cat <<__EOF__
~~~~~~~~~~~~~~~~~~
this just looks plain wrong, reason being::
1) who is copying the rally bash completion to virtualenv dir and where ????
2) the pip virtualenv doesnt even create 'etc` dir ,, let alone ` bash_completion.d ` .
SOLUTIONS:
i temporarily worked around with this :
`````````
# Post-installation
if [ "$USEVIRTUALENV" = 'yes' ]
then
# Fix bash_completion
mkdir -p "$VENVDIR"
cat >> "$VENVDIR"
. "$VENVDIR/
__EOF__
cat <<__EOF__
```````````
Changed in rally: | |
assignee: | nobody → Sergey Skripnick (eyerediskin) |
importance: | Undecided → High |
Changed in rally: | |
milestone: | none → 0.1.0 |
Changed in rally: | |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/188748
Review: https:/