1.4. 在 Red Hat OpenStack Platform 中查找安全区
运行以下命令来收集有关 Red Hat OpenStack Platform 部署的物理配置的信息:
先决条件
- 已安装 Red Hat OpenStack Platform 环境。
- 以 stack 身份登录 director。
流程
源
stackrc
:$ source /home/stack/stackrc
运行
openstack subnet list
,将分配的 ip 网络与关联的区匹配:openstack subnet list -c Name -c Subnet +---------------------+------------------+ | Name | Subnet | +---------------------+------------------+ | ctlplane-subnet | 192.168.101.0/24 | | storage_mgmt_subnet | 172.16.105.0/24 | | tenant_subnet | 172.16.102.0/24 | | external_subnet | 10.94.81.0/24 | | internal_api_subnet | 172.16.103.0/24 | | storage_subnet | 172.16.104.0/24 | +---------------------+------------------+
运行
openstack server list
以列出您基础架构中的物理服务器:openstack server list -c Name -c Networks +-------------------------+-------------------------+ | Name | Networks | +-------------------------+-------------------------+ | overcloud-controller-0 | ctlplane=192.168.101.15 | | overcloud-controller-1 | ctlplane=192.168.101.19 | | overcloud-controller-2 | ctlplane=192.168.101.14 | | overcloud-novacompute-0 | ctlplane=192.168.101.18 | | overcloud-novacompute-2 | ctlplane=192.168.101.17 | | overcloud-novacompute-1 | ctlplane=192.168.101.11 | +-------------------------+-------------------------+
使用
openstack server list
命令中的ctlplane
地址来查询物理节点的配置:ssh tripleo-admin@192.168.101.15 ip addr