Tuesday, 2025-05-27

gibidamani[m]: ralonsoh: re cotyledon dependency. Yeah it feels strange that. Does eventlet also made an optional dependency of oslo.service? 11:59
gibiI think the main problem with optional dependencies that pip's requirement.txt does not support expressing that I need oslo.service with cotyledon backend12:00
gibiI need to independently list oslo.service and cotyledon12:00
gibihm I might be mistaken about the requirements.txt support for optional dependencies12:01
gibihttps://www.python.org/dev/peps/pep-0508/#extras12:02
gibilet me try it...12:02
gibiOK locally oslo.service[threading] >= 4.2.0 works from a requirements.txt file. I will update https://review.opendev.org/c/openstack/nova/+/948311/23/requirements.txt to see if it works on the gate too12:07
ralonsohgibi, sorry, I was having lunch12:23
ralonsohbut how pip checks the option?12:23
ralonsohchecking your patch now12:23
gibithe patch is not updated yet12:36
gibibut I think it we should add `oslo.service[threading] >= 4.2.0` to our requirements.txt12:36
gibito request the extra installs12:37
gibihttps://review.opendev.org/c/openstack/nova/+/948311/25/requirements.txt now it is updated, lets see if CI likes it or not12:49
damani[m]gibi, i have not put eventlet optonal because it's the default backend 12:50
damani[m]but it's a good question do we put eventlet as an optional requirements too 12:51
damani[m]and yes that is is the good syntax oslo.service[threading] >= 4.2.012:51
gibidamani[m]: ack. If the above requirements.txt allows to pass CI then I have nothing further :)12:54
gibidamani[m]: ralonsoh: OK that requirements.txt line works in CI too https://zuul.opendev.org/t/openstack/build/ab610d74de4e4adcbc22f188431fbfb9/log/job-output.txt#2496 so I rest my case13:50
ralonsohgibi, cool thanks!13:56
JayFoh awesome14:12
JayFwhen did requirements.txt learn about package[optional] syntax!?14:12
JayFThank you \o/14:12
gibiJayF: you are welcome. This eventlet removal excersise is a great learning opportunity for me so far. 14:16
JayFSo much of it is learning how many things I've known for so long somehow stopped being true in the interim LOL14:16
gibitime is a harsh mistress14:17
damani[m]it's what i have mentioned yesterday about the syntax 14:18
damani[m]i have made an example yesterday with the syntax 14:18
* JayF updated networking-baremetal patch's requirements.txt14:25
JayFI think at some point, these are going to hit the NGS/NBM repos (whatever runs the ML2 plugin agents?) -- when that time comes let me know and I can line up patches so we can try and keep everything happy14:26
JayFWe've been fighting CI in Ironic for the last week, some devstack neutron changes cratered our job and I'd like to avoid a similar thing happening again14:27
JayFgibi: that same requirements line is blowing up NBM: https://review.opendev.org/c/openstack/networking-baremetal/+/947985/6/requirements.txt https://www.irccloud.com/pastebin/uHifK6Z7/15:18
* JayF wonders what he did wrong15:20
gibistrange it is almost all green in https://zuul.opendev.org/t/openstack/status?change=94831115:20
gibiwith the same req line :/15:21
JayFno difference in pbr/setuptools requirements in pyproject.toml, either15:27
JayFgibi: it's reproducable locally with both networking-generic-switch and networking-baremetal executed via tox. I cannot explain why it works in nova, everything I'm seeing points to it shouldn't work19:36

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