9.36. 裸机节点创建


使用 baremetal 服务注册新节点

使用方法:

openstack baremetal node create [-h] [-f {json,shell,table,value,yaml}]
                                       [-c COLUMN] [--max-width <integer>]
                                       [--fit-width] [--print-empty]
                                       [--noindent] [--prefix PREFIX]
                                       [--chassis-uuid <chassis>] --driver
                                       <driver> [--driver-info <key=value>]
                                       [--property <key=value>]
                                       [--extra <key=value>] [--uuid <uuid>]
                                       [--name <name>]
                                       [--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>]
                                       [--storage-interface <storage_interface>]
                                       [--vendor-interface <vendor_interface>]
                                       [--resource-class <resource_class>]
Copy to Clipboard Toggle word wrap

Expand
表 9.141. 表格式
概述

--print-empty

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

--max-width <integer>

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

--fit-width

适合显示宽度的表。如果 --max-width 大于 0,则意味着。将环境变量 CLIFF_FIT_WIDTH=1 设置为 always 启用

Expand
表 9.142. 输出格式器
概述

output formatter options-f {json,shell,table,value,yaml}, --format {json,shell,table,value,yaml}

输出格式,默认为 table

-c COLUMN, --column COLUMN

指定要包含的列,可以重复

Expand
表 9.143. JSON Formatter
概述

--noindent

是否禁用缩进 json

Expand
表 9.144. 可选参数
概述

--inspect-interface <inspect_interface>

检查节点驱动程序使用的接口。这仅适用于指定 --driver 是一个硬件类型。

--boot-interface <boot_interface>

由节点驱动程序使用的引导接口。这仅适用于指定的 --driver 是一个硬件类型。

--management-interface <management_interface>

节点驱动程序使用的管理接口。这仅适用于指定的 --driver 是一个硬件类型。

--driver <driver>

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

--deploy-interface <deploy_interface>

部署由节点驱动程序使用的界面。这仅适用于指定的 --driver 是一个硬件类型。

--uuid <uuid>

节点的唯一 uuid。

--console-interface <console_interface>

由节点驱动程序使用的控制台接口。这仅适用于指定的 --driver 是一个硬件类型。

--chassis-uuid <chassis>

此节点所属的机箱的 UUID。

--network-interface <network_interface>

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

--property <key=value>

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

--vendor-interface <vendor_interface>

节点驱动程序使用的厂商界面。这仅适用于指定 --driver 是一个硬件类型。

--resource-class <resource_class>

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

--raid-interface <raid_interface>

节点驱动程序使用的 RAID 接口。这只适用于指定 --driver 是一个硬件类型。

--storage-interface <storage_interface>

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

--power-interface <power_interface>

节点驱动程序使用的电源接口。这仅适用于指定的 --driver 是一个硬件类型。

--name <name>

节点的唯一名称。

--driver-info <key=value>

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

--extra <key=value>

记录任意键/值元数据。可以多次指定。

-h, --help

显示帮助信息并退出

Expand
表 9.145. shell Formatter
概述

格式化 UNIX shell 可以解析(variable="value")--prefix PREFIX

为所有变量名称添加前缀

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2025 Red Hat