foreman-nightly-deb-pipeline 581 failed

Foreman DEB nightly pipeline failed:

foreman-pipeline-foreman-nightly-debian10-upgrade (failed)
foreman-pipeline-foreman-nightly-ubuntu1804-upgrade (failed)
foreman-pipeline-foreman-nightly-debian10-install (failed)
foreman-pipeline-foreman-nightly-ubuntu1804-install (failed)

TemplateRuntimeError: no test named 'ne'

@ehelms seems my test was not unclever enough…

Wonder why tho, I had that tested locally…

Damn, ne is only available since Jinja2 2.10 (via allow using comparison operator symbols as tests · pallets/jinja@d62f050 · GitHub), but guess which version the great OS has? 2.7.2!


Looks like it’s still failing. From the last failure (foreman-nightly-deb-pipeline 583 failed):

08:59:39  TASK [foreman_installer : Ensure en_US.UTF-8 locale is available] **************
08:59:39  e[0;33mchanged: [pipe-foreman-server-nightly-debian10]e[0m
08:59:39  e[0;32m [started TASK: foreman_installer : Ensure ENV locales are available on pipe-foreman-server-nightly-debian10]e[0m
08:59:39  e[0;35m[DEPRECATION WARNING]: evaluating u'item' as a bare variable, this behaviour e[0m
08:59:39  e[0;35mwill go away and you might need to add |bool to the expression in the future. e[0m
08:59:39  e[0;35mAlso see CONDITIONAL_BARE_VARS configuration toggle. This feature will be e[0m
08:59:39  e[0;35mremoved in version 2.12. Deprecation warnings can be disabled by setting e[0m
08:59:39  e[0;35mdeprecation_warnings=False in ansible.cfg.e[0m
08:59:39  TASK [foreman_installer : Ensure ENV locales are available] ********************
08:59:39  e[0;31mfatal: [pipe-foreman-server-nightly-debian10]: FAILED! => e[0m
08:59:39  e[0;31m  msg: |-e[0m
08:59:39  e[0;31m    The conditional check 'item' failed. The error was: error while evaluating conditional (item): Unable to look up a name or access an attribute in template string ({% if en_GB.UTF-8 %} True {% else %} False {% endif %}).e[0m
08:59:39  e[0;31m    Make sure your variable name does not contain invalid characters like '-': unsupported operand type(s) for -: 'AnsibleUndefined' and 'int'e[0m
08:59:39  e[0;31m  e[0m
08:59:39  e[0;31m    The error appears to be in '/root/forklift/roles/foreman_installer/tasks/locales.yml': line 11, column 3, but maye[0m
08:59:39  e[0;31m    be elsewhere in the file depending on the exact syntax problem.e[0m
08:59:39  e[0;31m  e[0m
08:59:39  e[0;31m    The offending line appears to be:e[0m
08:59:39  e[0;31m  e[0m
08:59:39  e[0;31m  e[0m
08:59:39  e[0;31m    - name: 'Ensure ENV locales are available'e[0m
08:59:39  e[0;31m      ^ heree[0m

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.