首页 > 代码库 > 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. It‘s 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
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。