此内容没有您所选择的语言版本。

12.28. ironic node-set-provision-state


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>


        Name or UUID of the node.

<provision-state>


        Supported states: 'deleted', 'provide', 'clean',
      'manage', 'active', 'rebuild', 'inspect', 'abort',
      'adopt'.

Optional arguments

--config-drive <config-drive>


      A gzipped, base64-encoded configuration drive string
      OR the path to the configuration drive file OR the
      path to a directory containing the config drive files.
      In case it's a directory, a config drive will be
      generated from it. This argument is only valid when
      setting provision-state to 'active'.

--clean-steps <clean-steps>


      The clean steps in JSON format. May be the path to a
      file containing the clean steps; OR '-', with the
      clean steps being read from standard input; OR a
      string. The value should be a list of clean-step
      dictionaries; each dictionary should have keys
      'interface' and 'step', and optional key 'args'. This
      argument must be specified (and is only valid) when
      setting provision-state to 'clean'.

--wait [WAIT_TIMEOUT]


      Wait for a node to reach the expected state. Not
      supported for 'abort'. Optionally takes a timeout in
      seconds. The default value is 0, meaning no timeout.
      Fails if the node reaches an unexpected stable state,
      a failure state or a state with last_error set.

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2026 Red Hat
返回顶部