【问题标题】:install openstack magnum on docker在 docker 上安装 openstack magnum
【发布时间】:2018-09-22 19:50:49
【问题描述】:

我在我的控制器节点的 docker 上安装了 openstack magnum(ocata 版本),因为我已经在我的主机上安装了 newton 并且 newton 二进制文件没有正确安装但是现在当我尝试运行 magnum-service list 命令时,输出是:

ERROR: Unable to establish connection to http://controller:9511/v1/mservices

然后我检查了 magnum-api 和 magnum-conductor 日志,并且出现了错误:

ERROR magnum ImportError: No module named profiler

然后我尝试了:

su -s /bin/sh -c "/var/lib/magnum/env/bin/pip install profiler" magnum

但即使在安装分析器之后,错误也是一样的。 任何人都可以帮忙吗?
Tnx to @eandersson 现在这两个服务都运行成功了,但是我遇到了另一个问题,那就是当我尝试运行时:

magnum service-list

结果是:

ERROR: 'errors'

所以我尝试了:

magnum --debug service-list

结果是:

ERROR: 'NoneType' object has no attribute 'replace' (HTTP 500) (Request-ID: req-cbe3a389-1cea-49f6-8472-3275696a67e3)

【问题讨论】:

    标签: docker openstack


    【解决方案1】:

    您可能缺少osprofiler,而不是分析器

    profiler = importutils.try_import("osprofiler.profiler")
    profiler_initializer = importutils.try_import("osprofiler.initializer")
    profiler_web = importutils.try_import("osprofiler.web")
    

    尝试安装它。

    su -s /bin/sh -c "/var/lib/magnum/env/bin/pip install osprofiler" magnum

    顺便说一句,在为 OpenStack 安装某些东西时,您应该应用需求约束。

    -chttps://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/ocata

    所以理想情况下,您的命令应该是这样的。

    su -s /bin/sh -c "/var/lib/magnum/env/bin/pip install -c https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/ocataosprofiler" magnum

    【讨论】:

    • Tnx 现在服务正在运行,但正如我在最近的编辑中所说,我遇到了另一个错误。你也可以帮我吗?
    猜你喜欢
    • 1970-01-01
    • 2014-05-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多