Ask Your Question
0

openstack-ansible pip issues while installing the infrastructure

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

vgeorga gravatar image

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

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

2 answers

Sort by ยป oldest newest most voted
0

answered 2018-01-22 02:28:33 -0600

That would be nice if you could give us your openstack_user_config.yml to understand better.

FYI, when you have multiple haproxy_hosts configured in your openstack_user_config, you have to configure keepalived information. That keepalived information will be used to determine which VIP will be used on which NIC.

Those VIPs can then be used in openstack-ansible, for example, by giving the dns name matching each VIP address in the openstack_user_config under the internal lb vip address / external lb vip address configuration keys. Internal and external LB VIP addresses should be different, and if possible (depends on your architecture configuration), it would be even better if they are on different NICs/networks.

These lb vip addresses IPs should be reserved (still in openstack_user_config), to make sure no container takes it.

When all of that is done, you can run all your playbooks.

Here the issue you see is probably caused by an error in your repo server. Make sure all of the above is fine, and re-run your playbooks. If everything is still wrong after the repo-install.yml playbook, please contact us.

edit flag offensive delete link more
0

answered 2017-11-26 10:26:43 -0600

Thats your HA Proxy LB frontend IP address.Make sure that IP is reachable

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-03-18 16:14:32 -0600

Seen: 280 times

Last updated: Nov 26 '17