第 4 章 添加 OpenStack 基础架构提供程序
部署 CloudForms 管理引擎设备 后,您可以先将其添加为 OpenStack 基础架构提供程序来管理 OpenStack 环境。提供 admin 帐户的详情,以访问 admin 租户中的资源:
-
导航到
Infrastructure > Providers。 -
点
(Configuration),然后点
(Add a New Infrastructure Provider)。
- 输入要添加的提供程序 的名称。Name 是在控制台中标记该设备的方式。
- 从 Type 列表中选择 OpenStack Platform Director。
输入提供程序 的主机名或 IP 地址(IPv4 或 IPv6)。
重要主机名 必须使用唯一的完全限定域名(FQDN)。
从列表中选择 keystone 服务的 API Version。默认为
Keystone v2。重要如果 keystone 服务被配置为使用 SSL,您必须输入 keystone SSL 端口。
-
为供应商选择适当的
区域。默认情况下,区域设置为默认。 在 Credentials 区域中,在 Default 下提供 OpenStack Infrastructure 管理用户所需的登录凭证:
- 在 Username 字段中输入用户名。
- 在 Password 字段中输入密码。
- 确认 Confirm Password 字段中的用户密码。
- 单击 Validate,以确认 CloudForms 管理引擎 可以使用用户名和密码连接到 OpenStack Infrastructure 实例。
在 AMQP 下,提供高级消息队列协议消息传递服务所需的登录凭证:
- 在 Username 字段中输入管理用户名。
- 在 Password 字段中输入用户密码。
- 确认 Confirm Password 字段中的用户密码。
- 单击 Validate 以确认 CFME 可以连接到消息传递服务。
在 RSA 密钥对 下,提供通过 SSH 连接到提供商中的所有主机所需的用户名和私钥:
- 在 Username 字段中输入管理用户名。
- 在 Private Key 字段中输入部署 OpenStack 的机器中的私钥。
- 点击 Add。
CloudForms 管理引擎 要求所有 OpenStack 服务的 adminURL 端点位于非私有网络中。因此,您应该为 adminURL 端点分配 192.168.x.x 以外的 IP 地址。adminURL 端点必须可以被 CFME 设备访问,该设备负责收集清单并从 OpenStack 环境收集指标。此外,请确保可以访问所有 keystone 端点,否则 刷新 过程将失败。
4.1. 配置 Red Hat CloudForms 以接收事件 复制链接链接已复制到粘贴板!
要允许红帽 CloudForms 从 Red Hat OpenStack Platform 环境中接收事件,您必须在该环境中为 Compute 服务和编排服务配置 notification_driver 选项。
编辑 /etc/heat/heat.conf 并指定以下选项:
notification_driver=glance.openstack.common.notifier.rpc_notifier notification_topics=notifications
notification_driver=glance.openstack.common.notifier.rpc_notifier notification_topics=notificationsCopy to Clipboard Copied! Toggle word wrap Toggle overflow 编辑 /etc/nova/nova.conf 并指定以下选项:
notification_driver=messaging notification_topics=notifications
notification_driver=messaging notification_topics=notificationsCopy to Clipboard Copied! Toggle word wrap Toggle overflow 重启 Compute 服务和编配服务:
systemctl restart openstack-heat-api.service \ openstack-heat-api-cfn.service \ openstack-heat-engine.service \ openstack-heat-api-cloudwatch.service systemctl restart openstack-nova-compute.service
# systemctl restart openstack-heat-api.service \ openstack-heat-api-cfn.service \ openstack-heat-engine.service \ openstack-heat-api-cloudwatch.service # systemctl restart openstack-nova-compute.serviceCopy to Clipboard Copied! Toggle word wrap Toggle overflow