ansible-collections / community.vmware

Ansible Collection for VMware
GNU General Public License v3.0
352 stars 336 forks source link

CI problem #2257

Open mariolenz opened 4 days ago

mariolenz commented 4 days ago

I don't really understand why the CI fails. It looks like Refresh test_host has been skipped here because hostvars | length >= 1 but now it isn't now. I think that hostvars is empty in both cases, but I don't understand why we have a skipped task at first and then we don't.

I don't think this is because of changing the integration the integration tests to ansible/ansible-zuul-jobs#1887 because my tests worked with this.

BTW I don't really understand those inventory plugins, and I understand their integration tests even less :-(

2250:

2024-11-15 17:07:30.505895 | controller | TASK [debug] *******************************************************************
2024-11-15 17:07:30.505904 | controller | task path: /home/zuul/.ansible/collections/ansible_collections/community/vmware/tests/integration/targets/inventory_vmware_host_inventory/playbook/build_inventory.yml:17
2024-11-15 17:07:30.505918 | controller | ok: [localhost] => {
2024-11-15 17:07:30.539579 | controller |     "msg": {}
2024-11-15 17:07:30.539606 | controller | }
2024-11-15 17:07:30.539611 | controller |
2024-11-15 17:07:30.539616 | controller | TASK [Refresh test_host] *******************************************************
2024-11-15 17:07:30.539621 | controller | task path: /home/zuul/.ansible/collections/ansible_collections/community/vmware/tests/integration/targets/inventory_vmware_host_inventory/playbook/build_inventory.yml:20
2024-11-15 17:07:30.539629 | controller | skipping: [localhost] => {
2024-11-15 17:07:30.658405 | controller |     "changed": false,
2024-11-15 17:07:30.658442 | controller |     "false_condition": "hostvars | length >= 1",
2024-11-15 17:07:30.658448 | controller |     "skip_reason": "Conditional result was False"
2024-11-15 17:07:30.658452 | controller | }

log (archive.org)

2255:

2024-11-22 16:06:46.067927 | controller | TASK [debug] *******************************************************************
2024-11-22 16:06:46.067933 | controller | task path: /home/zuul/.ansible/collections/ansible_collections/community/vmware/tests/integration/targets/inventory_vmware_host_inventory/playbook/build_inventory.yml:17
2024-11-22 16:06:46.067947 | controller | ok: [localhost] => {
2024-11-22 16:06:46.153740 | controller |     "msg": {}
2024-11-22 16:06:46.153776 | controller | }
2024-11-22 16:06:46.153784 | controller |
2024-11-22 16:06:46.153791 | controller | TASK [Refresh test_host] *******************************************************
2024-11-22 16:06:46.153798 | controller | task path: /home/zuul/.ansible/collections/ansible_collections/community/vmware/tests/integration/targets/inventory_vmware_host_inventory/playbook/build_inventory.yml:20
2024-11-22 16:06:46.153811 | controller | ok: [localhost] => {
2024-11-22 16:06:46.153818 | controller |     "ansible_facts": {
2024-11-22 16:06:46.153824 | controller |         "test_host": {
2024-11-22 16:06:46.153830 | controller |             "key": "localhost",
2024-11-22 16:06:46.153836 | controller |             "value": {
2024-11-22 16:06:46.153843 | controller |                 "ansible_all_ipv4_addresses": [
2024-11-22 16:06:46.153849 | controller |                     "192.168.0.130",
2024-11-22 16:06:46.153856 | controller |                     "192.168.1.28",
2024-11-22 16:06:46.153862 | controller |                     "38.129.16.175"
2024-11-22 16:06:46.153868 | controller |                 ],

log (archive.org)

mariolenz commented 3 days ago

see also #2256

mariolenz commented 2 days ago

For the record: https://forum.ansible.com/t/11073 suggests ansible/ansible#84339 as a possible reason for this.