<div dir="ltr">Thanks. Maybe this would be a good opportunity to just have people start putting everything in neutron.conf if they want to switch to wsgi. </div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 19, 2017 at 12:21 AM, Matthew Treinish <span dir="ltr"><<a href="mailto:mtreinish@kortar.org" target="_blank">mtreinish@kortar.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, Jun 19, 2017 at 12:09:12AM -0700, Kevin Benton wrote:<br>
> I've been working on Victor's patch a bit. One thing that isn't clear to me<br>
> is how we can get the neutron.conf options loaded when using WSGI. How are<br>
> other projects doing this?<br>
<br>
</span>Most projects are using a default location, for example:<br>
<br>
<a href="https://review.openstack.org/#/c/459450/11/glance/common/wsgi_app.py" rel="noreferrer" target="_blank">https://review.openstack.org/#<wbr>/c/459450/11/glance/common/<wbr>wsgi_app.py</a><br>
<br>
Which IIRC I just looked at how other project's wsgi entrypoints were doing it<br>
when I wrote that. The issue I think we'll hit with Neutron is that by default<br>
we tell everyone to do that annoying multi-file config setup, which makes doing<br>
a default like this difficult. Personally I think we need to change that,<br>
because it's not needed and makes it generally confusing, but even if we did<br>
it wouldn't solve the upgrade path from non-wsgi to wsgi.<br>
<br>
-Matt Treinish<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> On Fri, Jun 2, 2017 at 7:44 AM, Emilien Macchi <<a href="mailto:emilien@redhat.com">emilien@redhat.com</a>> wrote:<br>
><br>
> > On Thu, Jun 1, 2017 at 10:28 PM, Morales, Victor<br>
> > <<a href="mailto:victor.morales@intel.com">victor.morales@intel.com</a>> wrote:<br>
> > > Hi Emilien,<br>
> > ><br>
> > > I noticed that the configuration file was created using puppet.  I<br>
> > submitted a patch[1] that was targeting to include the changes in Devstack.<br>
> > My major concern is with the value of WSGIScriptAlias which should be<br>
> > pointing to WSGI script.<br>
> ><br>
> > Thanks for looking, the script that is used is from<br>
> > /usr/bin/neutron-api which is I think correct. If you look at logs,<br>
> > you can see that API actually works but some tempest tests fail<br>
> > though...<br>
> ><br>
> > > Regards/Saludos<br>
> > > Victor Morales<br>
> > ><br>
> > > [1] <a href="https://review.openstack.org/#/c/439191" rel="noreferrer" target="_blank">https://review.openstack.org/#<wbr>/c/439191</a><br>
> > ><br>
> > > On 5/31/17, 4:40 AM, "Emilien Macchi" <<a href="mailto:emilien@redhat.com">emilien@redhat.com</a>> wrote:<br>
> > ><br>
> > >     Hey folks,<br>
> > ><br>
> > >     I've been playing with deploying Neutron in WSGI with Apache and<br>
> > >     Tempest tests fail on spawning Nova server when creating Neutron<br>
> > >     ports:<br>
> > >     <a href="http://logs.openstack.org/89/459489/4/check/gate-puppet-" rel="noreferrer" target="_blank">http://logs.openstack.org/89/<wbr>459489/4/check/gate-puppet-</a><br>
> > openstack-integration-4-<wbr>scenario001-tempest-centos-7/<br>
> > f2ee8bf/console.html#_2017-05-<wbr>30_13_09_22_715400<br>
> > ><br>
> > >     I haven't found anything useful in neutron-server logs:<br>
> > >     <a href="http://logs.openstack.org/89/459489/4/check/gate-puppet-" rel="noreferrer" target="_blank">http://logs.openstack.org/89/<wbr>459489/4/check/gate-puppet-</a><br>
> > openstack-integration-4-<wbr>scenario001-tempest-centos-7/<br>
> > f2ee8bf/logs/apache/neutron_<wbr>wsgi_access_ssl.txt.gz<br>
> > ><br>
> > >     Before I file a bug in neutron, can anyone look at the logs with me<br>
> > >     and see if I missed something in the config:<br>
> > >     <a href="http://logs.openstack.org/89/459489/4/check/gate-puppet-" rel="noreferrer" target="_blank">http://logs.openstack.org/89/<wbr>459489/4/check/gate-puppet-</a><br>
> > openstack-integration-4-<wbr>scenario001-tempest-centos-7/<br>
> > f2ee8bf/logs/apache_config/10-<wbr>neutron_wsgi.conf.txt.gz<br>
> > ><br>
> > >     Thanks for the help,<br>
> > >     --<br>
> > >     Emilien Macchi<br>
> > ><br>
> > >     ______________________________<wbr>______________________________<br>
> > ______________<br>
> > >     OpenStack Development Mailing List (not for usage questions)<br>
> > >     Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.<wbr>openstack.org?subject</a>:<br>
> > unsubscribe<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>
> > ><br>
> > ><br>
> > > ______________________________<wbr>______________________________<br>
> > ______________<br>
> > > OpenStack Development Mailing List (not for usage questions)<br>
> > > Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.<wbr>openstack.org?subject</a>:<br>
> > unsubscribe<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>
> ><br>
> ><br>
> ><br>
> > --<br>
> > Emilien Macchi<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>
> ><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>
<br>
</div></div><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>
<br></blockquote></div><br></div>