2015-03-24 3 views
0

Когда я устанавливаю nova-docker из github репозиториев, он запускает setup.py; из этого сценария загружаются и устанавливаются некоторые пакеты, но после этого он поднимает ProxyError во время установки.Ошибка прокси-сервера в установке док-станции nova

Downloading unittest2-1.0.1-py2.py3-none-any.whl (95kB): 95kB downloaded 
Downloading/unpacking linecache2 (from traceback2->testtools>=0.9.22->fixtures>=0.3.14->oslo.concurrency>=0.1.0) 
Cleaning up... 

Exception: 

Traceback (most recent call last): 

    File "/usr/lib/python2.7/site-packages/pip/basecommand.py", line 122, in main 
    status = self.run(options, args) 

    File "/usr/lib/python2.7/site-packages/pip/commands/install.py", line 298, in run 
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) 

    File "/usr/lib/python2.7/site-packages/pip/req.py", line 1202, in prepare_files 
    do_download, 

    File "/usr/lib/python2.7/site-packages/pip/req.py", line 1380, in unpack_url 
    self.session, 

    File "/usr/lib/python2.7/site-packages/pip/download.py", line 546, in unpack_http_url 
    resp = session.get(target_url, stream=True) 

    File "/usr/lib/python2.7/site-packages/pip/_vendor/requests/sessions.py", line 468, in get 
    return self.request('GET', url, **kwargs) 

    File "/usr/lib/python2.7/site-packages/pip/download.py", line 237, in request 
    return super(PipSession, self).request(method, url, *args, **kwargs) 

    File "/usr/lib/python2.7/site-packages/pip/_vendor/requests/sessions.py", line 456, in request 
    resp = self.send(prep, **send_kwargs) 

    File "/usr/lib/python2.7/site-packages/pip/_vendor/requests/sessions.py", line 559, in send 
    r = adapter.send(request, **kwargs) 

    File "/usr/lib/python2.7/site-packages/pip/_vendor/requests/adapters.py", line 378, in send 
    raise ProxyError(e) 

ProxyError: ('Cannot connect to proxy.', gaierror(-2, 'Name or service not known')) 

Storing debug log for failure in /root/.pip/pip.log 
error: /bin/python -m pip.__init__ install 'pbr>=0.5.21,<1.0' 'Babel>=1.3' 'six>=1.7.0' 'oslo.serialization>=1.0.0    # Apache-2.0' 'oslo.utils>=1.0.0      # Apache-2.0' 'oslo.config>=1.4.0 # Apache-2.0' 'oslo.concurrency>=0.1.0 # Apache-2.0' 'docker-py>=0.5.1' returned 2 

ответ

0

установить прокси-сервер в файл bash centos.

экспорт http_proxy = "HTTP: // PROXY = USERNAME = ЗДЕСЬ: PROXY = PASSWORD = HERE @ URL: ПОРТ"

экспорта https_proxy = "https: // PROXY = USERNAME = ЗДЕСЬ: PROXY = PASSWORD = ЗДЕСЬ @ URL: ПОРТ»

экспорт ftp_proxy = "FTP: // PROXY = USERNAME = ЗДЕСЬ: PROXY = PASSWORD = ЗДЕСЬ @ URL: ПОРТ"