Show Table of Contents
5.3. 为节点添加标签(tag)来标记为配置集
在注册并检查完每个节点的硬件后,需要为它们添加标签(tag)来把它们标记为特定的配置集。这些配置集标签会把节点和 flavor 相匹配,从而使 flavor 被分配到一个部署角色。在 Undercloud 的安装过程中,会创建默认的配置集 flavor:
compute、control、swift-storage、ceph-storage 和 block-storage,在多数环境中,都可以在不经过修改的情况下使用它们。
注意
如果有大量的节点,可以使用自动为配置集添加标签的功能。相关信息,请参阅 附录 C, 自动配置集标记。
为了通过添加标签把节点标记为特定的配置集,把
profile 选项添加到每个节点的 properties/capabilities 参数中。例如,把环境中的两个节点分别标记为使用 controller 配置集和 compute 配置集,使用以下命令:
$ ironic node-update 58c3d07e-24f2-48a7-bbb6-6843f0e8ee13 add properties/capabilities='profile:compute,boot_option:local' $ ironic node-update 1a4e30da-b6dc-499d-ba87-0bd8a3819bc0 add properties/capabilities='profile:control,boot_option:local'
其中的
profile:compute 和 profile:control 选项会把节点标记为相关的配置集。
这些命令同时也设置了
boot_option:local 参数,它定义了每个节点的引导模式。
在标记完节点后,检查分配的配置集或可能的配置集:
$ openstack overcloud profiles list

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.