openstack-ansible pip issues while installing the infrastructure

asked 2017-03-18 16:14:32 -0500

vgeorga gravatar image

updated 2017-03-18 16:16:02 -0500

I'm using the newton osa deployment guide and I've pretty much set everything according to Appendix A: https://docs.openstack.org/project-de...

Everything was going fine until I got to the point of the guide that it needed me to run the install-infrastructrure playbook:

 openstack-ansible setup-infrastructure.yml

Which gave me this error:

fatal: [infra1_galera_container-79677282]: FAILED! => {"changed": false, "cmd": "/usr/local/bin/pip install -U --isolated --constraint http://192.168.1.3:8181/os-releases/14.1.2/requirements_absolute_requirements.txt  ndg-httpsclient requests urllib3", "failed": true, "msg": "\n:stderr: Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', BadStatusLine(\"''\",))': /os-releases/14.1.2/requirements_absolute_requirements.txt\nRetrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', BadStatusLine(\"''\",))': /os-releases/14.1.2/requirements_absolute_requirements.txt\nRetrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', BadStatusLine(\"''\",))': /os-releases/14.1.2/requirements_absolute_requirements.txt\nRetrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', BadStatusLine(\"''\",))': /os-releases/14.1.2/requirements_absolute_requirements.txt\nRetrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', BadStatusLine(\"''\",))': /os-releases/14.1.2/requirements_absolute_requirements.txt\nException:\nTraceback (most recent call last):\n  File \"/usr/local/lib/python2.7/dist-packages/pip/basecommand.py\", line 215, in main\n    status = self.run(options, args)\n  File \"/usr/local/lib/python2.7/dist-packages/pip/commands/install.py\", line 312, in run\n    wheel_cache\n  File \"/usr/local/lib/python2.7/dist-packages/pip/basecommand.py\", line 269, in populate_requirement_set\n    session=session, wheel_cache=wheel_cache):\n  File \"/usr/local/lib/python2.7/dist-packages/pip/req/req_file.py\", line 84, in parse_requirements\n    filename, comes_from=comes_from, session=session\n  File \"/usr/local/lib/python2.7/dist-packages/pip/download.py\", line 417, in get_file_content\n    resp = session.get(url)\n  File \"/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/sessions.py\", line 488, in get\n    return self.request('GET', url, **kwargs)\n  File \"/usr/local/lib/python2.7/dist-packages/pip/download.py\", line 386, in request\n    return super(PipSession, self).request(method, url, *args, **kwargs)\n  File \"/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/sessions.py\", line 475, in request\n    resp = self.send(prep, **send_kwargs)\n  File \"/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/sessions.py\", line 596, in send\n    r = adapter.send(request, **kwargs)\n  File \"/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/adapters.py\", line 487, in send\n    raise ConnectionError(e, request=request)\nConnectionError: HTTPConnectionPool(host='192.168.1.3', port=8181): Max retries exceeded with url: /os-releases/14.1.2/requirements_absolute_requirements.txt (Caused by ProtocolError('Connection aborted.', BadStatusLine(\"''\",)))\n"}

I don't know if this information helps but although I can't access the url wiht http:

http://192.168.1.3:8181/os-releases/14.1.2/requirements_absolute_requirements.txt

When I change the protocol to https, I can see ... (more)

edit retag flag offensive close merge delete