Saturday, 2024-12-07

@prime149:matrix.orgI am trying to use the promote-container-image role [1] and the job failed [2] with the error04:03
```
2024-12-06 21:47:29.082536 | localhost | "msg": "The conditional check '(now() - (zj_docker_tag.last_updated | to_datetime('%Y-%m-%dT%H:%M:%S.%fZ')).seconds > remove_registry_tag_age' failed. The error was: template error while templating string: unexpected '}', expected ')'. String: {% if (now() - (zj_docker_tag.last_updated | to_datetime('%Y-%m-%dT%H:%M:%S.%fZ')).seconds > remove_registry_tag_age %} True {% else %} False {% endif %}. unexpected '}', expected ')'\n\nThe error appears to be in '/var/lib/zuul/builds/1d7608a78ad14ae59de0709a24fb2f89/untrusted/project_2/opendev.org/zuul/zuul-jobs/roles/remove-registry-tag/tasks/docker.yaml': line 32, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n - name: Build list of old tags\n ^ here\n"
2024-12-06 21:47:29.082608 | localhost | }
failure
```
Not sure how I can debug this. Could it be related to the dockerhub rate limit?
[1] https://opendev.org/openstack/loci/src/branch/master/.zuul.d/2024.2-ubuntu_jammy.yaml#L32-L41
[2] https://1d10d4b7798f66cfbeff-3f475577843c6519bda0c8c12c28da61.ssl.cf5.rackcdn.com/935839/32/promote/loci-promote-2024-2-ubuntu_jammy/1d7608a/job-output.txt

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