8337bee4b5
This adds a new microversion to expose the instance action event details in the GET /servers/{server_id}/os-instance-actions/{request_id} API. With the new microversion the "details" key is always returned with each event dict but the value may be null because of old records or events that did not fail. The details are not constrained by policy like the traceback field since the details are like a fault message on the server resource when the server is in ERROR status and the fault message is likewise not constraint by policy unlike the fault details which is a traceback like the event traceback field. This commit add a SYSTEM_READER ('rule: system_reader_api') role to the Show Server Action Details API. With this default policy, events fault details can be displayed. And also add some nova and non-nova exception functional tests for os-instance-actions API. Co-Authored-By: Brin Zhang <zhangbailin@inspur.com> Implements blueprint action-event-fault-details Change-Id: I6fe4dd265b0030ce12f92771b255a3d795f03d01
9 lines
327 B
YAML
9 lines
327 B
YAML
---
|
|
features:
|
|
- |
|
|
With microversion 2.84 the
|
|
``GET /servers/{server_id}/os-instance-actions/{request_id}`` API returns
|
|
a ``details`` parameter for each failed event with a fault message, similar
|
|
to the server ``fault.message`` parameter in ``GET /servers/{server_id}``
|
|
for a server with status ``ERROR``.
|