1

我正在尝试在 AWS Minikube 上安装 SAP Vora 2.0,但出现此错误:“Docker 构建失败。” 已尝试使用 Vora 2.1 版,但仍遇到类似错误。

这是我得到的实际错误日志:

Downloading/unpacking kubernetes
Cleaning up...
Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 290, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1266, in prepare_files
    req_to_install.extras):
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2401, in requires
    dm = self._dep_map
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2597, in _dep_map
    self.__dep_map = self._compute_dependencies()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2621, in _compute_dependencies
    parsed = next(parse_requirements(distvers))
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 49, in <lambda>
    next = lambda o: o.next()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2721, in parse_requirements
    "version spec")
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2697, in scan_list
    raise ValueError(msg, line, "at", line[p:])
ValueError: ("Expected ',' or end-of-list in", 'websocket-client !=0.40.0,!=0.41.*,!=0.42.*,>=0.32.0', 'at', '*,!=0.42.*,>=0.32.0')

Storing debug log for failure in /root/.pip/pip.log
The command '/bin/sh -c apt-get update &&     apt-get install -y --no-install-recommends python python-pip python-twisted krb5-user vim &&     pip install kubernetes urllib3==1.19.1' returned a non-zero code: 2
Docker build failed !
4

1 回答 1

1

请按照以下 SAP 说明解决问题: https ://launchpad.support.sap.com/#/notes/2608651

编辑帖子:

我们需要编辑 2 个文件来解决这个问题。

在 Vora 安装包中找到以下文件并编辑以添加版本:{rootInstallDirectory}/images/vora-dqp/download_and_install_os_packages.sh

if [ -f /usr/bin/apt-get ]; then
...
pip install kubernetes==4.0.0 protobuf==3.5.1 httplib2==0.10.3 oauth2client==4.1.2 PySocks==1.6.8
...
elif [ -f /usr/bin/yum ]; then
pip install kubernetes==4.0.0 protobuf==3.5.1 httplib2==0.10.3 oauth2client==4.1.2 PySocks==1.6.8
...

修改第二个文件:{rootInstallDirectory}/images/vora-security-operator/init-container/Dockerfile

RUN apt-get update && \
...
pip install kubernetes==4.0.0 urllib3==1.19.1 PySocks==1.6.8
...

此问题将在下一个 Vora 补丁中修复。

于 2018-02-26T06:54:16.640 回答