码迷,mamicode.com
首页 > 其他好文 > 详细

openstack docker build error

时间:2017-04-01 12:42:35      阅读:574      评论:0      收藏:0      [点我收藏+]

标签:超时   python2.7   project   path   info   set   term   att   protoc   

1. 

    _proto_tcp = socket.getprotobyname(tcp)
OSError: protocol not found

you should have a /etc/protocols file. It must have been deleted somehow. It comes from the netbase package.

apt install -y netbase

 

2.

  File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/identity/generic/base.py", line 191, in _do_create_plugin
    raise exceptions.DiscoveryFailure(Could not determine a suitable URL 
DiscoveryFailure: Could not determine a suitable URL for the plugin

keystone token 环境变量设置错误,比如用户名、密码、AUTH_URL等

 

3.

python setup.py install
ERROR:root:Error parsing
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/pbr/core.py", line 111, in pbr
    attrs = util.cfg_to_args(path, dist.script_args)
  File "/usr/local/lib/python2.7/dist-packages/pbr/util.py", line 249, in cfg_to_args
    pbr.hooks.setup_hook(config)
  File "/usr/local/lib/python2.7/dist-packages/pbr/hooks/__init__.py", line 25, in setup_hook
    metadata_config.run()
  File "/usr/local/lib/python2.7/dist-packages/pbr/hooks/base.py", line 27, in run
    self.hook()
  File "/usr/local/lib/python2.7/dist-packages/pbr/hooks/metadata.py", line 26, in hook
    self.config[name], self.config.get(version, None))
  File "/usr/local/lib/python2.7/dist-packages/pbr/packaging.py", line 750, in get_version
    name=package_name))
Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. Its also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name device was given, but was not able to be found.

安装git, 并确保该目录下有.git文件夹

4.

 

pip安装报SSLError: The read operation timed out的问题

增加--default-timeout=100,加大超时时间

5.

 

openstack docker build error

标签:超时   python2.7   project   path   info   set   term   att   protoc   

原文地址:http://www.cnblogs.com/tangkaixin/p/6655299.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!