Values not passed correctly between jobs using set_stats and aggregate: no

We have recently updated to AWX 21.11.0 (using EE 21.11.0) (previously using AWX 19.4.0 with EE 0.6.0).
Since this update, values passed between jobs in a workflow job template using set_stats and aggregate:no are not correct.
One example:

  • name: pass list to other jobs
    ansible.builtin.set_stats:
    data:
    test: “{{ mylist.host_out }}”
    aggregate: no

Job1 runs fine and writes values in test variable. test is then passed to job2.
Under variables, we see test from job1. Job2 writes values in test variable too (we see the change in artifacts).
Then we start a third job (job3) and it displays test value from job1 and not from job2 :-(.

With “Aggregate: no” it should overwrite variable, but it didn’t overwrite it. In previous version (AWX 19.4.0 with EE 0.6.0 ), test variable was overwritten.
Is this a bug? How to solve this behaviour?

(unfortunately we can’t fall back to EE 0.6.0 because the Job template fails with error “Pod Running”)

Environment (single node cluster):
AWX 21.11.0
EE 21.11.0

Docker 20.10.7

K8s: Major:“1”, Minor:“21”, GitVersion:“v1.21.2”

Best regards,
Phil

Hi Phil,
Have you seen this error in version 22.x by any chance? Also, what version of Ansible are you on?
There’s a lot of things here that could be a bug so it would be helpful to have as much info as possible about the system on which the bug is occurring (thanks for all the details so far). If anyone else is also experiencing this, responding to this thread would be very helpful to us devs. :slight_smile:
-AWX Team

Hi
We did not try to go on version 22.x
Ansible version in AWX-EE 21.11.0 is:

bash-4.4$ ansible --version
ansible [core 2.12.5.post0]
config file = None
configured module search path = [‘/home/runner/.ansible/plugins/modules’, ‘/usr/share/ansible/plugins/modules’]
ansible python module location = /usr/local/lib/python3.8/site-packages/ansible
ansible collection location = /home/runner/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/local/bin/ansible
python version = 3.8.13 (default, Jun 24 2022, 15:27:57) [GCC 8.5.0 20210514 (Red Hat 8.5.0-13)]
jinja version = 2.11.3
libyaml = True

Best regards,
Phil

It looks like an issue was opened around this for AWX: https://github.com/ansible/awx/issues/13746
We will continue working in there instead of this thread.

-The AWX Team