tacker-status

Tacker 状态命令的 CLI 接口

概要

$ tacker-status <category> <command> [<args>]

描述

tacker-status 命令是一个工具,提供用于检查 Tacker 部署状态的例程。

选项

执行 tacker-status 命令的标准模式是

$ tacker-status <category> <command> [<args>]

您可以使用 -h--help 运行该命令,以查看可用的命令类别和用法。

$ tacker-status --help
usage: tacker-status [-h] [--config-dir DIR] [--config-file PATH] {upgrade} ...

options:
  -h, --help          show this help message and exit
  --config-dir DIR    Path to a config directory to pull `*.conf` files from. This file set is sorted, so as
                      to provide a predictable parse order if individual options are over-ridden. The set is
                      parsed after the file(s) specified via previous --config-file, arguments hence over-
                      ridden options in the directory take precedence. This option must be set from the
                      command-line.
  --config-file PATH  Path to a config file to use. Multiple config files can be specified, with values in
                      later files taking precedence. Defaults to None. This option must be set from the
                      command-line.

  {upgrade}

如以上输出所示,当前可用的类别是

  • upgrade

您还可以通过使用类别参数和 -h--help 选项运行该命令,查看特定类别(例如 upgrade)中的所有命令列表。

$ tacker-status upgrade --help
usage: tacker-status upgrade [-h] [--json] check

positional arguments:
  check

options:
  -h, --help  show this help message and exit
  --json      Output the results in JSON format. Default is to print results in human readable table format.

如以上输出所示,当前 upgrade 类别的可用命令是

  • 检查

以下章节描述了 tacker-status 可用的类别和参数。

升级

tacker-status upgrade check

在用新代码重启服务之前,执行特定于版本的就绪检查。例如,缺失或更改的配置选项、不兼容的对象状态,或其他可能导致升级失败的情况。

$ tacker-status upgrade check
+-------------------------------------------+
| Upgrade Check Results                     |
+-------------------------------------------+
| Check: Policy File JSON to YAML Migration |
| Result: Success                           |
| Details: None                             |
+-------------------------------------------+

返回值

返回值

描述

0

所有升级就绪检查均已成功通过,无需执行任何操作。

1

至少有一个检查遇到问题,需要进一步调查。 这被认为是一个警告,但升级可能是可以的。

2

存在需要调查的升级状态检查失败。 这应该被视为阻止升级的内容。

255

发生意外错误。

升级检查的历史记录

0.11.0 (Stein)

  • 添加了用于执行升级检查的 tacker-status CLI 功能。

5.0.0 (Wallaby)

  • 添加了检查将‘[oslo_policy] policy_file’配置选项的默认值从‘policy.json’更改为‘policy.yaml’的检查。