Closed bontreger closed 10 months ago
I had to look at hub itself, as yes the collection erred badly, but this is the actual error
And looking at things this is an issue where we need to update the hub as an update to galaxy broke things, going to look at it.
close this as now fixed
Hit an issue on the final playbook run. Recreated the issue using both ansible-playbook and ansible navigator, and recreated the issue even with a skip/solved environment
[rhel@control lab_exercises]$ ansible-playbook -i inventory.yml -l execution playbooks/hub_config.yml or [rhel@control lab_exercises]$ ansible-navigator run playbooks/hub_config.yml --eei hub.$INSTRUQT_PARTICIPANT_ID.instruqt.io/config_as_code -i inventory.yml -l execution --pa='--tls-verify=false' -m stdout --penv INSTRUQT_PARTICIPANT_ID
(Provides the same result)
TASK [infra.ah_configuration.collection_repository_sync : Sync Repository | Wait for finish the repository sync] *** FAILED - RETRYING: [localhost]: Sync Repository | Wait for finish the repository sync (150 retries left). FAILED - RETRYING: [localhost]: Sync Repository | Wait for finish the repository sync (149 retries left). FAILED - RETRYING: [localhost]: Sync Repository | Wait for finish the repository sync (148 retries left). FAILED - RETRYING: [localhost]: Sync Repository | Wait for finish the repository sync (147 retries left). failed: [localhost] (item={'failed': 0, 'started': 1, 'finished': 0, 'ansible_job_id': 'j157804557632.145', 'results_file': '/root/.ansible_async/j157804557632.145', 'changed': False, 'collection_repository_sync_item': {'name': 'community-infra-repo', 'description': 'description of community-infra repository', 'pulp_labels': {'pipeline': 'approved'}, 'distribution': {'state': 'present'}, 'remote': 'community-infra'}, 'ansible_loop_var': 'collection_repository_sync_item'}) => {"collection_repository_sync_job_async_result_item": {"collection_repository_sync_item": {"description": "description of community-infra repository", "distribution": {"state": "present"}, "name": "community-infra-repo", "pulp_labels": {"pipeline": "approved"}, "remote": "community-infra"}, "ansible_job_id": "j157804557632.145", "ansible_loop_var": "__collection_repository_sync_item", "changed": false, "failed": 0, "finished": 0, "results_file": "/root/.ansible_async/j157804557632.145", "started": 1}, "ansible_job_id": "j157804557632.145", "ansible_loop_var": "__collection_repository_sync_job_async_result_item", "attempts": 5, "changed": false, "cmd": "/root/.ansible/tmp/ansible-tmp-1699060892.7739732-133-126123306644575/AnsiballZ_collection_repository_sync.py", "data": "", "finished": 1, "msg": "Traceback (most recent call last):\n File \"/tmp/ansible_ansible.legacy.async_wrapper_payload_deccsfzi/ansible_ansible.legacy.async_wrapper_payload.zip/ansible/modules/async_wrapper.py\", line 180, in _run_module\n File \"/tmp/ansible_ansible.legacy.async_wrapper_payload_deccsfzi/ansible_ansible.legacy.async_wrapper_payload.zip/ansible/modules/async_wrapper.py\", line 98, in _filter_non_json_lines\nValueError: No start of json char found\n", "results_file": "/root/.ansible_async/j157804557632.145", "started": 1, "stderr": "Traceback (most recent call last):\n File \"/root/.ansible/tmp/ansible-tmp-1699060892.7739732-133-126123306644575/AnsiballZ_collection_repository_sync.py\", line 107, in\n _ansiballz_main()\n File \"/root/.ansible/tmp/ansible-tmp-1699060892.7739732-133-126123306644575/AnsiballZ_collection_repository_sync.py\", line 99, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/root/.ansible/tmp/ansible-tmp-1699060892.7739732-133-126123306644575/AnsiballZ_collection_repository_sync.py\", line 47, in invoke_module\n runpy.run_module(mod_name='ansible_collections.infra.ah_configuration.plugins.modules.collection_repository_sync', init_globals=dict(_module_fqn='ansible_collections.infra.ah_configuration.plugins.modules.collection_repository_sync', _modlib_path=modlib_path),\n File \"/usr/lib64/python3.9/runpy.py\", line 225, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File \"/usr/lib64/python3.9/runpy.py\", line 97, in _run_module_code\n _run_code(code, mod_globals, init_globals,\n File \"/usr/lib64/python3.9/runpy.py\", line 87, in _run_code\n exec(code, run_globals)\n File \"/tmp/ansible_collection_repository_sync_payload_l6laxtkj/ansible_collection_repository_sync_payload.zip/ansible_collections/infra/ah_configuration/plugins/modules/collection_repository_sync.py\", line 100, in \n File \"/tmp/ansible_collection_repository_sync_payload_l6laxtkj/ansible_collection_repository_sync_payload.zip/ansible_collections/infra/ah_configuration/plugins/modules/collection_repository_sync.py\", line 94, in main\n File \"/tmp/ansible_collection_repository_sync_payload_l6laxtkj/ansible_collection_repository_sync_payload.zip/ansible_collections/infra/ah_configuration/plugins/module_utils/ah_pulp_object.py\", line 1243, in sync\nIndexError: list index out of range\n", "stderr_lines": ["Traceback (most recent call last):", " File \"/root/.ansible/tmp/ansible-tmp-1699060892.7739732-133-126123306644575/AnsiballZ_collection_repository_sync.py\", line 107, in ", " _ansiballz_main()", " File \"/root/.ansible/tmp/ansible-tmp-1699060892.7739732-133-126123306644575/AnsiballZ_collection_repository_sync.py\", line 99, in _ansiballz_main", " invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)", " File \"/root/.ansible/tmp/ansible-tmp-1699060892.7739732-133-126123306644575/AnsiballZ_collection_repository_sync.py\", line 47, in invoke_module", " runpy.run_module(mod_name='ansible_collections.infra.ah_configuration.plugins.modules.collection_repository_sync', init_globals=dict(_module_fqn='ansible_collections.infra.ah_configuration.plugins.modules.collection_repository_sync', _modlib_path=modlib_path),", " File \"/usr/lib64/python3.9/runpy.py\", line 225, in run_module", " return _run_module_code(code, init_globals, run_name, mod_spec)", " File \"/usr/lib64/python3.9/runpy.py\", line 97, in _run_module_code", " _run_code(code, mod_globals, init_globals,", " File \"/usr/lib64/python3.9/runpy.py\", line 87, in _run_code", " exec(code, run_globals)", " File \"/tmp/ansible_collection_repository_sync_payload_l6laxtkj/ansible_collection_repository_sync_payload.zip/ansible_collections/infra/ah_configuration/plugins/modules/collection_repository_sync.py\", line 100, in ", " File \"/tmp/ansible_collection_repository_sync_payload_l6laxtkj/ansible_collection_repository_sync_payload.zip/ansible_collections/infra/ah_configuration/plugins/modules/collection_repository_sync.py\", line 94, in main", " File \"/tmp/ansible_collection_repository_sync_payload_l6laxtkj/ansible_collection_repository_sync_payload.zip/ansible_collections/infra/ah_configuration/plugins/module_utils/ah_pulp_object.py\", line 1243, in sync", "IndexError: list index out of range"], "stdout": "", "stdout_lines": []}
PLAY RECAP ***** localhost : ok=8 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
Please review the log for errors. [rhel@control lab_exercises]$