从 Cloudify 应用程序 VM 中检索 Cloudify Manager 的 IP

Retrieve IP of the Cloudify Manager from inside Cloudify Application VM

我正在使用 Cloudify 2.7 和 OpenStack Iceouse。

如何从 Cloudify 应用程序 VM 中检索 Cloudify Manager 的 IP?

好问题。不幸的是,没有简单的 API 来获得它。由于 Cloudify 2 已结束生命周期,因此没有添加此类 API.

的计划

话虽如此,但有一个包含此信息的环境变量。环境变量名称为:

LOOKUPLOCATORS

此变量的值格式为:

<HOST1>:<PORT1>;<HOST2>:<PORT2>

其中每个主机都是一个 cloudify 2 管理器。