3.2. 为单元网络路由准备 control plane 和默认单元
您必须在 overcloud 堆栈上配置路由,以便 overcloud 堆栈与单元通信。为达成此目标,创建一个网络数据文件,用于定义主堆栈中的所有网络和子网,并使用此文件部署 overcloud 堆栈和单元堆栈。
流程
-
以
stack用户的身份登录 undercloud。 Source
stackrc文件:[stack@director ~]$ source ~/stackrc为通用堆栈配置创建新目录:
(undercloud)$ mkdir common将默认
network_data_subnets_routed.yaml文件复制到您的common目录中,为您的 overcloud 堆栈添加可组合网络:(undercloud)$ cp /usr/share/openstack-tripleo-heat-templates/network_data_subnets_routed.yaml ~/common/network_data_routed_multi_cell.yaml有关可组合网络的更多信息,请参阅高级 Overcloud 自定义指南中的 自定义可组合网络。
-
更新您网络的
/common/network_data_routed_multi_cell.yaml中的配置,并更新单元子网名称以方便识别,例如,将internal_api_leaf1改为internal_api_cell1。 确保每个角色的 NIC 模板中的接口包括
<network_name>InterfaceRoutes,例如:- type: vlan vlan_id: get_param: InternalApiNetworkVlanID addresses: - ip_netmask: get_param: InternalApiIpSubnet routes: get_param: InternalApiInterfaceRoutes使用其他环境文件,将
network_data_routed_multi_cell.yaml文件添加到 overcloud 栈,并部署 overcloud:(undercloud)$ openstack overcloud deploy --templates \ --stack overcloud \ -n /home/stack/common/network_data_routed_multi_cell.yaml \ -e [your environment files]