Thursday, 2025-05-08

*** ralonsoh_out is now known as ralonsoh05:52
ralonsohhi folks, I'm still investigating this issue. I'm checking an issue I have with the RPC service05:52
ralonsohthe RPC client is instantiated in the L3 agent init method05:53
ralonsohbut the agent class is passed as a oslo_service.Service to the launcher05:54
ralonsohwhen the launcher is executed, the process is forked05:54
ralonsohthe RPC object doesn't like this05:54
ralonsohhttps://github.com/openstack/oslo.messaging/blob/master/oslo_messaging/_drivers/impl_rabbit.py#L1082-L108505:55
ralonsohhberaud[m], ^06:10
ralonsoh(I don't see Daniel here yet)06:11
ralonsohok, sorry for the noise07:56
ralonsohwe had a problem in the L3 agent: the RPC clients were called during the init method. Instead they should be instantiated during the init_host() method07:56
ralonsohlooks much better now07:57
gibiralonsoh: yeah anything threading related should not happen before the fork as fork will copy global state to the child process.14:53
gibinova hit similar things with global thread pool inited before fork14:54
gibinow we re-init the pool after fork to get away with it as we cannot easily avoid using the pool pre-fork14:55
*** dalees1 is now known as dalees19:01
*** Callum0278 is now known as Callum02719:01

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