RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2129401 - Unexpected templating type error - expected str instance, int found
Summary: Unexpected templating type error - expected str instance, int found
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: rhel-system-roles
Version: 9.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 9.2
Assignee: Rich Megginson
QA Contact: Evgeny Fedin
Laura Onduskova
URL:
Whiteboard: role:sshd,role:ssh,role:timesync
Depends On:
Blocks: 2143401
TreeView+ depends on / blocked
 
Reported: 2022-09-23 15:39 UTC by Rich Megginson
Modified: 2023-05-10 15:27 UTC (History)
3 users (show)

Fixed In Version: rhel-system-roles-1.21.0-0.3.ssh_sshd_selinux_timesync.el9
Doc Type: Bug Fix
Doc Text:
.The system roles now properly convert integers and floats to strings. Previously, some of the system roles such as `timesync`, `ssh`, and `sshd` showed templating errors when converting certain parameter values such as an integer or a floating point, to a string. With this update, the roles convert the values to a string and no longer show templating errors.
Clone Of:
: 2143401 (view as bug list)
Environment:
Last Closed: 2023-05-09 07:37:53 UTC
Type: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github linux-system-roles ssh pull 50 0 None Merged cast value to string in jinja macro 2022-09-23 15:44:28 UTC
Github linux-system-roles timesync pull 154 0 None Merged Update chrony.conf.j2 with type casting 2022-09-23 15:44:28 UTC
Github willshersystems ansible-sshd pull 197 0 None Merged Ensure values are cast to correct type 2022-09-23 15:44:28 UTC
Red Hat Issue Tracker RHELPLAN-134797 0 None None None 2022-09-23 16:02:20 UTC
Red Hat Product Errata RHEA-2023:2246 0 None None None 2023-05-09 07:38:20 UTC

Description Rich Megginson 2022-09-23 15:39:14 UTC
Using int or float values in the inventory or vars like 'port: 3009' or 'timesync_step_threshold: 0.9' will give templating type errors in the sshd and timesync roles

Comment 12 errata-xmlrpc 2023-05-09 07:37:53 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (rhel-system-roles bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2023:2246

Comment 13 Rich Megginson 2023-05-10 15:27:16 UTC
The problem and fix had nothing to do with the `selinux` role, but instead the `timesync`, `ssh`, and `sshd` roles.


Note You need to log in before you can comment on or make changes to this bug.