11.52. 裸机节点创建


使用 baremetal 服务注册新节点

使用方法:

openstack baremetal node create [-h] [-f {json,shell,table,value,yaml}]
                                       [-c COLUMN] [--noindent]
                                       [--prefix PREFIX]
                                       [--max-width <integer>] [--fit-width]
                                       [--print-empty]
                                       [--chassis-uuid <chassis>] --driver
                                       <driver> [--driver-info <key=value>]
                                       [--property <key=value>]
                                       [--extra <key=value>] [--uuid <uuid>]
                                       [--name <name>]
                                       [--bios-interface <bios_interface>]
                                       [--boot-interface <boot_interface>]
                                       [--console-interface <console_interface>]
                                       [--deploy-interface <deploy_interface>]
                                       [--inspect-interface <inspect_interface>]
                                       [--management-interface <management_interface>]
                                       [--network-interface <network_interface>]
                                       [--power-interface <power_interface>]
                                       [--raid-interface <raid_interface>]
                                       [--rescue-interface <rescue_interface>]
                                       [--storage-interface <storage_interface>]
                                       [--vendor-interface <vendor_interface>]
                                       [--resource-class <resource_class>]
                                       [--conductor-group <conductor_group>]
                                       [--automated-clean] [--owner <owner>]
                                       [--description <description>]
Copy to Clipboard Toggle word wrap

Expand
表 11.209. 命令参数
valueSummary

-h, --help

显示帮助信息并退出

--chassis-uuid <chassis>

此节点所属的机箱的 UUID。

--driver <driver>

用于控制节点的驱动程序 [必需]。

--driver-info <key=value>

驱动程序使用的键/值对,如带外管理凭证。可多次指定。

--property <key=value>

键/值对描述节点的物理特性。这会导出到 Nova,并由调度程序使用。可多次指定。

--extra <key=value>

记录任意键/值 metadata. 可以多次指定。

--uuid <uuid>

节点的唯一 uuid。

--name <name>

节点的唯一名称。

--bios-interface <bios_interface>

节点驱动程序使用的 BIOS 接口。这仅在指定的 --driver 是硬件类型时才有效。

--boot-interface <boot_interface>

节点的驱动程序使用的引导接口。这仅在指定的 --driver 是硬件类型时才有效。

--console-interface <console_interface>

节点驱动程序使用的控制台接口。这仅在指定的 --driver 是硬件类型时才有效。

--deploy-interface <deploy_interface>

部署由节点驱动程序使用的接口。这仅在指定的 --driver 是硬件类型时才有效。

--inspect-interface <inspect_interface>

检查节点驱动程序使用的接口。这仅在指定的 --driver 是硬件类型时才有效。

--management-interface <management_interface>

节点的驱动程序使用的管理界面。这仅在指定的 --driver 是硬件类型时才有效。

--network-interface <network_interface>

用于切换节点用于清理/置备网络的网络接口。

--power-interface <power_interface>

节点驱动程序使用的电源接口。这仅在指定的 --driver 是硬件类型时才有效。

--raid-interface <raid_interface>

节点驱动程序使用的 RAID 接口。这仅在指定的 --driver 是硬件类型时才有效。

--rescue-interface <rescue_interface>

节点的驱动程序使用的救援接口。这仅在指定的 --driver 是硬件类型时才有效。

--storage-interface <storage_interface>

节点驱动程序使用的存储接口。

--vendor-interface <vendor_interface>

节点的驱动程序使用的供应商接口。这仅在指定的 --driver 是硬件类型时才有效。

--resource-class <resource_class>

用于将节点映射到 nova 类别的资源类

--conductor-group <conductor_group>

节点将属于的编排器组

--automated-clean

为节点启用自动清理

--owner <owner>

节点的所有者。

--description <description>

节点的描述。

Expand
表 11.210. 输出格式选项
valueSummary

-f {json,shell,table,value,yaml}, --format {json,shell,table,value,yaml}

输出格式,默认为 table

-c COLUMN, --column COLUMN

可以重复指定要包含的列

Expand
表 11.211. JSON 格式器选项
valueSummary

--noindent

是否禁用对 json 的缩进

Expand
表 11.212. shell 格式化器选项
valueSummary

--prefix PREFIX

在所有变量名称中添加前缀

Expand
表 11.213. 表格式器选项
valueSummary

--max-width <integer>

最大显示宽度,即 <1 来禁用。您还可以使用 CLIFF_MAX_TERM_WIDTH 环境变量,但参数具有优先权。

--fit-width

将表与显示宽度匹配。如果 --max 宽度大于 0,则表示表示。将环境变量 CLIFF_FIT_WIDTH=1 设置为 always 启用

--print-empty

如果没有要显示数据,则打印空表。

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat