2.4. 使用相同的网络配置和部署每个单元堆栈
您必须配置每个单元堆栈,将单元标识为部署中的额外单元。
流程
为新单元创建一个新目录:
(undercloud)$ mkdir cells
-
为单元目录(
cells
)中每个额外单元创建一个新的环境文件,用于特定于单元的参数,例如/cells/cell1.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
使用其他环境文件将环境文件添加到堆栈中,并部署单元堆栈:
(undercloud)$ openstack overcloud deploy --templates \ --stack cell1 \ -e [your environment files] \ -e /home/stack/templates/overcloud-baremetal-deployed.yaml \ -e /home/stack/templates/overcloud-networks-deployed.yaml \ -e /home/stack/templates/overcloud-vip-deployed.yaml \ -r $HOME/common/cell_roles_data.yaml \ -e $HOME/common/default_cell_export.yaml \ -e $HOME/cells/cell1.yaml
为每个单元堆栈重复此步骤,直到部署所有单元堆栈。