首页 > 代码库 > openstack docker build error

openstack docker build error

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