Hi Jesse and Jean-Philippe, Thank you both for your responses.
@Jesse I am just having one node for the infra and one repo, for now: root@maas:/opt/openstack-ansible/playbooks# ansible repo_all -m shell -a "du -sh /var/www/repo/*" Variable files: "-e @/etc/openstack_deploy/user_secrets.yml -e @/etc/openstack_deploy/user_variables.yml " node01_repo_container-82b4e1f6 | SUCCESS | rc=0 >> 900K /var/www/repo/links 656M /var/www/repo/openstackgit 964K /var/www/repo/os-releases 4.0K /var/www/repo/pkg-cache 105M /var/www/repo/pools 273M /var/www/repo/venvs @Jean-Philippe Yes, i am using haproxy. I cannot wget the http://172.16.1.2:8181/os-releases/14.0.1/requirements_constraints.txt file neither form the bare metal node nor from within the container: root@node01-galera-container-368f269a:~# wget -c http://172.16.1.2:8181/os-releases/14.0.1/requirements_constraints.txt --2016-11-17 09:53:19-- http://172.16.1.2:8181/os-releases/14.0.1/requirements_constraints.txt Connecting to 172.16.1.2:8181... connected. HTTP request sent, awaiting response... No data received. Retrying. --2016-11-17 09:53:20-- (try: 2) http://172.16.1.2:8181/os-releases/14.0.1/requirements_constraints.txt Connecting to 172.16.1.2:8181... connected. HTTP request sent, awaiting response... No data received. Retrying. --2016-11-17 09:53:22-- (try: 3) http://172.16.1.2:8181/os-releases/14.0.1/requirements_constraints.txt Connecting to 172.16.1.2:8181... connected. HTTP request sent, awaiting response... No data received. Retrying. I attached my haproxy.conf file, can you please check it ? If the problem persists i will pop into the irc channel. Thank you, Hamza On 17 November 2016 at 10:10, Jean-Philippe Evrard < jean-philippe.evr...@rackspace.co.uk> wrote: > Hello, > > > > Is this a greenfield newton? > > Could you wget your http://172.16.1.2:8181/os- > releases/14.0.1/requirements_constraints.txt file reliably? > > Are you using haproxy? Are all the backends OK there? > > > > Don’t hesitate to come by our irc channel, it’s probably easier to have a > conversation there. > > > > Best regards, > > Jean-Philippe > > > > *From: *Achi Hamza <h16m...@gmail.com> > *Reply-To: *"OpenStack Development Mailing List (not for usage > questions)" <openstack-...@lists.openstack.org> > *Date: *Thursday, 17 November 2016 at 08:56 > *To: *"openstack-...@lists.openstack.org" <openstack-dev@lists. > openstack.org> > *Subject: *[openstack-dev] [openstack-ansible] pip issues > > > > Hi all, > > Context: > openstact-ansible newton, tag: 14.0.1 > OS: ubuntu 16.04 LTS > > the pip command is unable to download packages form the repo container. I > can reach the repo container from within galera container through the port > 8181: > > > > *root@node01:~# lxc-attach -n node01_galera_container-368f269a > root@node01-galera-container-368f269a:~# nc -nzv 172.16.1.2 8181 Connection > to 172.16.1.2 8181 port [tcp/*] succeeded!* > > However, when i run galera-install.yml playbook it throws the following > error (but the root cause is pip_install role) : > *root@maas:/opt/openstack-ansible/playbooks# openstack-ansible > galera-install.yml* > ………......................................................... > ..................... > > > > > > *TASK [pip_install : Install pip packages (fall back mode)] > ********************* FAILED - RETRYING: TASK: pip_install : Install pip > packages (fall back mode) (5 retries left). FAILED - RETRYING: TASK: > pip_install : Install pip packages (fall back mode) (4 retries left). > FAILED - RETRYING: TASK: pip_install : Install pip packages (fall back > mode) (3 retries left). FAILED - RETRYING: TASK: pip_install : Install pip > packages (fall back mode) (2 retries left). FAILED - RETRYING: TASK: > pip_install : Install pip packages (fall back mode) (1 retries left).fatal: > [node01_galera_container-368f269a]: FAILED! => {"changed": false, "cmd": > "/usr/local/bin/pip install -U --isolated > --constraint > http://172.16.1.2:8181/os-releases/14.0.1/requirements_constraints.txt > <http://172.16.1.2:8181/os-releases/14.0.1/requirements_constraints.txt> > ndg-httpsclient > requests", "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.0.1/requirements_constraints.txt\nRetrying (Retry(total=3, > connect=None, read=None, redirect=None)) after connection broken by > 'ProtocolError('Connection aborted.', BadStatusLine(\"''\",))': > /os-releases/14.0.1/requirements_constraints.txt\nRetrying (Retry(total=2, > connect=None, read=None, redirect=None)) after connection broken by > 'ProtocolError('Connection aborted.', BadStatusLine(\"''\",))': > /os-releases/14.0.1/requirements_constraints.txt\nRetrying (Retry(total=1, > connect=None, read=None, redirect=None)) after connection broken by > 'ProtocolError('Connection aborted.', BadStatusLine(\"''\",))': > /os-releases/14.0.1/requirements_constraints.txt\nRetrying (Retry(total=0, > connect=None, read=None, redirect=None)) after connection broken by > 'ProtocolError('Connection aborted.', BadStatusLine(\"''\",))': > /os-releases/14.0.1/requirements_constraints.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 > 287, 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 409, in > get_file_content\n resp = session.get(url)\n File > \"/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/sessions.py\", > line 487, in get\n return self.request('GET', url, **kwargs)\n File > \"/usr/local/lib/python2.7/dist-packages/pip/download.py\", line 378, 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 585, in send\n r = adapter.send(request, **kwargs)\n File > \"/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/adapters.py\", > line 467, in send\n raise ConnectionError(e, > request=request)\nConnectionError: HTTPConnectionPool(host='172.16.1.2', > port=8181): Max retries exceeded with url: > /os-releases/14.0.1/requirements_constraints.txt (Caused by > ProtocolError('Connection aborted.', BadStatusLine(\"''\",)))\nYou are > using pip version 8.1.2, however version 9.0.1 is available.\nYou should > consider upgrading via the 'pip install --upgrade pip' command.\n"}* > > > > Please advice on what i am doing wrong. I am stuck :) > > Thank you, > Hamza > > ------------------------------ > Rackspace Limited is a company registered in England & Wales (company > registered number 03897010) whose registered office is at 5 Millington > Road, Hyde Park Hayes, Middlesex UB3 4AZ. Rackspace Limited privacy policy > can be viewed at www.rackspace.co.uk/legal/privacy-policy - This e-mail > message may contain confidential or privileged information intended for the > recipient. Any dissemination, distribution or copying of the enclosed > material is prohibited. If you receive this transmission in error, please > notify us immediately by e-mail at ab...@rackspace.com and delete the > original message. Your cooperation is appreciated. > > __________________________________________________________________________ > OpenStack Development Mailing List (not for usage questions) > Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev > >
haproxy.cfg
Description: Binary data
_______________________________________________ OpenStack-operators mailing list OpenStack-operators@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators