When running the prerequisites.yml playbook on a machine behind a proxy, the proxy configuration is not used by yum module, even thought openshift_http_proxy and openshift_https_proxy properties are set.
Running yum
Using module file /usr/lib/python2.7/site-packages/ansible/modules/packaging/os/yum.py
<ocp-master01> ESTABLISH SSH CONNECTION FOR USER: openshift
<ocp-master01> SSH: EXEC ssh -vvv -o ControlMaster=auto -o ControlPersist=600s -o StrictHostKeyChecking=no -o 'IdentityFile="/home/openshift/.ssh/id_rsa"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=openshift -o ConnectTimeout=30 -o ControlPath=/root/.ansible/cp/%h-%r ocp-master01 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-oumfxwtajuqquqtceurhqavjrfhljdpx; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
<ocp-master01> (1, '\n{"msg": "Error from repoquery: [\'/bin/repoquery\', \'--show-duplicates\', \'--plugins\', \'--quiet\', \'--disablerepo\', \'\', \'--enablerepo\', \'\', \'--qf\', \'%{epoch}:%{name}-%{version}-%{release}.%{arch}\', \'origin-docker-excluder*\']: failure: repodata/repomd.xml from centos-openshift-origin: [Errno 256] No more mirrors to try.\\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, \'Connection timed out after 30000 milliseconds\')\\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, \'Connection timed out after 30001 milliseconds\')\\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, \'Connection timed out after 30001 milliseconds\')\\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, \'Connection timed out after 30000 milliseconds\')\\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, \'Connection timed out after 30001 milliseconds\')\\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, \'Connection timed out after 30001 milliseconds\')\\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, \'Connection timed out after 30000 milliseconds\')\\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, \'Connection timed out after 30000 milliseconds\')\\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, \'Connection timed out after 30000 milliseconds\')\\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, \'Connection timed out after 30000 milliseconds\')\\nCould not match packages: failure: repodata/repomd.xml from centos-openshift-origin: [Errno 256] No more mirrors to try.\\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, \'Connection timed out after 30001 milliseconds\')\\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, \'Connection timed out after 30000 milliseconds\')\\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, \'Connection timed out after 30001 milliseconds\')\\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, \'Connection timed out after 30000 milliseconds\')\\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, \'Connection timed out after 30001 milliseconds\')\\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, \'Connection timed out after 30001 milliseconds\')\\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, \'Connection timed out after 30001 milliseconds\')\\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, \'Connection timed out after 30001 milliseconds\')\\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, \'Connection timed out after 30001 milliseconds\')\\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, \'Connection timed out after 30001 milliseconds\')\\n", "failed": true, "invocation": {"module_args": {"allow_downgrade": false, "name": ["origin-docker-excluder*"], "list": null, "install_repoquery": true, "conf_file": null, "disable_gpg_check": false, "state": "present", "disablerepo": null, "update_cache": false, "enablerepo": null, "exclude": null, "security": false, "validate_certs": true, "installroot": "/", "skip_broken": false}}}\n', 'OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 3942\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 1\r\n')
fatal: [ocp-master01]: FAILED! => {
"attempts": 2,
"changed": false,
"failed": true,
"invocation": {
"module_args": {
"allow_downgrade": false,
"conf_file": null,
"disable_gpg_check": false,
"disablerepo": null,
"enablerepo": null,
"exclude": null,
"install_repoquery": true,
"installroot": "/",
"list": null,
"name": [
"origin-docker-excluder*"
],
"security": false,
"skip_broken": false,
"state": "present",
"update_cache": false,
"validate_certs": true
}
},
"msg": "Error from repoquery: ['/bin/repoquery', '--show-duplicates', '--plugins', '--quiet', '--disablerepo', '', '--enablerepo', '', '--qf', '%{epoch}:%{name}-%{version}-%{release}.%{arch}', 'origin-docker-excluder*']: failure: repodata/repomd.xml from centos-openshift-origin: [Errno 256] No more mirrors to try.\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, 'Connection timed out after 30000 milliseconds')\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, 'Connection timed out after 30001 milliseconds')\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, 'Connection timed out after 30001 milliseconds')\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, 'Connection timed out after 30000 milliseconds')\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, 'Connection timed out after 30001 milliseconds')\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, 'Connection timed out after 30001 milliseconds')\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, 'Connection timed out after 30000 milliseconds')\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, 'Connection timed out after 30000 milliseconds')\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, 'Connection timed out after 30000 milliseconds')\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, 'Connection timed out after 30000 milliseconds')\nCould not match packages: failure: repodata/repomd.xml from centos-openshift-origin: [Errno 256] No more mirrors to try.\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, 'Connection timed out after 30001 milliseconds')\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, 'Connection timed out after 30000 milliseconds')\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, 'Connection timed out after 30001 milliseconds')\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, 'Connection timed out after 30000 milliseconds')\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, 'Connection timed out after 30001 milliseconds')\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, 'Connection timed out after 30001 milliseconds')\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, 'Connection timed out after 30001 milliseconds')\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, 'Connection timed out after 30001 milliseconds')\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, 'Connection timed out after 30001 milliseconds')\nhttp://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/repodata/repomd.xml: (28, 'Connection timed out after 30001 milliseconds')\n"
}
ansible --version
ansible 2.4.4.0
config file = None
configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.5 (default, Aug 4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]
git describe
openshift-ansible-3.9.27-1-35-g5d13e1070
Required packages installed in the remote machine.
Timeout because yum module is not configured with proxy info.
I have the same problem - via proxy it doesn't work.
fyi.
Adding the line: "proxy=\
Most helpful comment
I have the same problem - via proxy it doesn't work.