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 2100368 - [RHEL-9] Invalid data passed to 'loop', it requires a list, got this instead: [] + [ '/dev/sdb1' ] + [ '/dev/sdc1' ]
Summary: [RHEL-9] Invalid data passed to 'loop', it requires a list, got this instead:...
Keywords:
Status: CLOSED DUPLICATE of bug 2044119
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: rhel-system-roles
Version: 9.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Rich Megginson
QA Contact: CS System Management SST QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-23 08:32 UTC by ChanghuiZhong
Modified: 2022-06-24 04:02 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-06-23 15:38:19 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-126070 0 None None None 2022-06-23 08:37:31 UTC

Description ChanghuiZhong 2022-06-23 08:32:53 UTC
Description of problem:
when running ansible test on localhost,this issue appeared.
the test works fine when executed on a remote system,and noly exist on rhel9+localhost

“
TASK [Check the type of each PV] **************************************************************************************************************************
fatal: [127.0.0.1]: FAILED! => {"msg": "Invalid data passed to 'loop', it requires a list, got this instead: [] + [ '/dev/sdb1' ] + [ '/dev/sdc1' ]. Hint: If you passed a list/dict of just one element, try adding wantlist=True to your lookup invocation or use q/query instead of lookup."}
”

Version-Release number of selected component (if applicable):
ansible-core-2.12.6-1.el9.x86_64
blivet-data-3.4.0-15.el9.noarch
python3-blivet-3.4.0-15.el9.noarch

How reproducible:
100%

Steps to Reproduce:
my test configuration is
[root@storageqe-104 ~]#  cat /etc/ansible/ansible.cfg
[defaults]
inventory = /etc/ansible/hosts
[root@storageqe-104 ~]#  cat /etc/ansible/hosts
[all]
127.0.0.1  ansible_connection=local
[root@storageqe-104 ~]# 
[root@storageqe-104 ~]# ansible-playbook  test/storage/tests/tests_create_lvm_cache_then_remove.yml

Actual results:
issue appeared

Expected results:
no issue

Additional info:
test case:https://github.com/linux-system-roles/storage/blob/master/tests/tests_create_lvm_cache_then_remove.yml

Comment 1 Dimitri Savineau 2022-06-23 14:33:56 UTC
This is likely an issue in rhel-system-roles rather than ansible-core itself.

The issue is probably coming from a bad input generated for the "Check the type of each PV" task.

It will be easier for debug purpose to get the full ansible log with verbosity.

For what it's worth, I'm not able to reproduce the issue on my side.

----------------------------------------
[root@storageqe-104 ~]# rpm -qa | egrep -e '(ansible-core|rhel-system-roles|blivet)'
blivet-data-3.4.0-12.el9.noarch
ansible-core-2.12.7-1.el9.x86_64
python3-blivet-3.4.0-12.el9.noarch
rhel-system-roles-1.19.2-1.el9.noarch
[root@storageqe-104 ~]# cat /etc/ansible/ansible.cfg 
[defaults]
inventory = /etc/ansible/hosts
[root@storageqe-104 ~]# cat /etc/ansible/hosts 
[all]
127.0.0.1  ansible_connection=local
[root@storageqe-104 ~] cd /usr/share/ansible/collections/ansible_collections/redhat/rhel_system_roles
[root@storageqe-104 rhel_system_roles]# ansible-playbook -vv tests/storage/tests_create_lvm_cache_then_remove.yml
(...)
TASK [Check the type of each PV] *************************************************************************************************************************************************************************************************************
task path: /usr/share/ansible/collections/ansible_collections/redhat/rhel_system_roles/tests/storage/test-verify-pool-members.yml:41
ok: [127.0.0.1] => (item=/dev/sdb1) => {
    "ansible_loop_var": "pv",
    "changed": false,
    "msg": "All assertions passed",
    "pv": "/dev/sdb1"
}
ok: [127.0.0.1] => (item=/dev/sdc1) => {
    "ansible_loop_var": "pv",
    "changed": false,
    "msg": "All assertions passed",
    "pv": "/dev/sdc1"
}
(...)
PLAY RECAP ***********************************************************************************************************************************************************************************************************************************
127.0.0.1                  : ok=288  changed=4    unreachable=0    failed=0    skipped=257  rescued=0    ignored=0
----------------------------------------

Moving this to the rhel-system-roles component.

Comment 2 Rich Megginson 2022-06-23 15:38:19 UTC

*** This bug has been marked as a duplicate of bug 2044119 ***

Comment 3 ChanghuiZhong 2022-06-24 04:02:04 UTC
(In reply to Dimitri Savineau from comment #1)
> This is likely an issue in rhel-system-roles rather than ansible-core itself.
> 
> The issue is probably coming from a bad input generated for the "Check the
> type of each PV" task.
> 
> It will be easier for debug purpose to get the full ansible log with
> verbosity.
> 
> For what it's worth, I'm not able to reproduce the issue on my side.

Hi,Dimitri

Thanks for point out that,
I reproduce this with
blivet-data-3.4.0-15.el9.noarch
python3-blivet-3.4.0-15.el9.noarch
and upstream linux-system-roles case,compared with downstream, case has some modification

Thanks
Changhui


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