Bug 1557419

Summary: Return if a call should be tried again
Product: [oVirt] ovirt-engine Reporter: Dominik Holler <dholler>
Component: RestAPIAssignee: Ondra Machacek <omachace>
Status: CLOSED WONTFIX QA Contact: Pavel Stehlik <pstehlik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.2.2CC: bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-20 12:18:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1557424    

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.