<div dir="ltr"><div><div><div><div><div><div>I have tried to debug this in my environment but so far not able to find the reason.<br></div>While starting the api service from functional tests it fails to load middleware 'rootapp' from api-paste.ini<br><br></div>What I have done is added below lines in tox.ini to enable debugging of functional tests<br><br>[testenv:debug-functional]<br>basepython = python2.7<br>setenv =<br>  TEST_PATH = ./glance/tests/functional<br>commands = oslo_debug_helper {posargs}<br><br>and added pdb at<br>'<a href="https://github.com/openstack/glance/blob/master/glance/tests/functional/__init__.py#L770" target="_blank">https://github.com/openstack/<wbr>glance/blob/master/glance/<wbr>tests/functional/__init__.py#<wbr>L770</a>' <br><br></div>While executing each functional test, it creates the temp directory at location /tmp/tmp* where it stores config, paste.ini and other required files.<br><br></div>So far no luck to find the exact cause.<br><br></div>Thanks & Regards,<br><br></div>Abhishek<br><div><div><div><div><div><br><br></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 23, 2018 at 5:37 AM, Brian Rosmaita <span dir="ltr"><<a href="mailto:rosmaita.fossdev@gmail.com" target="_blank">rosmaita.fossdev@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Looks like something changed in a distro dependency over the weekend<br>
and the glance py27 gate is failing.<br>
<br>
I did a dist-upgrade in a new Ubuntu 16.04.3 vm, and was able to<br>
reproduce the failures locally.  I'll continue looking, but it's EOD<br>
where I am, so I wanted to make sure this info is available to the<br>
people whose day is about to begin.  The failures are confined to the<br>
py27 functional tests.  Unit tests pass, as do all the py35 tests.<br>
<br>
The requirements team has merged a change making the cross-glance-py27<br>
job non-voting:<br>
<a href="https://review.openstack.org/#/c/536082/" rel="noreferrer" target="_blank">https://review.openstack.org/#<wbr>/c/536082/</a><br>
Thus, this issue isn't holding up requirements changes, but it's still<br>
pretty urgent for us to figure out because I don't like us running<br>
around naked with respect to requirements changes that could affect<br>
glance running under py27.<br>
<br>
Here's what I think we should do:<br>
<br>
(1) Sean has had a patch up for a while separating out the unit tests<br>
from the functional tests.  I think it's a good idea.  If you are<br>
aware of a reason why they should NOT be separated, please comment on<br>
the patch:<br>
<a href="https://review.openstack.org/#/c/474816/" rel="noreferrer" target="_blank">https://review.openstack.org/#<wbr>/c/474816/</a><br>
I'd like to merge this soon so we can at least restore py27 unit tests<br>
to the requirements gate.  We can always revert if it turns out that<br>
there is a really good reason for not separating out the functional<br>
tests.<br>
<br>
(2) I've got a patch up that depends on Sean's patch and restores the<br>
functional test gate jobs to the glance .zuul.yaml file (though it<br>
makes the py27 functional tests non-voting):<br>
<a href="https://review.openstack.org/#/c/536630/" rel="noreferrer" target="_blank">https://review.openstack.org/#<wbr>/c/536630/</a><br>
<br>
(3) Continue to work on <a href="https://bugs.launchpad.net/glance/+bug/1744824" rel="noreferrer" target="_blank">https://bugs.launchpad.net/<wbr>glance/+bug/1744824</a><br>
to figure out why the py27 functional tests are failing.  As far as I<br>
can tell, it looks like a distro package issue.<br>
<br>
<br>
thanks,<br>
brian<br>
<br>
______________________________<wbr>______________________________<wbr>______________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.<wbr>openstack.org?subject:<wbr>unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-dev</a><br>
</blockquote></div><br></div>