Monday, 2025-05-26

ralonsohdamani[m], hello! qq: what about the cotyledon dependency?11:07
ralonsohI still need to import it to run a service using the threading backend11:08
ralonsohI see that is included in test-requirements: https://review.opendev.org/c/openstack/oslo.service/+/94572011:08
ralonsohwhy not in requirements?11:08
damani[m]ralonsoh, it's not in the requirements because it's an optional dependency 11:39
damani[m]however it's in the setup.cfg 11:41
damani[m]for example you can install it like that:11:43
damani[m]`pip install .[threading]` 11:43
damani[m]or in the requirements.txt you can put:11:44
damani[m]`oslo.service[threading]`11:44
ralonsohdamani[m], does it mean we need to change the devstack installation tools to have these libraries?12:24
damani[m]yes since cotyledon and futurist are optional dependencies under the [threading] extra, they won’t be installed by default 12:59
ralonsohdamani[m], so is there a devstack patch proposed? just to know12:59
ralonsohif this is not the case, I'll check how to do it12:59
ralonsohbtw12:59
damani[m]so if you want to use the threading backend with devstack, you’ll need to explicitly add it12:59
damani[m]i have not made it 13:00
damani[m]but i can take a look today and proposed a patch 13:00
ralonsohhow is it possible to set the 'threading' backend via config?13:00
ralonsohor is always needed to call this hook method13:00
damani[m]ralonsoh, i'm not sure to understand what you mean sorry?13:37
ralonsohdamani[m], one sec, in my 1:1 now13:38
ralonsohdamani[m], so right now I'm doing this: https://review.opendev.org/c/openstack/neutron/+/938404/18/neutron/cmd/agents/l3.py14:02
ralonsohbecause, if I'm not wrong, this method should be called before anything14:03
ralonsohactually this is different from https://review.opendev.org/c/openstack/oslo.service/+/945720/31/releasenotes/notes/add-threading-backend-9b0e601e5c1282e1.yaml#3414:04
damani[m]ralonsoh, yes, you still need to either call init_backend() or register a default hook but there’s no support for configuration, so it must still be done in code14:18
ralonsohok14:19
damani[m]sorry i'm in a meeting at the same i can take time to answer 14:19
ralonsohme too, hehhee14:19
damani[m]but so that is the good way https://review.opendev.org/c/openstack/neutron/+/938404/18/neutron/cmd/agents/l3.py14:19
damani[m]i will check for devstack later today or tomorrow 14:20

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