Version
Foreman Katello 3.8
Describe the bug
We use Foreman Katello behind Loadbalancer due to more flexible certificate handling.
During installation process Galaxy Api redirects to origin hostname which isn't actual endpoint.
To Reproduce
(ansible_2_15) user@domain.local ~/ansible () $ ansible-galaxy collection install microsoft.ad -f
Starting galaxy collection install process
Process install dependency map
Starting collection install process
Downloading https://internal.domain.local/pulp_ansible/galaxy/default/api/v3/plugin/ansible/content/ITSG/Library/custom/test_ansible_collection/test_rh_certified/collections/artifacts/microsoft-ad-1.4.1.tar.gz to /home/user/.ansible/tmp/ansible-local-1491441zo1sxs_e/tmpf679raqt/microsoft-ad-1.4.1-sv42uf7x
ERROR! Failed to download collection tar from 'mirrored_collections' due to the following unforeseen error: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)>. <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)>@
Expected behavior
Installation of Collection with using of configured url/ hostname.
Additional context
I already opened an issue at Katello Redmine.
https://projects.theforeman.org/issues/37138#change-171498
Version
Foreman Katello 3.8
Describe the bug
We use Foreman Katello behind Loadbalancer due to more flexible certificate handling.
During installation process Galaxy Api redirects to origin hostname which isn't actual endpoint.
To Reproduce
(ansible_2_15) user@domain.local ~/ansible () $ ansible-galaxy collection install microsoft.ad -f
Starting galaxy collection install process
Process install dependency map
Starting collection install process
Downloading https://internal.domain.local/pulp_ansible/galaxy/default/api/v3/plugin/ansible/content/ITSG/Library/custom/test_ansible_collection/test_rh_certified/collections/artifacts/microsoft-ad-1.4.1.tar.gz to /home/user/.ansible/tmp/ansible-local-1491441zo1sxs_e/tmpf679raqt/microsoft-ad-1.4.1-sv42uf7x
ERROR! Failed to download collection tar from 'mirrored_collections' due to the following unforeseen error: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)>. <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)>@
Expected behavior
Installation of Collection with using of configured url/ hostname.
Additional context
I already opened an issue at Katello Redmine.
https://projects.theforeman.org/issues/37138#change-171498