Monday, 2025-05-12

*** mhen_ is now known as mhen01:58
opendevreviewDaniel Bengtsson proposed openstack/oslo.service master: Add threading backend implementation using cotyledon and standard threads  https://review.opendev.org/c/openstack/oslo.service/+/94572010:26
opendevreviewDaniel Bengtsson proposed openstack/oslo.service master: Add threading backend implementation using cotyledon and standard threads  https://review.opendev.org/c/openstack/oslo.service/+/94572010:50
gibiralonsoh: hberaud[m] damani[m]: have you tried the behavior of the periodic_task decorator with the threading backen? It seems to me that the periodic is not running with threading backed but it works as usual with eventlet backend11:42
ralonsohgibi, I think we have this in the L3 agent11:45
ralonsohthis is the only one I've tested locally with the threading backend11:45
ralonsohlet me check again, one sec11:47
ralonsohgibi, yes, it is working. In the L3 agent we have https://github.com/openstack/neutron/blob/5090d675be06fb6242485a245aeefa640e9bbc58/neutron/agent/l3/agent.py#L83511:50
ralonsohand I see right now the logs with the debug message11:50
ralonsohseveral times11:50
ralonsohgibi, just a heads-up11:50
gibithanks. Then I will dig deeper on the nova side11:51
ralonsohI had a problem with RPC clients11:51
ralonsohwhen using the threading backend11:51
ralonsohbecause we were instantiating them before the fork oslo.service is doing11:51
gibiso far I only tried the RPC server side, as I'm working with nova-scheduler11:51
ralonsohso nothing worked11:51
ralonsohwhen are you creating the server? in the init method?11:52
gibinope, it is in the Service.start11:54
gibihttps://github.com/openstack/nova/blob/023be4f5615255d06f61b393605da1308f045220/nova/service.py#L17711:55
gibiI guess if you do before the fork then the problem is similar to what I found with threadpool started before the fork https://gibizer.github.io/posts/Eventlet-Removal-The-First-Threading-Bug/#threads--osfork--confused-threadpools11:55
hberaud[m]No sorry I didn't personal tests yet with the new backend, Daniel did. 11:57
hberaud[m]I'm going to meet with Daniel in ~1h I'll forward your observations to him11:58
gibihberaud[m]: ack, I will try to debug what happens in nova-scheduler. I see that the thread for the looping call was created for the periodics, I need to look deeper11:59
hberaud[m]thanks, do not hesitate to share links or logs with me, this way I'll forward it to Daniel12:00
gibihberaud[m]: I think I see the reason but not sure about the solution. I added comment inline https://review.opendev.org/c/openstack/oslo.service/+/945720/comment/35eb6a53_0097ad88/12:09
hberaud[m]ack, thanks12:10
gibiI think I see the fix now too. Left comments12:15
*** iurygregory_ is now known as iurygregory13:08
damani[m]gibi, i will check now your two last comments 13:35
gibiack13:35
gibithanks13:36
hberaud[m]damani: thanks for working on that13:36
opendevreviewDaniel Bengtsson proposed openstack/oslo.service master: Add threading backend implementation using cotyledon and standard threads  https://review.opendev.org/c/openstack/oslo.service/+/94572013:59
damani[m]gibi, patch updated 14:00
opendevreviewDaniel Bengtsson proposed openstack/oslo.service master: Add threading backend implementation using cotyledon and standard threads  https://review.opendev.org/c/openstack/oslo.service/+/94572014:40
opendevreviewDaniel Bengtsson proposed openstack/oslo.service master: Add threading backend implementation using cotyledon and standard threads  https://review.opendev.org/c/openstack/oslo.service/+/94572014:42
opendevreviewDaniel Bengtsson proposed openstack/oslo.service master: Add threading backend implementation using cotyledon and standard threads  https://review.opendev.org/c/openstack/oslo.service/+/94572014:54
damani[m]tkajinam, i have implemented the restart, change the raise message, none by default for the workers 14:58

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