[openstack-dev] [devstack] apache wsgi application support
blk at acm.org
Wed Jun 24 17:51:32 UTC 2015
On Wed, Jun 24, 2015 at 7:27 AM, Chris Dent <chdent at redhat.com> wrote:
> On Wed, 24 Jun 2015, Sean Dague wrote:
>> On 06/24/2015 07:57 AM, Chris Dent wrote:
>>> If the primary reason is so that we can rely on the console_scripts
>>> entry point to handle getting the application somewhere useful then
>>> that too feels a bit crufty, in the sense of "that's a hack".
> The reason I want this is so that the upgrade process for keystone is:
>> pip install ./keystone
>> And not have to also have knowledge about the contents of the keystone
>> source directory. Today a lot of installation and upgrade logic for
>> packages is "left as an exercise for the reader", which means devstack,
>> ansible, rpms, debs all end up doing a bunch of work beyond pip install.
>> Minimizing that by bringing more of this back into what pip install does
>> will make for a more common base moving forward for everyone.
> Makes sense. My only concern would be the somewhat of a mismatch in
> semantics between console_scripts and what is not a console script.
> Does anyone who is more familiar with entry points know of an
> alternative that will accomplish the same sort of thing?
> If there's not, then awesome, let's do it.
> Chris Dent tw:@anticdent freenode:cdent
I tried console_scripts and there is a mismatch between what a console
script is and a wsgi script. A wsgi script must export an "application"
symbol and the generated console script doesn't. Maybe setuptools will be
enhanced someday to also support wsgi scripts but until then I think we're
One thing I should have looked at earlier is how devstack handles horizon,
since it's already running in Apache Httpd. The devstack horizon setup uses
the wsgi script out of the devstack source directories:
-- console_scripts and gui_scripts
 docs.openstack.org/developer/pbr/#files -- I couldn't get this to work
for some reason
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the OpenStack-dev