Red Hat Satellite engineering is moving the tracking of its product development work on Satellite 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 "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. 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 "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-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 2170727 - "TypeError: string.split is not a function" when accessing ansible variables on a host
Summary: "TypeError: string.split is not a function" when accessing ansible variables...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Ansible - Configuration Management
Version: 6.12.1
Hardware: All
OS: All
unspecified
medium
Target Milestone: 6.15.0
Assignee: nalfassi
QA Contact: addubey
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-02-17 04:13 UTC by matt jia
Modified: 2024-04-23 17:13 UTC (History)
9 users (show)

Fixed In Version: rubygem-foreman_ansible-7.1.8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2211966 (view as bug list)
Environment:
Last Closed: 2024-04-23 17:13:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 36136 0 Normal Closed "TypeError: string.split is not a function" when accessing ansible variables on a host 2023-02-23 15:38:28 UTC
Red Hat Issue Tracker SAT-16124 0 None None None 2023-02-23 15:39:53 UTC
Red Hat Knowledge Base (Solution) 7005007 0 None None None 2023-03-29 20:53:21 UTC
Red Hat Product Errata RHSA-2024:2010 0 None None None 2024-04-23 17:13:41 UTC

Description matt jia 2023-02-17 04:13:51 UTC
Description of problem:

Checking Ansible variables on a host hit:

TypeError: string.split is not a function
    in O
    in a
    in f
    in div
    in s
    in t
    in t
    in f
    in l
    in d
    in s
    in d
    in C
    in t
    in t
    in t
    in t
    in d
    in section
    in PageSection
    in M
    in t
    in t
    in u
    in f
    in d
    in div
    in c
    in p
    in y
    in t
    in n
    in a
    in C
    in s
    in div
    in b
    in IntlProvider
    in I18nProviderWrapper(b)
    in d
    in StoreProvider(I18nProviderWrapper(b))
    in DataProvider(StoreProvider(I18nProviderWrapper(b)))

Version-Release number of selected component (if applicable):

6.12

How reproducible:

Easy


Steps to Reproduce:
1. create a new Ansible variable with array type. Default value is ["test"]
2. enable both 'Merge Overrides' and 'Merge Default' 
3. add the variable to a role
4. attach the role to a host
5. check the ansible variables on the host
Actual results:

TypeError: string.split is not a function,    in O    in a    in f    in div    in s    in t    in t    in f    in l    in d    in

Expected results:

should no error

Additional info:

the error only happens when both 'Merge Overrides' and 'Merge Default' are on

Comment 1 Ron Lavi 2023-02-21 14:30:08 UTC
We were able to reproduce it both on 6.12 and 6.13

Comment 2 Ron Lavi 2023-02-22 14:27:15 UTC
Created redmine issue https://projects.theforeman.org/issues/36136 from this bug

Comment 3 Bryan Kearney 2023-02-22 20:03:35 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/36136 has been resolved.

Comment 15 errata-xmlrpc 2024-04-23 17:13:40 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 (Important: Satellite 6.15.0 release), 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/RHSA-2024:2010


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