Add call_retry for ModelBuilder for error recovery

Add call_retry method for ModelBuilder classes along with configuration
options. This allows ModelBuilder classes to reattempt any failed calls
to external services such as Nova or Ironic.

Change-Id: Ided697adebed957e5ff13b4c6b5b06c816f81c4a
This commit is contained in:
Dantali0n
2019-07-11 22:07:20 +02:00
parent 1af7ac107c
commit cadc000f32
6 changed files with 70 additions and 15 deletions

View File

@@ -0,0 +1,9 @@
---
features:
- |
API calls while building the Compute data model will be retried upon
failure. The amount of failures allowed before giving up and the time before
reattempting are configurable. The `api_call_retries` and
`api_query_timeout` parameters in the `[collector]` group can be used to
adjust these paremeters. 10 retries with a 1 second time in between
reattempts is the default.