<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 255); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Hello Asha,</div>
<div><br>
</div>
<div>The barbican.sh script was originally intended to be a convenient way to boot up a Barbican instance locally to quickly start evaluating its API and functionality. </div>
<div><br>
</div>
<div>It was not intended to be used as a production script, deferring instead to deployments utilizing packages such as RDO RPMs and so forth for that purpose.</div>
<div><br>
</div>
<div>That said, changes to that script have been discussed, including removing pyenv and uWSGI as dependencies, hence such changes would be good to consider.</div>
<div><br>
</div>
<div>I’d also note that a solution based on this recently added script [1] might be in order.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>John</div>
<div><br>
</div>
<div>[1] <a href="https://github.com/openstack/barbican/blob/master/bin/barbican-api">https://github.com/openstack/barbican/blob/master/bin/barbican-api</a></div>
<div><br>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Asha Seshagiri <<a href="mailto:asha.seshagiri@gmail.com">asha.seshagiri@gmail.com</a>><br>
<span style="font-weight:bold">Date: </span>Wednesday, April 22, 2015 at 4:57 PM<br>
<span style="font-weight:bold">To: </span>openstack-dev <<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>><br>
<span style="font-weight:bold">Cc: </span>John Wood <<a href="mailto:john.wood@rackspace.com">john.wood@rackspace.com</a>>, "Reller, Nathan S." <<a href="mailto:Nathan.Reller@jhuapl.edu">Nathan.Reller@jhuapl.edu</a>>, Douglas Mendizabal <<a href="mailto:douglas.mendizabal@RACKSPACE.COM">douglas.mendizabal@RACKSPACE.COM</a>>,
 Paul Kehrer <<a href="mailto:paul.kehrer@RACKSPACE.COM">paul.kehrer@RACKSPACE.COM</a>>, Adam Harwell <<a href="mailto:adam.harwell@RACKSPACE.COM">adam.harwell@RACKSPACE.COM</a>>, Alexis Lee <<a href="mailto:alexisl@hp.com">alexisl@hp.com</a>>, "<a href="mailto:nutshi@gmail.com">nutshi@gmail.com</a>"
 <<a href="mailto:nutshi@gmail.com">nutshi@gmail.com</a>><br>
<span style="font-weight:bold">Subject: </span>Barbican : Dependency of pyenv configuration in Barbican.sh script<br>
</div>
<div><br>
</div>
<div>
<div>
<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>
</div>
</div>
</span>
</body>
</html>