<div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Clark,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I'm trying to figure out how Zuul processes the test-setup.sh [1] file to adopt new dependencies.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">[1] <a href="https://github.com/openstack/searchlight/blob/master/tools/test-setup.sh">https://github.com/openstack/searchlight/blob/master/tools/test-setup.sh</a></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Thanks,</div><div class="gmail_default" style="font-size:small"><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Dec 8, 2018 at 9:10 AM Trinh Nguyen <<a href="mailto:dangtrinhnt@gmail.com">dangtrinhnt@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-size:small">Thanks, Clark.</div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Dec 8, 2018 at 3:16 AM Clark Boylan <<a href="mailto:cboylan@sapwetik.org" target="_blank">cboylan@sapwetik.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, Dec 7, 2018, at 8:17 AM, Trinh Nguyen wrote:<br>
> Hi again,<br>
> Just wonder how the image for searchlight test was set up? Which user is<br>
> used for running ElasticSearch? Is there any way to indicate the user that<br>
> will run the test? Can I do it with [1]? Based on the output of [2] I can<br>
> see there are some permission issue of JDK if I run the functional tests<br>
> with the stack user on my dev environment.<br>
> <br>
> [1]<br>
> <a href="https://git.openstack.org/cgit/openstack/searchlight/tree/tools/test-setup.sh" rel="noreferrer" target="_blank">https://git.openstack.org/cgit/openstack/searchlight/tree/tools/test-setup.sh</a><br>
> [2]<br>
> <a href="https://review.openstack.org/#/c/622871/3/searchlight/tests/functional/__init__.py" rel="noreferrer" target="_blank">https://review.openstack.org/#/c/622871/3/searchlight/tests/functional/__init__.py</a><br>
> <br>
<br>
The unittest jobs run as the Zuul user. This user has sudo access when test-setup.sh runs, but then we remove sudo access when tox is run. This is important as we are trying to help ensure that you can run tox locally without it making system level changes.<br>
<br>
When your test setup script runs `dpkg -i` this package install may start running an elasticsearch instance. It depends on how the package is set up. This daemon would run under the user the package has configured for that service. When you run an elasticsearch process from your test suite this will run as the zuul user.<br>
<br>
Hope this helps. I also left a couple of comments on change 622871.<br>
<br>
Clark<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_6449695917256823438gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><b style="font-size:small;color:rgb(51,51,51)">Trinh Nguyen</b><br></div><div><u style="font-size:12.8px;color:rgb(0,0,0)"><a href="https://www.edlab.xyz" target="_blank">www.edlab.xyz</a></u><br></div><div><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><b style="font-size:small;color:rgb(51,51,51)">Trinh Nguyen</b><br></div><div><u style="font-size:12.8px;color:rgb(0,0,0)"><a href="https://www.edlab.xyz" target="_blank">www.edlab.xyz</a></u><br></div><div><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>