In version 3 of the API there is a "creation_status" resource that reports the status of asynchronously created resources. For example, when creating a snapshot the result is looks like this: <snapshot id="456" href="/vms/123/snapshots/456"> ... <link rel="creation_status" href="/vms/123/snapshots/456/creation_status/789" rel="creation_status"/> ... </snapshot> The link points to a resource that can be used to check the creation of the snapshot, for example: GET /vms/123/snapshots/456/creation_status/789 The result should be something like this: <creation id="789" href="vms/123/snapshots/456/creation_status/789"> <status> <state>complete</state> </status> </creation> The use of this is unreliable, as the operation may be synchronous or asynchronous and return or not the status, depending on the implementation details of the server. The recommended way to check the status of the creation is to repeatedly retrieve the snapshot and check its "snapshot_status" attribute. However, we need to preserve the current behaviour in V3 of the API, and currently this doesn't work, so we need to restore it.
This bug report has Keywords: Regression or TestBlocker. Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.
if creation cannot begin because engine is doing some complicated action creation_status returns <status> <state>in_progress</state> </status> after the snapshot record is created it returns <status> <state>complete</state> </status> and engine proceed with snapshot creation (snapshot_status = locked) so it seems ok verified in ovirt-engine-restapi-4.0.4-0.1.el7ev.noarch
Ofcourse it is showing in_progress status but once engine started to create snapshot but due to some memory issues or any other issue it can not complete the process and unable to create snapshot now at this time how can I check that snapshot is actually generated or not.So I need that I can check creation status by calling API like API version 3.
As mentioned by Juan the right way to check, that the shapshot is really ready, is <snapshot_status>ok</snapshot_status> in the concrete snapshot. The creation_status means that the initial creation command finished.