繁体   English   中英

在Docker上安装OpenStack Magnum

[英]install openstack magnum on docker

我在控制器节点的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到@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)

您可能缺少osprofiler ,而不是profiler

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”万能

顺便说一下,在为OpenStack安装一些东西时,您应该应用需求限制。

-c https://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 =稳定/ ocata osprofiler”大酒瓶

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM