handle server-wide modules

Bug #1232729 reported by Georges Racinet
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP buildout recipe
Fix Committed
Low
Georges Racinet

Bug Description

Original description (read comments to get the conclusion):

In the generated gunicorn conf.py file, there is

    openerp.conf.server_wide_modules = ['web']

This can't be correct.
I'm not sure what has exactly to be done (forwarding options.server_wide_modules, maybe ?)

Related branches

Changed in anybox.recipe.openerp:
milestone: none → 1.7.3
assignee: nobody → Jean-Sébastien SUZANNE (jssuzanne)
Changed in anybox.recipe.openerp:
milestone: 1.7.3 → 1.7.4
Changed in anybox.recipe.openerp:
milestone: 1.7.4 → 1.8.3
Revision history for this message
Georges Racinet (gracinet) wrote :

@jssuzanne: an evaluation of impact (maybe just why it does not harm our deployments) would be needed, here

Changed in anybox.recipe.openerp:
milestone: 1.8.3 → 1.8.4
Revision history for this message
Georges Racinet (gracinet) wrote :

Maybe next time ? We'll have more to fix with separate process setups with odoo anyway.

Changed in anybox.recipe.openerp:
milestone: 1.8.4 → 1.8.5
Revision history for this message
Georges Racinet (gracinet) wrote :

Actually that behaviour is not very different to OpenERP, that does not offer a configuration file option for server wide modules in the version I just checked (7.0). OTOH it offers a command-line option, and we can't have that in gunicorn.

Probably the best would be to introduce a new option in the recipe configuration, that would
 - automatically pass --load within bin/start_openerp
 - be added to a default list in gunicorn pyconf file

Changed in anybox.recipe.openerp:
assignee: Jean-Sébastien SUZANNE (jssuzanne) → Georges Racinet (gracinet)
importance: Undecided → Low
milestone: 1.8.5 → 1.9.0
status: New → Confirmed
Revision history for this message
Georges Racinet (gracinet) wrote :

Created the new recipe option and had it leveraged by start_openerp and gunicorn conf

Changed in anybox.recipe.openerp:
status: Confirmed → Fix Committed
description: updated
summary: - gunicorn: harcoded list of server-wide-modules
+ handle server-wide modules
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.