3.6. 使用路由网络配置和部署每个单元堆栈
执行以下步骤配置一个单元堆栈 cell1。对您要部署的每个额外单元堆栈重复这个过程,直到部署所有单元堆栈为止。
流程
-
为单元目录中的额外单元格创建一个新的环境文件,以用于特定于单元的参数,例如:
/home/stack/cell1/cell1.yaml。 在环境文件中添加以下参数:
resource_registry: OS::TripleO::CellControllerCell1::Net::SoftwareConfig: /home/stack/templates/nic-configs/cellcontroller.yaml OS::TripleO::ComputeCell1::Net::SoftwareConfig: /home/stack/templates/nic-configs/compute.yaml OS::TripleO::Network::Ports::OVNDBsVipPort: /usr/share/openstack-tripleo-heat-templates/network/ports/noop.yaml OS::TripleO::Network::Ports::RedisVipPort: /usr/share/openstack-tripleo-heat-templates/network/ports/noop.yaml parameter_defaults: #Disable network creation in order to use the `network_data.yaml` file from the overcloud stack, # and create ports for the nodes in the separate stacks on the existing networks. ManageNetworks: false # Specify that this is an additional cell NovaAdditionalCell: True # The DNS names for the VIPs for the cell CloudName: cell1.ooo.test CloudNameInternal: cell1.internalapi.ooo.test CloudNameStorage: cell1.storage.ooo.test CloudNameStorageManagement: cell1.storagemgmt.ooo.test CloudNameCtlplane: cell1.ctlplane.ooo.test # Map the flavors to use for the CellController and Compute roles OvercloudCellControllerCell1Flavor: cellcontrollercell1 OvercloudComputeCell1Flavor: computecell1 # Number of controllers/computes in the cell CellControllerCell1Count: 3 ComputeCell1Count: 1要在每个单元格而不是全局 Controller 中运行 Compute 元数据 API,请在单元环境文件中添加以下参数:
parameter_defaults: NovaLocalMetadataPerCell: True在单元环境文件中添加单元的虚拟 IP 地址(VIP)信息:
parameter_defaults: ... VipSubnetMap: InternalApi: internal_api_cell1 Storage: storage_cell1 StorageMgmt: storage_mgmt_cell1 External: external_subnet这会在与 L2 网络段关联的子网中创建虚拟 IP 地址,这个单元格 Controller 节点已连接到这个地址。
使用其他环境文件将环境文件添加到堆栈中,并部署单元堆栈:
(undercloud)$ openstack overcloud deploy --templates \ --stack cell1 \ -e [your environment files] \ -r /home/stack/cell1/cell1_roles_data.yaml \ -n /home/stack/common/network_data_spine_leaf.yaml \ -e /home/stack/common/default_cell_export.yaml \ -e /home/stack/cell1/cell1.yaml