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-data <network data>]
                                       [--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 | --no-automated-clean]
                                       [--owner <owner>] [--lessee <lessee>]
                                       [--description <description>]

表 11.209. 命令参数
概述

-h, --help

显示帮助信息并退出

--chassis-uuid <chassis>

此节点所属的机箱的 UUID。

--driver <driver>

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

--driver-info <key=value>

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

--property <key=value>

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

--extra <key=value>

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

--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-data <network data>

JSON 字符串或 yaml 文件或 - 用于 stdin 以读取与此 ironic 节点关联的裸机节点的静态网络配置。此文件的格式应符合 Nova 网络数据元数据(network_data.json)。根据所使用的 ironic 引导接口功能,网络配置可能无法提供给节点进行离线网络配置。

--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

为节点启用自动清理

--no-automated-clean

为节点明确禁用自动清理

--owner <owner>

节点的所有者。

--lessee <lessee>

节点的更少。

--description <description>

节点的描述。

表 11.210. 输出格式选项
概述

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

输出格式,默认为 table

-c COLUMN, --column COLUMN

指定要包含的列,可以重复显示多个列

表 11.211. JSON 格式选项
概述

--noindent

是否禁用缩进 json

表 11.212. Shell formatter 选项
概述

--prefix PREFIX

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

表 11.213. 表格式器选项
概述

--max-width <integer>

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

--fit-width

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

--print-empty

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

Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

© 2024 Red Hat, Inc.