Tuesday, 2024-12-03

-@gerrit:opendev.org- Vladimir Kozhukalov proposed: [zuul/zuul-jobs] 936909: Respect image registry in container roles https://review.opendev.org/c/zuul/zuul-jobs/+/93690903:44
-@gerrit:opendev.org- Fabien Boucher proposed: [zuul/zuul] 936440: Support for mod_auth_openidc in front of Zuul web https://review.opendev.org/c/zuul/zuul/+/93644015:57
@hanson76:matrix.orgHi!18:51
We tried to upgrade from Zuul 11.1.0 to 11.2.0 but encountered the following error in our builds and had to revert back to 11.1.0 (that solved the problem)
It happend in all jobs that uses the opendev.org/zuul/zuul-jobs/roles/multi-node-hosts-file role, is this a know issue or something that is wrong with our setup?
```
The task includes an option with an undefined variable. The error was: 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'nodepool'. 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'nodepool'
The error appears to be in '/var/lib/zuul/builds/fc81cb06c1974507ad3b8b476e70454a/untrusted/project_2/opendev.org/zuul/zuul-jobs/roles/multi-node-hosts-file/tasks/main.yaml': line 1, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: Set up the list of hosts and addresses
^ here
```
@clarkb:matrix.orgOpenDev's Zuul should be running what is essentially the same code as 11.2.0 (just from before the tag was made) and I haven't heard any complaints from people using multinode jobs18:54
@hanson76:matrix.orgHave to dig bit more here then. 18:57
@fungicide:matrix.orgmaybe we're not using that exact role from zuul-jobs in our multinode jobs?18:59
@clarkb:matrix.orgthats possible though I thought we did.19:05
@clarkb:matrix.orgas it is one of the really slow roles due to ansible iteration costs19:05
@clarkb:matrix.orgits O(n^2) where n is the number of nodes whcih isn't too bad since n tends to be small but then you add in ansible taking 1 second per task multiplied by the number of tasks per node squared and it can hurt19:06
@hanson76:matrix.orgCan it be Ansible 8 -> 9? We have not configured jobs.ansible-version, I will try to set it to 8 and move to 11.2.0 again to check.19:16
@clarkb:matrix.orgHanson: you could also try using ansible 9 in 11.1.019:16
@clarkb:matrix.orgthat might be a quicker test19:17

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