<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello Pulp people,</p>
<p>I'm trying to install pulp 3.12.0 on RHEL 7.8 using the ansible
method documented at
<a class="moz-txt-link-freetext" href="https://docs.pulpproject.org/pulpcore/installation/instructions.html">https://docs.pulpproject.org/pulpcore/installation/instructions.html</a>
.</p>
<p>I have not yet managed to make it to the end of the
pulp_install.yml playbook without error. I have worked around 2
errors, but now I am stuck on the third. I believe the root cause
of my problems is trying to use a proxy server. I have set the
environment variables http_proxy, https_proxy and proxy
appropriately.<br>
</p>
<ol>
<li>At the step "TASK [pulp.pulp_installer.pulp_common : Import
required EPEL RPM GPG keys]"
(~/.ansible.collections/ansible_collections/pulp/pulp_installer/roles/pulp_common/tasks/repos.yml),
the rpm_key module has two problems.</li>
<ol>
<li>The ansible rpm_key module fails to pass the proxy settings
to the underlying rpm call.<br>
<a class="moz-txt-link-freetext" href="https://github.com/ansible/ansible/issules/19000">https://github.com/ansible/ansible/issules/19000</a><br>
I worked around this problem by replacing the rpm_key ansible
module call with a raw line calling the rpm command directly,
and specifying the proxy settings to use.<br>
</li>
<li>The rpm --import <key-url> command uses curl
internally.<br>
curl+proxy+https does not work, but curl+proxy+http works.
Note also wget+proxy+https works.<br>
<a class="moz-txt-link-freetext" href="https://unix.stackexchange.com/questions/441021/curling-a-https-url-via-a-proxy-results-in-nss-error-5938">https://unix.stackexchange.com/questions/441021/curling-a-https-url-via-a-proxy-results-in-nss-error-5938</a><br>
I worked around this problem by referencing the RPM-GPG key
with a http URL instead of a https URL.<br>
</li>
</ol>
<li>At the step "TASK [pulp.pulp_installer.pulp_common : Upgrade
to a recent edition of pip (supporting manylinux2014)]"
(~/.ansible.collections/ansible_collections/pulp/pulp_installer/roles/pulp_common/tasks/install_pip.yml),
ansible fails with the error text:<br>
fatal: [honeybee]: FAILED! => {"changed": false, "cmd":
["/usr/local/lib/pulp/bin/pip", "install", "pip>20.2"],
"msg": "stdout: Collecting pip>20.2\n\n:stderr: Retrying
(Retry(total=4, connect=None, read=None, redirect=None,
status=None)) after connection broken by
'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection
object at 0x7ffafd356dd8>, 'Connection to pypi.python.org
timed out. (connect timeout=15)')': /simple/pip/\n Retrying
(Retry(total=3, connect=None, read=None, redirect=None,
status=None)) after connection broken by
'NewConectionError('<pip.vendor.urllib3.connection.VerifiedHTTPSConnection
object at 0x7ffafd356ef0>: Failed to establish a new
connection: [Errno 101] Network is unreachable',)':
/simple/pip/\n Retrying (Retry(total=1, connect=None,
read=None, redirect=None, status=None)) after connection broken
by
'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection
object a 0x7ffafd356f98>:Failed to establish a new
connection: [Errno 101] Network is unreachable .....<br>
I have not figured out how to work around this problem. It seems
that the pip ansible command is also not passing on the correct
proxy settings. I haven't even figured out how to work around
this problem running pip manually yet.<br>
</li>
</ol>
<p>It would be fantastic if I could get some help with these issues
so that I can get my pulp server upgraded from pulp2 to pulp3.</p>
<p>Thanks,<br>
Ben Stanley.</p>
<p><br>
</p>
</body>
</html>