The ironic client is the command-line interface (CLI) for the Bare Metal service (ironic) API and its extensions.
This chapter documents ironic version 1.11.1
.
For help on a specific ironic command, enter:
$ ironic help COMMAND
usage: ironic [--insecure] [--os-cacert <ca-certificate>]
[--os-cert <certificate>] [--os-key <key>] [--timeout <seconds>]
[--version] [--debug] [--json] [-v] [--cert-file OS_CERT]
[--key-file OS_KEY] [--ca-file OS_CACERT]
[--os-username OS_USERNAME] [--os-password OS_PASSWORD]
[--os-tenant-id OS_TENANT_ID] [--os-tenant-name OS_TENANT_NAME]
[--os-auth-url OS_AUTH_URL] [--os-region-name OS_REGION_NAME]
[--os-auth-token OS_AUTH_TOKEN] [--ironic-url IRONIC_URL]
[--ironic-api-version IRONIC_API_VERSION]
[--os-service-type OS_SERVICE_TYPE] [--os-endpoint IRONIC_URL]
[--os-endpoint-type OS_ENDPOINT_TYPE]
[--os-user-domain-id OS_USER_DOMAIN_ID]
[--os-user-domain-name OS_USER_DOMAIN_NAME]
[--os-project-id OS_PROJECT_ID]
[--os-project-name OS_PROJECT_NAME]
[--os-project-domain-id OS_PROJECT_DOMAIN_ID]
[--os-project-domain-name OS_PROJECT_DOMAIN_NAME]
[--max-retries MAX_RETRIES] [--retry-interval RETRY_INTERVAL]
<subcommand> ...
Subcommands:
chassis-create
chassis-delete
chassis-list
chassis-node-list
chassis-show
chassis-update
node-create
node-delete
node-get-boot-device
node-get-console
node-get-supported-boot-devices
node-get-vendor-passthru-methods
node-inject-nmi
node-list
node-port-list
node-set-boot-device
node-set-console-mode
node-set-maintenance
node-set-power-state
node-set-provision-state
node-set-target-raid-config
node-show
node-show-states
node-update
node-validate
node-vendor-passthru
node-vif-attach
node-vif-detach
node-vif-list
port-create
port-delete
port-list
port-show
port-update
portgroup-create
portgroup-delete
portgroup-list
portgroup-port-list
portgroup-show
portgroup-update
driver-get-vendor-passthru-methods
driver-list
driver-properties
driver-raid-logical-disk-properties
driver-show
driver-vendor-passthru
create
bash-completion
help
--version
--debug
env[IRONICCLIENT_DEBUG]
--json
-v, --verbose
--cert-file OS_CERT
--key-file OS_KEY
--ca-file OS_CACERT
--os-username OS_USERNAME
env[OS_USERNAME]
--os-password OS_PASSWORD
env[OS_PASSWORD]
--os-tenant-id OS_TENANT_ID
env[OS_TENANT_ID]
--os-tenant-name OS_TENANT_NAME
env[OS_TENANT_NAME]
--os-auth-url OS_AUTH_URL
env[OS_AUTH_URL]
--os-region-name OS_REGION_NAME
env[OS_REGION_NAME]
--os-auth-token OS_AUTH_TOKEN
env[OS_AUTH_TOKEN]
--ironic-url IRONIC_URL
env[IRONIC_URL]
--ironic-api-version IRONIC_API_VERSION
env[IRONIC_API_VERSION]
or 1--os-service-type OS_SERVICE_TYPE
env[OS_SERVICE_TYPE]
or "baremetal"--os-endpoint IRONIC_URL
env[OS_SERVICE_ENDPOINT]
.--os-endpoint-type OS_ENDPOINT_TYPE
env[OS_ENDPOINT_TYPE]
or "publicURL"--os-user-domain-id OS_USER_DOMAIN_ID
env[OS_USER_DOMAIN_ID]
.--os-user-domain-name OS_USER_DOMAIN_NAME
env[OS_USER_DOMAIN_NAME]
.--os-project-id OS_PROJECT_ID
env[OS_PROJECT_ID]
.--os-project-name OS_PROJECT_NAME
env[OS_PROJECT_NAME]
.--os-project-domain-id OS_PROJECT_DOMAIN_ID
env[OS_PROJECT_DOMAIN_ID]
.--os-project-domain-name OS_PROJECT_DOMAIN_NAME
env[OS_PROJECT_DOMAIN_NAME]
.--max-retries MAX_RETRIES
env[IRONIC_MAX_RETRIES]
or 5.
Use 0 to disable retrying.--retry-interval RETRY_INTERVAL
env[IRONIC_RETRY_INTERVAL]
or 2.usage: ironic chassis-create [-d <description>] [-e <key=value>] [-u <uuid>]
Create a new chassis.
Optional arguments:
-d <description>, --description <description>
-e <key=value>, --extra <key=value>
-u <uuid>, --uuid <uuid>
usage: ironic chassis-delete <chassis> [<chassis> ...]
Delete a chassis.
Positional arguments:
<chassis>
usage: ironic chassis-list [--detail] [--limit <limit>] [--marker <chassis>]
[--sort-key <field>] [--sort-dir <direction>]
[--fields <field> [<field> ...]]
List the chassis.
Optional arguments:
--detail
--limit <limit>
--marker <chassis>
--sort-key <field>
--sort-dir <direction>
--fields <field> [<field> ...]
usage: ironic chassis-node-list [--detail] [--limit <limit>] [--marker <node>]
[--sort-key <field>] [--sort-dir <direction>]
[--fields <field> [<field> ...]]
[--maintenance <boolean>]
[--associated <boolean>]
[--provision-state <provision-state>]
<chassis>
List the nodes contained in a chassis.
Positional arguments:
<chassis>
Optional arguments:
--detail
--limit <limit>
--marker <node>
--sort-key <field>
--sort-dir <direction>
--fields <field> [<field> ...]
--maintenance <boolean>
--associated <boolean>
--provision-state <provision-state>
usage: ironic chassis-show [--fields <field> [<field> ...]] <chassis>
Show detailed information about a chassis.
Positional arguments:
<chassis>
Optional arguments:
--fields <field> [<field> ...]
usage: ironic chassis-update <chassis> <op> <path=value> [<path=value> ...]
Update information about a chassis.
Positional arguments:
<chassis>
<op>
<path=value>
usage: ironic create <file> [<file> ...]
Create baremetal resources (chassis, nodes, port groups and ports). The resources may be described in one or more JSON or YAML files. If any file cannot be validated, no resources are created. An attempt is made to create all the resources; those that could not be created are skipped (with a corresponding error message).
Positional arguments:
<file>
usage: ironic driver-get-vendor-passthru-methods <driver>
Get the vendor passthru methods for a driver.
Positional arguments:
<driver>
usage: ironic driver-properties [--wrap <integer>] <driver>
Get properties of a driver.
Positional arguments:
<driver>
Optional arguments:
--wrap <integer>
usage: ironic driver-raid-logical-disk-properties [--wrap <integer>] <driver>
Get RAID logical disk properties for a driver.
Positional arguments:
<driver>
Optional arguments:
--wrap <integer>
usage: ironic driver-show <driver>
Show information about a driver.
Positional arguments:
<driver>
usage: ironic driver-vendor-passthru [--http-method <http-method>]
<driver> <method>
[<arg=value> [<arg=value> ...]]
Call a vendor-passthru extension for a driver.
Positional arguments:
<driver>
<method>
<arg=value>
Optional arguments:
--http-method <http-method>
usage: ironic node-create [-c <chassis>] -d <driver> [-i <key=value>]
[-p <key=value>] [-e <key=value>] [-u <uuid>]
[-n <name>]
[--network-interface <network_interface>]
[--resource-class <resource_class>]
Register a new node with the Ironic service.
Optional arguments:
-c <chassis>, --chassis <chassis>
-i <key=value>, --driver-info <key=value>
-p <key=value>, --properties <key=value>
-e <key=value>, --extra <key=value>
-u <uuid>, --uuid <uuid>
-n <name>, --name <name>
--network-interface <network_interface>
--resource-class <resource_class>
Required arguments:
-d <driver>, --driver <driver>
usage: ironic node-delete <node> [<node> ...]
Unregister node(s) from the Ironic service. Returns errors for any nodes that could not be unregistered.
Positional arguments:
<node>
usage: ironic node-get-boot-device <node>
Get the current boot device for a node.
Positional arguments:
<node>
usage: ironic node-get-console <node>
Get the connection information for a node's console, if enabled.
Positional arguments:
<node>
usage: ironic node-get-supported-boot-devices <node>
Get the supported boot devices for a node.
Positional arguments:
<node>
usage: ironic node-get-vendor-passthru-methods <node>
Get the vendor passthru methods for a node.
Positional arguments:
<node>
usage: ironic node-inject-nmi <node>
Inject NMI to a node.
Positional arguments:
<node>
usage: ironic node-list [--limit <limit>] [--marker <node>]
[--sort-key <field>] [--sort-dir <direction>]
[--maintenance <boolean>] [--associated <boolean>]
[--provision-state <provision-state>]
[--driver <driver>] [--detail]
[--fields <field> [<field> ...]]
[--resource-class <resource class>]
List the nodes which are registered with the Ironic service.
Optional arguments:
--limit <limit>
--marker <node>
--sort-key <field>
--sort-dir <direction>
--maintenance <boolean>
--associated <boolean>
--provision-state <provision-state>
--driver <driver>
--detail
--fields <field> [<field> ...]
--resource-class <resource class>
usage: ironic node-port-list [--detail] [--limit <limit>] [--marker <port>]
[--sort-key <field>] [--sort-dir <direction>]
[--fields <field> [<field> ...]]
<node>
List the ports associated with a node.
Positional arguments:
<node>
Optional arguments:
--detail
--limit <limit>
--marker <port>
--sort-key <field>
--sort-dir <direction>
--fields <field> [<field> ...]
usage: ironic node-set-boot-device [--persistent] <node> <boot-device>
Set the boot device for a node.
Positional arguments:
<node>
<boot-device>
Optional arguments:
--persistent
usage: ironic node-set-console-mode <node> <enabled>
Enable or disable serial console access for a node.
Positional arguments:
<node>
<enabled>
usage: ironic node-set-maintenance [--reason <reason>]
<node> <maintenance-mode>
Enable or disable maintenance mode for a node.
Positional arguments:
<node>
<maintenance-mode>
Optional arguments:
--reason <reason>
usage: ironic node-set-power-state [--soft] [--power-timeout <power-timeout>]
<node> <power-state>
Power a node on or off or reboot.
Positional arguments:
<node>
<power-state>
Optional arguments:
--soft
--power-timeout <power-timeout>
usage: ironic node-set-provision-state [--config-drive <config-drive>]
[--clean-steps <clean-steps>]
[--wait [WAIT_TIMEOUT]]
<node> <provision-state>
Initiate a provisioning state change for a node.
Positional arguments:
<node>
<provision-state>
Optional arguments:
--config-drive <config-drive>
--clean-steps <clean-steps>
--wait [WAIT_TIMEOUT]
usage: ironic node-set-target-raid-config <node> <target-raid-config>
Set target RAID config on a node.
Positional arguments:
<node>
<target-raid-config>
usage: ironic node-show [--instance] [--fields <field> [<field> ...]] <id>
Show detailed information about a node.
Positional arguments:
<id>
Optional arguments:
--instance <id>
--fields <field> [<field> ...]
usage: ironic node-show-states <node>
Show information about the node's states.
Positional arguments:
<node>
usage: ironic node-update <node> <op> <path=value> [<path=value> ...]
Update information about a registered node.
Positional arguments:
<node>
<op>
<path=value>
usage: ironic node-validate <node>
Validate a node's driver interfaces.
Positional arguments:
<node>
usage: ironic node-vendor-passthru [--http-method <http-method>]
<node> <method>
[<arg=value> [<arg=value> ...]]
Call a vendor-passthru extension for a node.
Positional arguments:
<node>
<method>
<arg=value>
Optional arguments:
--http-method <http-method>
usage: ironic node-vif-attach [--vif-info <key=value>] <node> <vif-id>
Attach VIF to a given node.
Positional arguments:
<node>
<vif-id>
Optional arguments:
--vif-info <key=value>
usage: ironic node-vif-detach <node> <vif-id>
Detach VIF from a given node.
Positional arguments:
<node>
<vif-id>
usage: ironic node-vif-list <node>
List VIFs for a given node.
Positional arguments:
<node>
usage: ironic port-create -a <address> -n <node> [-l <key=value>]
[--portgroup <portgroup>] [--pxe-enabled <boolean>]
[-e <key=value>] [-u <uuid>]
Create a new port.
Optional arguments:
-l <key=value>, --local-link-connection <key=value>
--portgroup <portgroup>
--pxe-enabled <boolean>
-e <key=value>, --extra <key=value>
-u <uuid>, --uuid <uuid>
Required arguments:
-a <address>, --address <address>
-n <node>, --node <node>, --node_uuid <node>
usage: ironic port-delete <port> [<port> ...]
Delete a port.
Positional arguments:
<port>
usage: ironic port-list [--detail] [--address <mac-address>] [--limit <limit>]
[--marker <port>] [--sort-key <field>]
[--sort-dir <direction>]
[--fields <field> [<field> ...]]
List the ports.
Optional arguments:
--detail
--address <mac-address>
--limit <limit>
--marker <port>
--sort-key <field>
--sort-dir <direction>
--fields <field> [<field> ...]
usage: ironic port-show [--address] [--fields <field> [<field> ...]] <id>
Show detailed information about a port.
Positional arguments:
<id>
Optional arguments:
--address <id>
--fields <field> [<field> ...]
usage: ironic port-update <port> <op> <path=value> [<path=value> ...]
Update information about a port.
Positional arguments:
<port>
<op>
<path=value>
usage: ironic portgroup-create [-a <address>] -n <node> [--name <name>]
[-e <key=value>]
[--standalone-ports-supported <boolean>]
[-u <uuid>] [-m <mode>] [-p <key=value>]
Create a new portgroup.
Optional arguments:
-a <address>, --address <address>
--name <name>
-e <key=value>, --extra <key=value>
--standalone-ports-supported <boolean>
-u <uuid>, --uuid <uuid>
-m <mode>, --mode <mode>
-p <key=value>, --properties <key=value>
Required arguments:
-n <node>, --node <node>
usage: ironic portgroup-delete <portgroup> [<portgroup> ...]
Delete a portgroup.
Positional arguments:
<portgroup>
usage: ironic portgroup-list [--detail] [-n <node>] [-a <mac-address>]
[--limit <limit>] [--marker <portgroup>]
[--sort-key <field>] [--sort-dir <direction>]
[--fields <field> [<field> ...]]
List the portgroups.
Optional arguments:
--detail
-n <node>, --node <node>
-a <mac-address>, --address <mac-address>
--limit <limit>
--marker <portgroup>
--sort-key <field>
--sort-dir <direction>
--fields <field> [<field> ...]
usage: ironic portgroup-port-list [--detail] [--limit <limit>]
[--marker <port>] [--sort-key <field>]
[--sort-dir <direction>]
[--fields <field> [<field> ...]]
<portgroup>
List the ports associated with a portgroup.
Positional arguments:
<portgroup>
Optional arguments:
--detail
--limit <limit>
--marker <port>
--sort-key <field>
--sort-dir <direction>
--fields <field> [<field> ...]
usage: ironic portgroup-show [--address] [--fields <field> [<field> ...]] <id>
Show detailed information about a portgroup.
Positional arguments:
<id>
Optional arguments:
--address <id>
--fields <field> [<field> ...]
usage: ironic portgroup-update <portgroup> <op> <path=value>
[<path=value> ...]
Update information about a portgroup.
Positional arguments:
<portgroup>
<op>
<path=value>
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.