<div dir="ltr">Hi All,<div><br></div><div>I would like to know the reason behind the dependency of the pyenv virtual environment and pyenv in the barbican.sh script.</div><div>Ideally in the production environment  , barbican would run on standalone virtual box with a particular python version .I feel that their dependecies needs to be removed from the script.</div><div><br></div><div>Was able to stand up the barbican instance without configuring pyenv and pyenv-virtualenv dependencies  by modifying the barbican script , installing few additional packages and exporting the python path to PATH variable</div><div>Please find the change in barbican.sh script for installation and starting of the script below :</div><div><br><font color="#000000" face="Tahoma"><span style="font-size:13.3333330154419px">VENV_DIR=${VIRTUAL_ENV:-`pyenv prefix`} -> <b>This line needs to be removed </b></span></font><br style="color:rgb(0,0,0);font-family:Tahoma;font-size:13.3333330154419px"><span style="color:rgb(0,0,0);font-family:Tahoma;font-size:13.3333330154419px">uwsgi --master --emperor $CONFIG_DIR/vassals</span><b style="color:rgb(0,0,0);font-family:Tahoma;font-size:13.3333330154419px"> -H</b><span style="color:rgb(0,0,0);font-family:Tahoma;font-size:13.3333330154419px">  </span><b style="color:rgb(0,0,0);font-family:Tahoma;font-size:13.3333330154419px">$VENV_DIR -> The  </b><b style="color:rgb(0,0,0);font-family:Tahoma;font-size:13.3333330154419px">$VENV_DIR variable need to be removed as an argument and -H as an option.</b></div><div><b><br></b></div><div><span style="color:rgb(0,0,0);font-family:Tahoma;font-size:13.3333330154419px">The barbican script has been tied to $VENV_DIR variable which is dependent on the pyenv  for python configuration.Hence the barbican.sh  script needs to be  modified to remove </span><b style="color:rgb(0,0,0);font-family:Tahoma;font-size:13.3333330154419px">$VENV_DIR variable  </b><span style="color:rgb(0,0,0);font-family:Tahoma;font-size:13.3333330154419px">by configuring python path in PATH variable.</span></div><div>On doing this , we can avoid the sourcing the pyenv and pyenv-virtualenv packages  and its dependices on Barbican script.</div><div><br></div><div>Any help would be highly appreciated and also would like to know opinion from the openstack group  on the changes indicated </div><div>Thanks in advance</div><div><div><br></div><br><div class="gmail_signature"><div><em>Thanks and Regards,</em></div>
<div><em>Asha Seshagiri</em></div></div>
</div></div>