Bug 2100368
| Summary: | [RHEL-9] Invalid data passed to 'loop', it requires a list, got this instead: [] + [ '/dev/sdb1' ] + [ '/dev/sdc1' ] | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | ChanghuiZhong <czhong> |
| Component: | rhel-system-roles | Assignee: | Rich Megginson <rmeggins> |
| Status: | CLOSED DUPLICATE | QA Contact: | CS System Management SST QE <rhel-cs-system-management-subsystem-qe> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 9.1 | CC: | jwboyer, nhosoi, spetrosi |
| Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-06-23 15:38:19 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
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.
*** This bug has been marked as a duplicate of bug 2044119 *** (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 |
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