<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Brant,</div><div><br></div><div>We likely need to back port a simplified version of the wsgi files and/or make the Juno (and kilo) versions of dev stack use the same simplified / split files. Grenade doesn't re-run stack - so new files that are outside pip's purview won't be used afaik.</div><div><br></div><div>--Morgab<br><br>Sent via mobile</div><div><br>On Jun 23, 2015, at 13:07, Brant Knudson <<a href="mailto:blk@acm.org">blk@acm.org</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 17, 2015 at 1:21 PM, Sean Dague <span dir="ltr"><<a href="mailto:sean@dague.net" target="_blank">sean@dague.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">On 06/16/2015 05:25 PM, Chris Dent wrote:<br>
> On Tue, 16 Jun 2015, Sean Dague wrote:<br>
><br>
>> I was just looking at the patches that put Nova under apache wsgi for<br>
>> the API, and there are a few things that I think are going in the wrong<br>
>> direction. Largely I think because they were copied from the<br>
>> lib/keystone code, which we've learned is kind of the wrong direction.<br>
><br>
> Yes, that's certainly what I've done the few times I've done it.<br>
> devstack is deeply encouraging of cargo culting for reasons that are<br>
> not entirely clear.<br>
<br>
</span>Yeh, hence why I decided to put the brakes on a little here and get this<br>
on the list.<br>
<span class=""><br>
>> The first is the fact that a big reason for putting {SERVICES} under<br>
>> apache wsgi is we aren't running on a ton of weird unregistered ports.<br>
>> We're running on 80 and 443 (when appropriate). In order to do this we<br>
>> really need to namespace the API urls. Which means that service catalog<br>
>> needs to be updated appropriately.<br>
><br>
> So:<br>
><br>
> a) I'm very glad to hear of this. I've been bristling about the weird<br>
> ports thing for the last year.<br>
><br>
> b) You make it sound like there's been a plan in place to not use<br>
> those ports for quite some time and we'd get to that when we all<br>
> had some spare time. Where do I go to keep abreast of such plans?<br>
<br>
</span>Unfortunately, this is one of those "in the ether" kinds of plans. It's<br>
been talked about for so long, but it never really got written down.<br>
Hopefully this can be driven into the service catalog standardization<br>
spec (or tag along somewhere close).<br>
<br>
Or if nothing else, we're documenting it now on the mailing list as<br>
permanent storage.<br>
<span class=""><br>
>> I also think this -<br>
>> <a href="https://github.com/openstack-dev/devstack/blob/master/lib/nova#L266-L268" rel="noreferrer" target="_blank">https://github.com/openstack-dev/devstack/blob/master/lib/nova#L266-L268</a><br>
>> is completely wrong.<br>
>><br>
>> The Apache configs should instead specify access rules such that the<br>
>> installed console entry point of nova-api can be used in place as the<br>
>> WSGIScript.<br>
><br>
> I'm not able to parse this paragraph in any actionable way. The lines<br>
> you reference are one of several ways of telling mod wsgi where the<br>
> virtualenv is, which has to happen in some fashion if you are using<br>
> a virtualenv.<br>
><br>
> This doesn't appear to have anything to do with locating the module<br>
> that contains the WSGI app, so I'm missing the connection. Can you<br>
> explain please?<br>
><br>
> (Basically I'm keen on getting gnocchi and ceilometer wsgi servers<br>
> in devstack aligned with whatever the end game is, so knowing the plan<br>
> makes it a bit easier.)<br>
<br>
</span>Gah, the problem of linking to 'master' with line numbers. The three<br>
lines I cared about were:<br>
<br>
# copy proxy vhost and wsgi helper files<br>
sudo cp $NOVA_DIR/nova/wsgi/nova-api.py $NOVA_WSGI_DIR/nova-api<br>
sudo cp $NOVA_DIR/nova/wsgi/nova-ec2-api.py $NOVA_WSGI_DIR/nova-ec2-api<br>
<br>
I don't think that we should be copying py files around to other<br>
directories outside of normal pip install process. We should just have<br>
mod_wsgi reference a thing that is installed in /usr/{local}/bin or<br>
/usr/share via the python install process.<br>
<span class=""><br>
>> This should also make lines like -<br>
>> <a href="https://github.com/openstack-dev/devstack/blob/master/lib/nova#L272" rel="noreferrer" target="_blank">https://github.com/openstack-dev/devstack/blob/master/lib/nova#L272</a> and<br>
>> L274 uneeded. (The WSGI Script will be in a known place). It will also<br>
>> make upgrades much more friendly.<br>
><br>
> It sounds like maybe you are saying that the api console script and<br>
> the module containing the wsgi 'application' variable ought to be the<br>
> same thing. I don't reckon that's a great idea as the api console<br>
> scripts will want to import a bunch of stuff that the wsgi application<br>
> will not.<br>
><br>
> Or I may be completely misreading you. It's been a long day, etc.<br>
<br>
</span>They don't need to be actually the same thing. They could be different<br>
scripts, but they should be scripts that install via the normal pip<br>
install process to a place, and we reference them by known name.<br>
<span class=""><br>
>> I think that we need to get these things sorted before any further<br>
>> progression here. Volunteers welcomed to help get us there.<br>
><br>
> Find me, happy to help. The sooner we can kill wacky port weirdness<br>
> the better.<br>
<br>
</span>Agreed.<br>
<span class="im"><br>
-Sean<br>
<br>
--<br>
Sean Dague<br>
<a href="http://dague.net" rel="noreferrer" target="_blank">http://dague.net</a><br>
<br></span></blockquote><div><br></div><div>I've got a few related changes proposed to keystone and devstack:<br><br><a href="https://review.openstack.org/#/c/193891/">https://review.openstack.org/#/c/193891/</a> - Changes Apache Httpd config so that /identity is the keystone public (aka main) handler and /identity_admin is the keystone admin handler. Httpd can have multiple aliases for the same wsgi handler so :5000 and :35357 still work. The follow-on patch at <a href="https://review.openstack.org/193894">https://review.openstack.org/193894</a> shows some further work to change config so that the new endpoints are used by the tests. There are a lot of devstack variables that aren't going to apply or are going to be reinterpreted if we switch to this so I'll have to think about how that's going to work.<br><br><a href="https://review.openstack.org/#/c/194442/">https://review.openstack.org/#/c/194442/</a> - Creates files keystone/httpd/admin.py and public.py , in addition to the old httpd/keystone.py that you had to copy and rename or symlink.<br><br><a href="https://review.openstack.org/#/c/194729/">https://review.openstack.org/#/c/194729/</a> - Changes devstack to use keystone/httpd/admin.py and public.py rather than copying httpd/keystone.py. Grenade is failing so I'll need to figure that out.<br><br></div><div>- Brant<br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="im">
</span><div class=""><div class="h5">__________________________________________________________________________<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.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</div></div></blockquote></div><br></div></div>
</div></blockquote><blockquote type="cite"><div><span>__________________________________________________________________________</span><br><span>OpenStack Development Mailing List (not for usage questions)</span><br><span>Unsubscribe: <a href="mailto:OpenStack-dev-request@lists.openstack.org">OpenStack-dev-request@lists.openstack.org</a>?subject:unsubscribe</span><br><span><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a></span><br></div></blockquote></body></html>