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: POST
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Ansible
Version: 6.12.1
Hardware: All
OS: All
unspecified
medium
Target Milestone: Unspecified
Assignee: nalfassi
QA Contact: Satellite QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-02-17 04:13 UTC by matt jia
Modified: 2023-08-07 13:36 UTC (History)
7 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:
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

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.


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