Bug 1557419 - Return if a call should be tried again
Summary: Return if a call should be tried again
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: RestAPI
Version: 4.2.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Ondra Machacek
QA Contact: Pavel Stehlik
URL:
Whiteboard:
Depends On:
Blocks: 1557424
TreeView+ depends on / blocked
 
Reported: 2018-03-16 14:39 UTC by Dominik Holler
Modified: 2018-03-20 12:18 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-20 12:18:17 UTC
oVirt Team: Infra
Embargoed:


Attachments (Terms of Use)

Description Dominik Holler 2018-03-16 14:39:03 UTC
Description of problem:
If a call to REST-API fails because a triggered command does not get a lock,
REST-API returns HTTP status 409 CONFLICT and no machine-readable hint if the conflict is permanent or temporary. If the client would know that this is a temporary problem, he automatically could try again and the call may succeed.

Version-Release number of selected component (if applicable):


How reproducible:
Try to import an external network from a provider during the provider is locked, e.g. by auto sync.

Steps to Reproduce:
1.
2.
3.

Actual results:
REST-API returns HTTP status 409 CONFLICT and no machine-readable hint that the conflict is temporary.

Expected results:
REST-API returns HTTP status 409 CONFLICT and a machine-readable hint that the conflict is temporary, e.g. as a member of the REST Fault data structure or as a  http header, maybe like "Retry-After".

Additional info:

Comment 1 Ondra Machacek 2018-03-20 12:18:17 UTC
As import an external network has decided to wait internally, there is no other API call which request this feature, closing for now.


Note You need to log in before you can comment on or make changes to this bug.