AWX project sync start to fail on attempts to download modules from Galaxy
with following error:
{
"changed": false,
"stdout": "Starting galaxy collection install process\nProcess install dependency map\nStarting collection install process\nDownloading https://galaxy.ansible.com/api/v3/plugin/ansible/content/published/collections/artifacts/community-mysql-3.9.0.tar.gz to /var/lib/awx/projects/.__awx_cache/_8__ec2_CHANGED/stage/tmp/ansible-local-1383k0_g54zr/tmp8hksrvlp/community-mysql-3.9.0-1fch55y6",
"stderr": "ERROR! Failed to download collection tar from 'server0' due to the following unforeseen error: HTTP Error 403: Forbidden. HTTP Error 403: Forbidden",
"rc": 1,
"cmd": [
"ansible-galaxy",
"collection",
"install",
"-r",
"/var/lib/awx/projects/_8__ec2_CHANGED/collections/requirements.yml",
"--collections-path",
"/var/lib/awx/projects/.__awx_cache/_8__ec2_CHANGED/stage/requirements_collections"
],
"start": "2024-07-08 14:29:13.046147",
"end": "2024-07-08 14:29:14.894268",
"delta": "0:00:01.848121",
"msg": "non-zero return code",
"invocation": {
"module_args": {
"chdir": "/var/lib/awx/projects/_8__ec2_CHANGED",
"_raw_params": "ansible-galaxy collection install -r /var/lib/awx/projects/_8__ec2_CHANGED/collections/requirements.yml --collections-path /var/lib/awx/projects/.__awx_cache/_8__ec2_CHANGED/stage/requirements_collections \n",
"_uses_shell": false,
"stdin_add_newline": true,
"strip_empty_ends": true,
"argv": null,
"executable": null,
"creates": null,
"removes": null,
"stdin": null
}
},
"stdout_lines": [
"Starting galaxy collection install process",
"Process install dependency map",
"Starting collection install process",
"Downloading https://galaxy.ansible.com/api/v3/plugin/ansible/content/published/collections/artifacts/community-mysql-3.9.0.tar.gz to /var/lib/awx/projects/.__awx_cache/_8__ec2_CHANGED/stage/tmp/ansible-local-1383k0_g54zr/tmp8hksrvlp/community-mysql-3.9.0-1fch55y6"
],
"stderr_lines": [
"ERROR! Failed to download collection tar from 'server0' due to the following unforeseen error: HTTP Error 403: Forbidden. HTTP Error 403: Forbidden"
],
"_ansible_no_log": false,
"item": "/var/lib/awx/projects/_8__ec2_CHANGED/collections/requirements.yml",
"ansible_loop_var": "item",
"_ansible_item_label": "/var/lib/awx/projects/_8__ec2_CHANGED/collections/requirements.yml"
}
STEPS TO REPRODUCE
To reproduce try to install mysql module from galaxy:
% ANSIBLE_GALAXY_IGNORE=True ansible-galaxy collection install community.mysql
Starting galaxy collection install process
Process install dependency map
Starting collection install process
Downloading https://galaxy.ansible.com/api/v3/plugin/ansible/content/published/collections/artifacts/community-mysql-3.9.0.tar.gz to /Users/romans.krjukovs/.ansible/tmp/ansible-local-55743okab3g3f/tmpl9zk1s90/community-mysql-3.9.0-xkxw0yiu
ERROR! Failed to download collection tar from 'default': <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)>
EXPECTED RESULTS
Comunity module is successfully downloaded.
ACTUAL RESULTS
Fails to download module with an AWS S3 error of:
<Error><Code>InvalidAccessKeyId</Code><Message>The AWS Access Key Id you provided does not exist in our records.</Message><AWSAccessKeyId>AKIA5DPYWLYOGHQ73CV2</AWSAccessKeyId><RequestId>M0K3YH1GT0N13E47</RequestId><HostId>Ux0uRzNbJC5pPUcMqh2bNEwNib6BZrtW+9lVWXSjqiSgFp27foBBfzEJf2cIfh6yc4OGji90HbM=</HostId></Error>
Bug Report
SUMMARY
AWX project sync start to fail on attempts to download modules from Galaxy with following error:
STEPS TO REPRODUCE
To reproduce try to install mysql module from galaxy:
EXPECTED RESULTS
Comunity module is successfully downloaded.
ACTUAL RESULTS
Fails to download module with an AWS S3 error of:
Log: