Image Statuses

Glance 中的镜像可以处于以下状态之一

  • queued

    镜像标识符已在 Glance 注册表中为镜像保留。尚未向 Glance 上传任何镜像数据,并且在创建时未显式将镜像大小设置为零。

  • saving

    表示镜像的原始数据当前正在上传到 Glance。当使用 POST /images 调用注册镜像并且存在 x-image-meta-location 标头时,该镜像将永远不会处于 saving 状态(因为镜像数据已在其他位置可用)。

  • uploading

    表示已发出 import data-put 调用。在此状态下,禁止调用 PUT /file。(请注意,对 queued 镜像调用 PUT /file 会将镜像置于 saving 状态。在镜像处于 saving 状态时,禁止调用 PUT /stage。因此,无法在同一镜像上同时使用两种上传方法。)

  • importing

    表示已发出 import 调用,但镜像尚未准备好使用。

  • active

    表示镜像已在 Glance 中完全可用。当上传镜像数据时,或者在创建时显式将镜像大小设置为零时,会发生这种情况。

  • deactivated

    表示不允许任何非管理员用户访问镜像数据。禁止下载镜像也会禁止可能需要镜像数据(例如镜像导出和镜像克隆)的操作。

  • killed

    表示在上传镜像数据时发生错误,并且镜像不可读。

  • deleted

    Glance 已经保留了关于镜像的信息,但它不再可用。稍后会自动删除处于此状态的镜像。

  • pending_delete

    这类似于 deleted,但是 Glance 尚未删除镜像数据。处于此状态的镜像无法恢复。

The states consist of: "queued", "saving", "active", "pending_delete", "deactivated", "uploading", "importing", "killed", and "deleted". The transitions consist of: An initial transition to the "queued" state called "create image". A transition from the "queued" state to the "active" state called "add location". A transition from the "queued" state to the "saving" state called "upload". A transition from the "queued" state to the "uploading" state called "stage upload". A transition from the "queued" state to the "deleted" state called "delete". A transition from the "saving" state to the "active" state called "upload succeeded". A transition from the "saving" state to the "deleted" state called "delete". A transition from the "saving" state to the "killed" state called "[v1] upload fail". A transition from the "saving" state to the "queued" state called "[v2] upload fail". A transition from the "uploading" state to the "importing" state called "import". A transition from the "uploading" state to the "queued" state called "stage upload fail". A transition from the "uploading" state to the "deleted" state called "delete". A transition from the "importing" state to the "active" state called "import succeed". A transition from the "importing" state to the "queued" state called "import fail". A transition from the "importing" state to the "deleted" state called "delete". A transition from the "active" state to the "deleted" state called "delete". A transition from the "active" state to the "pending_delete" state called "delayed delete". A transition from the "active" state to the "deactivated" state called "deactivate". A transition from the "killed" state to the "deleted" state called "deleted". A transition from the "pending_delete" state to the "deleted" state called "after scrub time". A transition from the "deactivated" state to the "deleted" state called "delete". A transition from the "deactivated" state to the "active" state called "reactivate". There are no transitions out of the "deleted" state.

这是镜像从一个状态移动到下一个状态的表示。

  • 从零添加到一个或多个位置。

Task Statuses

Glance 中的任务可以处于以下状态之一

  • 待定

    任务标识符已在 Glance 中为任务保留。尚未开始对其进行任何处理。

  • processing

    底层执行器已获取任务,并使用该任务类型的后端 Glance 执行逻辑正在运行它。

  • success

    表示任务在 Glance 中已成功运行。任务的 result 字段显示有关结果的更多详细信息。

  • failure

    表示在任务执行过程中发生错误,并且无法继续处理。任务的 message 字段显示错误是什么。