在 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 to @eandersson 现在这两项服务都成功 运行ning 但我遇到了另一个问题,那就是当我尝试 运行:
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 = 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 安装 pip 时,您应该应用需求约束。
-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=stable/ocata osprofiler" magnum
我在我的控制器节点的 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 现在这两项服务都成功 运行ning 但我遇到了另一个问题,那就是当我尝试 运行:
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 = 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 安装 pip 时,您应该应用需求约束。
-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=stable/ocata osprofiler" magnum