在Sahara(devStack Pike)中为插件构建图像时出错ERROR:venv:命令失败

时间:2017-11-23 21:46:54

标签: ubuntu cloud openstack devstack

配置:在Ubuntu16.04 VM上使用devStack的Openstack Pike

启用了插件:

  • 撒哈拉
  • 特罗韦
  • 撒哈拉仪表板
  • Trove Dashboard

安装成功并且能够访问地平线。现在,尝试按照以下步骤为撒哈拉沙漠建立图像:

  1. 在本地克隆存储库“https://github.com/openstack/sahara-image-elements
  2. 使用tox构建图像。
  3. 当我在文件夹/ sahara-image-elements

    中运行命令时
    stack@devstack:~/sahara-image-elements$ tox -e venv -- sahara-image-create -u
    

    出现以下错误

    dib-run-parts Thu Nov 23 16:29:59 EST 2017 0-check-hadoop completed
    dib-run-parts Thu Nov 23 16:29:59 EST 2017 Running /tmp/dib_build.6egsQeuH/hooks/root.d/0-check-hive
    dib-run-parts Thu Nov 23 16:29:59 EST 2017 0-check-hive completed
    dib-run-parts Thu Nov 23 16:29:59 EST 2017 Running /tmp/dib_build.6egsQeuH/hooks/root.d/0-check-oozie
    dib-run-parts Thu Nov 23 16:29:59 EST 2017 0-check-oozie completed
    dib-run-parts Thu Nov 23 16:29:59 EST 2017 Running /tmp/dib_build.6egsQeuH/hooks/root.d/0-check-spark
    /tmp/dib_build.6egsQeuH/hooks/root.d/0-check-spark: line 23: DIB_SPARK_VERSION: unbound variable
    2017-11-23 16:29:59.868 INFO diskimage_builder.block_device.blockdevice [-] State already cleaned - no way to do anything here
    ERROR: InvocationError: '/opt/stack/sahara-image-elements/.tox/venv/bin/sahara-image-create'
    _______________________________________________________________________________________________________ summary ________________________________________________________________________________________________________
    ERROR:   venv: commands failed
    

    任何帮助表示赞赏....

1 个答案:

答案 0 :(得分:0)

在您的环境变量中设置DIB_SPARK_VERSION = 2.3.0或2.2.0,并为其提供源,然后运行相同的命令。如果发生相同的错误,请删除-u并添加运行此命令tox -e venv-sahara-image-create -i ubuntu -p spark -s 2.3.0