Thursday, 2025-07-03

*** mhen_ is now known as mhen01:14
mhenHi! I am reading that DEFAULT.api_paste_config is a deprecated option as per https://docs.openstack.org/oslo.service/2025.1/configuration/#wsgi09:05
mhenHowever, the audit middleware of Keystone requires the paste ini to be edited: https://docs.openstack.org/keystonemiddleware/latest/audit.html#enabling-audit-middleware09:06
mhenIs there any successor to this option once it is removed?09:06
hberaud[m]o/09:06
hberaud[m]Well, the api_past_config is deprecated because of the removal of Eventlet from OpenStack09:07
hberaud[m]oslo.service rely on the WSGI module of Eventlet09:07
hberaud[m]Keystone also have to be migrated off of Eventlet09:08
hberaud[m]So, normally both projects will be aligned once the migration will be done09:08
hberaud[m]In all the case oslo.service will not remove these deprecated things until services are not fully migrated09:09
mhenAlright, thank oyu hberaud[m]09:09
mhen*thank you09:09
hberaud[m]Keystone will have to find a replacement for the WSGI features of oslo.service, so it will surely expose its own config options09:09
hberaud[m]You are welcome, hopefully these details help you, you can grab more details about the status of the migration here https://removal.eventlet.org/, there https://www.youtube.com/watch?v=RIc-Tut95YM and also there https://www.linkedin.com/groups/13183090/09:11
opendevreviewStephen Finucane proposed openstack/pbr master: docs: Remove use of sphinxcontrib-apidoc  https://review.opendev.org/c/openstack/pbr/+/94917009:38
opendevreviewStephen Finucane proposed openstack/pbr master: tox: Stop calling 'setup.py'  https://review.opendev.org/c/openstack/pbr/+/94918809:38
opendevreviewStephen Finucane proposed openstack/pbr master: Do not use the onerror parameter in shutil.rmtree()  https://review.opendev.org/c/openstack/pbr/+/92480309:40
opendevreviewStephen Finucane proposed openstack/pbr master: docs: Remove use of sphinxcontrib-apidoc  https://review.opendev.org/c/openstack/pbr/+/94917010:30
opendevreviewStephen Finucane proposed openstack/pbr master: tox: Stop calling 'setup.py'  https://review.opendev.org/c/openstack/pbr/+/94918810:30
opendevreviewStephen Finucane proposed openstack/pbr master: docs: Update usage guide and README  https://review.opendev.org/c/openstack/pbr/+/94905110:30
opendevreviewStephen Finucane proposed openstack/pbr master: Deprecate '[entry_points]' section  https://review.opendev.org/c/openstack/pbr/+/94905210:30
opendevreviewStephen Finucane proposed openstack/pbr master: Deprecate '[files]' section  https://review.opendev.org/c/openstack/pbr/+/94905310:30
opendevreviewStephen Finucane proposed openstack/pbr master: Deprecate various '[metadata]' options  https://review.opendev.org/c/openstack/pbr/+/94905410:30
opendevreviewStephen Finucane proposed openstack/pbr master: Deprecate various '[backwards_compat]' options  https://review.opendev.org/c/openstack/pbr/+/94905510:30
opendevreviewStephen Finucane proposed openstack/pbr master: WIP: Remove need for setup.cfg if pyproject.toml present  https://review.opendev.org/c/openstack/pbr/+/94904910:30
opendevreviewMerged openstack/pbr master: Modernize tests to use EXT_SUFFIX, fix PyPy  https://review.opendev.org/c/openstack/pbr/+/94077312:47
opendevreviewStephen Finucane proposed openstack/pbr master: Add black  https://review.opendev.org/c/openstack/pbr/+/95404013:49
opendevreviewStephen Finucane proposed openstack/pbr master: Tweak loading distribution version  https://review.opendev.org/c/openstack/pbr/+/95404113:49
opendevreviewStephen Finucane proposed openstack/pbr master: Use importlib.metadata where possible  https://review.opendev.org/c/openstack/pbr/+/95404213:49
opendevreviewStephen Finucane proposed openstack/pbr master: Use packaging where possible  https://review.opendev.org/c/openstack/pbr/+/95404313:49
opendevreviewStephen Finucane proposed openstack/pbr master: Cleanup removal of 'build_sphinx' command doc  https://review.opendev.org/c/openstack/pbr/+/95404413:49
opendevreviewStephen Finucane proposed openstack/pbr master: Remove 'test' distutils command override  https://review.opendev.org/c/openstack/pbr/+/95404513:49
opendevreviewStephen Finucane proposed openstack/pbr master: Move fixtures to their own module  https://review.opendev.org/c/openstack/pbr/+/95404613:49
opendevreviewStephen Finucane proposed openstack/pbr master: Remove support for custom compilers  https://review.opendev.org/c/openstack/pbr/+/95404713:49
opendevreviewStephen Finucane proposed openstack/pbr master: Move distutils commands to _compat  https://review.opendev.org/c/openstack/pbr/+/95404813:49
opendevreviewStephen Finucane proposed openstack/pbr master: Move functional tests to their own directory  https://review.opendev.org/c/openstack/pbr/+/95404913:49
opendevreviewStephen Finucane proposed openstack/pbr master: WIP: Deprecate tests_require option  https://review.opendev.org/c/openstack/pbr/+/95405013:49
opendevreviewStephen Finucane proposed openstack/pbr master: tox: Stop calling 'setup.py'  https://review.opendev.org/c/openstack/pbr/+/94918814:32
opendevreviewStephen Finucane proposed openstack/pbr master: docs: Update usage guide and README  https://review.opendev.org/c/openstack/pbr/+/94905114:34
opendevreviewMerged openstack/pbr master: docs: Remove use of sphinxcontrib-apidoc  https://review.opendev.org/c/openstack/pbr/+/94917014:36
opendevreviewStephen Finucane proposed openstack/pbr master: docs: Update usage guide and README  https://review.opendev.org/c/openstack/pbr/+/94905114:37
opendevreviewStephen Finucane proposed openstack/pbr master: Deprecate '[entry_points]' section  https://review.opendev.org/c/openstack/pbr/+/94905214:37
opendevreviewStephen Finucane proposed openstack/pbr master: Deprecate '[files]' section  https://review.opendev.org/c/openstack/pbr/+/94905314:37
opendevreviewStephen Finucane proposed openstack/pbr master: Deprecate various '[metadata]' options  https://review.opendev.org/c/openstack/pbr/+/94905414:37
opendevreviewStephen Finucane proposed openstack/pbr master: Deprecate various '[backwards_compat]' options  https://review.opendev.org/c/openstack/pbr/+/94905514:37
opendevreviewStephen Finucane proposed openstack/pbr master: Add black  https://review.opendev.org/c/openstack/pbr/+/95404014:40
opendevreviewStephen Finucane proposed openstack/pbr master: Tweak loading distribution version  https://review.opendev.org/c/openstack/pbr/+/95404114:40
opendevreviewStephen Finucane proposed openstack/pbr master: Use importlib.metadata where possible  https://review.opendev.org/c/openstack/pbr/+/95404214:40
opendevreviewStephen Finucane proposed openstack/pbr master: Use packaging where possible  https://review.opendev.org/c/openstack/pbr/+/95404314:40
opendevreviewStephen Finucane proposed openstack/pbr master: Cleanup removal of 'build_sphinx' command doc  https://review.opendev.org/c/openstack/pbr/+/95404414:40
opendevreviewStephen Finucane proposed openstack/pbr master: Remove 'test' distutils command override  https://review.opendev.org/c/openstack/pbr/+/95404514:40
opendevreviewStephen Finucane proposed openstack/pbr master: Move fixtures to their own module  https://review.opendev.org/c/openstack/pbr/+/95404614:40
opendevreviewStephen Finucane proposed openstack/pbr master: Remove support for custom compilers  https://review.opendev.org/c/openstack/pbr/+/95404714:40
opendevreviewStephen Finucane proposed openstack/pbr master: Move distutils commands to _compat  https://review.opendev.org/c/openstack/pbr/+/95404814:40
opendevreviewStephen Finucane proposed openstack/pbr master: Move functional tests to their own directory  https://review.opendev.org/c/openstack/pbr/+/95404914:40
opendevreviewStephen Finucane proposed openstack/pbr master: docs: Update usage guide and README  https://review.opendev.org/c/openstack/pbr/+/94905114:40
opendevreviewStephen Finucane proposed openstack/pbr master: Deprecate '[entry_points]' section  https://review.opendev.org/c/openstack/pbr/+/94905214:40
opendevreviewStephen Finucane proposed openstack/pbr master: Deprecate '[files]' section  https://review.opendev.org/c/openstack/pbr/+/94905314:40
opendevreviewStephen Finucane proposed openstack/pbr master: Deprecate various '[metadata]' options  https://review.opendev.org/c/openstack/pbr/+/94905414:40
opendevreviewStephen Finucane proposed openstack/pbr master: Deprecate various '[backwards_compat]' options  https://review.opendev.org/c/openstack/pbr/+/94905514:40
opendevreviewStephen Finucane proposed openstack/pbr master: Deprecate 'tests_require' option  https://review.opendev.org/c/openstack/pbr/+/95405014:40
opendevreviewStephen Finucane proposed openstack/pbr master: tox: Stop calling 'setup.py'  https://review.opendev.org/c/openstack/pbr/+/94918814:40
stephenfinmhen: Are you sure you're talking about the same thing. The oslo.service variant of the option may be deprecated, but most services provide their own implementation. For example, here is nova's https://opendev.org/openstack/nova/src/branch/master/nova/conf/wsgi.py14:42
stephenfinhberaud[m]: ^ that is likely something to be addressed for projects who currently inherit the option from oslo.service. The option isn't strictly related to the eventlet. It can also be used under WSGI deployments as nova does14:44
hberaud[m]ack14:44
stephenfinIMO, we would benefit from an oslo.wsgi project (and perhaps and oslo.asgi project) to store things like this, along with e.g the openapi validation stuff14:44
stephenfinI started bootstrapping such a project but haven't had time to complete it14:45
hberaud[m]indeed, the adaptation of services depends on their rootage over oslo.service14:45
mhenI'm a bit confused by this. I was able to activate the middleware through '[DEFAULT] api_paste_config =' adjustment in Nova. If I put it into '[wsgi]' as well, which value will be used?14:45
hberaud[m]stephenfin: Since the begining of the eventlet removal intiative I proposed, several times, discussions around wsgi/asgi in OpenStack for the coming years, but for now I didn't get tons of feedback, let me know if you want to revive this topic14:47
stephenfinmhen: '[DEFAULT] api_paste_config' is the deprecated alias for '[wsgi] api_paste_config'. You can switch over https://docs.openstack.org/nova/latest/configuration/config.html#wsgi.api_paste_config14:49
hberaud[m]I think this topic is for now, more or less, out of the boundaries of the eventlet removal14:49
hberaud[m]but there is interconnection points14:49
hberaud[m]IMO it would deserve a side community goal14:49
mhenstephenfin: thank you. What if both are specified but carry different values? Is [wsgi] always winning?14:50
hberaud[m]to define and formalize what we want to achieve around wsgi/asgi14:50
stephenfinI agree it's mostly out of scope. The relationship is there because oslo.service also holds things like Router, Request, and Loader14:50
hberaud[m]exactly14:51
stephenfinand this error message means the whole thing is deprecated, rather than just the server https://github.com/openstack/oslo.service/blob/master/oslo_service/wsgi.py#L40-L5014:51
stephenfinI think that's wrong actually14:51
stephenfinonly Server needs to be deprecated, no?14:52
stephenfinmhen: That would be up to oslo.config and I'm not sure what the behaviour is14:52
hberaud[m]What do you mean by server? Just to be sure to be on the same page14:53
stephenfinthis class https://github.com/openstack/oslo.service/blob/master/oslo_service/wsgi.py#L7014:53
stephenfinwe're deprecating that because it uses ServiceBase, which is an eventlet thing (right?)14:53
stephenfinbut there's nothing eventlet'y in Router https://github.com/openstack/oslo.service/blob/master/oslo_service/wsgi.py#L26114:54
hberaud[m]this class is deprecated because it rely on import eventlet.wsgi14:54
stephenfinYes, i understand. But we haven't deprecated the class. We've deprecated the whole module14:54
stephenfinWe should only be deprecating the class14:55
stephenfinIMO14:55
stephenfinat least until we have a new home for the wsgi stuff, which never should have been put here14:55
hberaud[m]indeed, I think you are right, the other class could remains valid (at first glance)14:55
hberaud[m]*classes14:56
stephenfinyes, fwiw, those are copy-pasted from Nova (at least fwict) and Nova still uses them just fine14:56
hberaud[m]good to know that14:56
hberaud[m]Then they could be moved to oslo.sgi14:57
hberaud[m]but, I also think that without the Server class, this module is a bit meaningless14:58
stephenfinas I said, this code should never have been put into oslo.service: it's unrelated to the core mission of that library. However, it is there now14:59
stephenfinuntil we find a new home, I don't believe we can or should remove it14:59
stephenfinfor example: you're breaking neutron https://opendev.org/openstack/neutron/src/branch/master/neutron/api/wsgi.py#L9415:00
stephenfinand manila https://opendev.org/openstack/manila/src/branch/master/manila/api/openstack/__init__.py#L14215:01
stephenfinand cinder https://opendev.org/openstack/cinder/src/branch/master/cinder/api/openstack/__init__.py#L10415:01
stephenfinyou get the idea :)15:01
hberaud[m]I agree. Good point15:01
stephenfinI can submit a fix if you want15:01
hberaud[m]Yes please, if you do not mind15:02
opendevreviewStephen Finucane proposed openstack/oslo.service master: Don't deprecate the entire oslo_service.wsgi module  https://review.opendev.org/c/openstack/oslo.service/+/95405515:07
stephenfinhberaud[m]: damani[m]: ^15:07
stephenfinIMO that needs to go back to stable/2025.1 also15:08
stephenfinI'm shocked no one raised this before now, btw. That could be a symptom of a larger issues wrt warnings15:08
opendevreviewStephen Finucane proposed openstack/oslo.service stable/2025.1: Don't deprecate the entire oslo_service.wsgi module  https://review.opendev.org/c/openstack/oslo.service/+/95405615:09
hberaud[m]ack15:17
hberaud[m]I wonder if the remaining classes should not be moved to the common module of the backend15:35
fricklerthe good thing about deprecation warnings is that there are so many of them that it is easy to get trained to ignore them, yes :-/15:35
stephenfinhberaud[m]: wdym?15:35
hberaud[m]the backend notion of oslo.service introduced a common module to store all the things shared by all the backends, so if we decide to keep the remaining classes of the WSGI module, then I think we would have to store them into the common module to avoid duplicating the code in both backends.15:37
hberaud[m]else, if I'm right, the threading backend won't seen them15:38
stephenfinwhy would the backend need to see these?15:38
hberaud[m]https://opendev.org/openstack/oslo.service/src/branch/master/oslo_service/backend/common15:39
hberaud[m]to expose them to users15:39
stephenfinsorry, I'm missing something15:39
hberaud[m]but I may be wrong15:39
stephenfinas user currently does 'from oslo_service import wsgi; wsgi.Request(...)'. What's changing?15:39
stephenfins/as/a/15:40
stephenfinor rather what will need to change?15:40
hberaud[m]My memory is surely wrong, so take it with with tweezers with my following assertions. For now the threading backend expected that the wsgi module would disappear. there is a mapping for each backend (https://opendev.org/openstack/oslo.service/src/branch/master/oslo_service/backend/eventlet/__init__.py, https://opendev.org/openstack/oslo.service/src/branch/master/oslo_service/backend/eventlet/__init__.py).  So I'm not sure that if a15:43
hberaud[m]service switching the backend will still be able to import the wsgi module of oslo.service15:43
hberaud[m]s/My memory is surely wrong, so take it with with tweezers with my following assertions./My memory is surely wrong, so take my following assertions with tweezers/15:44
damani[m]stephenfin, thanks a lot for the patch 15:45
hberaud[m]damani: correct me if I'm wrong15:45
hberaud[m](about the common and the import)15:46
damani[m]so the server must be deprecated yes 15:48
damani[m]the rest can be useful and can be probably move the the common yes 15:48
hberaud[m]ack, but is the move to common optional or mandatory? from a user perspective who imports the wsgi module with the threading backend enabled?15:50
hberaud[m]damani: ^15:51
opendevreviewMerged openstack/oslo.service master: Fix inconsistent interface of ThreadGroup  https://review.opendev.org/c/openstack/oslo.service/+/95303216:22
*** haleyb is now known as haleyb|out21:52

Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!