*** mhen_ is now known as mhen | 01:51 | |
*** elodilles_pto is now known as elodilles | 05:53 | |
opendevreview | Rodolfo Alonso proposed openstack/devstack master: [Neutron] Create method to start/stop OVN agents https://review.opendev.org/c/openstack/devstack/+/955348 | 09:44 |
---|---|---|
*** ykarel_ is now known as ykarel | 12:40 | |
opendevreview | Christian Schwede proposed openstack/devstack master: Add Swift storage policy to extend testing https://review.opendev.org/c/openstack/devstack/+/955473 | 12:56 |
ralonsoh | Hi folks, I'm having some issues trying to use some env variables in a job | 13:41 |
ralonsoh | (is this the correct channel)? | 13:42 |
ralonsoh | in a nutshell, I'm trying to pass a couple of vars to a job (neutron-functional) | 13:43 |
ralonsoh | https://review.opendev.org/c/openstack/neutron/+/952258/20/zuul.d/base.yaml#73 | 13:43 |
ralonsoh | so far, I see the first one but not the second | 13:43 |
ralonsoh | https://zuul.opendev.org/t/openstack/build/e028dc7e44a74336b32803dc86a3dbca/log/tox/dsvm-functional-gate/1-install_package.log | 13:43 |
ralonsoh | and in the code I retrieve the value of OSLO_SERVICE_BACKEND but the value is incorrect | 13:44 |
ralonsoh | from the execution logs: | 13:44 |
ralonsoh | 2025-07-18 15:35:16.300895 | controller | 2025-07-18 15:35:16.297 77752 INFO oslo_service.backend [-] Loading backend: threading | 13:44 |
ralonsoh | frickler, ^ sorry for pinging you | 13:59 |
ralonsoh | maybe you know someone that could help me on this | 13:59 |
frickler | ralonsoh: maybe gmaan or tosky_ have an idea, otherwise checking in the #opendev channel might also be an option, since iiuc this is about the generic tox role, not qa specific. maybe also tox-3.28.0 is too old for this? | 14:11 |
ralonsoh | frickler, thanks, I'll check in this channel | 14:12 |
tosky_ | I don't have a so deep knowledge of tox, but I can't see anything wrong in that command | 14:17 |
opendevreview | Eric Harney proposed openstack/devstack-plugin-nfs master: Create NFS job with nfs_qcow2_volumes = True https://review.opendev.org/c/openstack/devstack-plugin-nfs/+/955483 | 14:35 |
clarkb | ralonsoh: tosky_ frickler tox_environment is combined with constraints info then apssed to the ansible task environment argument. Unfortunately we don't seem to have the ansible json for that run task because the run playbook timed out | 14:42 |
clarkb | but trying to get that ansible task info is where I would debug next | 14:42 |
clarkb | (so maybe short circuit the job so that it doesn't timeout by running a single test case or something) | 14:42 |
ralonsoh | clarkb, the timeout is an internal problem because of the eventlet removal | 14:43 |
ralonsoh | clarkb, there we have the env of tox | 14:43 |
ralonsoh | https://zuul.opendev.org/t/openstack/build/e028dc7e44a74336b32803dc86a3dbca/log/tox/dsvm-functional-gate/1-install_package.log | 14:43 |
ralonsoh | one of the variables that I define in the job is there | 14:43 |
ralonsoh | env OSLO_SERVICE_BACKEND: eventlet | 14:43 |
ralonsoh | but not the other one. And when executing the jobs, the python code tries to retrieve OSLO_SERVICE_BACKEND but doesn't read this value | 14:44 |
clarkb | ralonsoh: yes that is the environment that tox saw. I'm saying we should find the environment that the ansible task ran with | 14:44 |
clarkb | then we can hopefully determine if ansible set both vars and tox ignored one for some reason (broken passenv though it looks correct to me... or maybe it ignores the 0 value or whatever) or if ansible's parsing of the env before passing to the task is broken | 14:45 |
clarkb | but I think that we need a job that does not timeout to collect that info. One way to accomplish that is to run a subset of the test cases that we know will complete in the alotted time | 14:47 |
ralonsoh | clarkb, I'll push a job with a single test | 14:47 |
opendevreview | Eric Harney proposed openstack/devstack-plugin-nfs master: Create NFS job with nfs_qcow2_volumes = True https://review.opendev.org/c/openstack/devstack-plugin-nfs/+/955483 | 14:58 |
clarkb | looks like ansible isn't recording the environment variables for tasks :/ also why did you remove the passenv and hardset the values in tox.ini instead? | 15:26 |
clarkb | another option would be to modify the tox role to run a shell task and record the env directly via shell: env maybe using the same environment as the tox tasks? | 15:29 |
Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!