diff options
Diffstat (limited to 'ironic_python_agent/config.py')
-rw-r--r-- | ironic_python_agent/config.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ironic_python_agent/config.py b/ironic_python_agent/config.py index 9122fb75..9c3ade97 100644 --- a/ironic_python_agent/config.py +++ b/ironic_python_agent/config.py @@ -229,6 +229,21 @@ cli_opts = [ 'the bare metal introspection service when the ' '``ironic-collect-introspection-data`` program is ' 'executing in daemon mode.'), + cfg.IntOpt('image_download_connection_timeout', min=1, + default=APARAMS.get( + 'ipa-image-download-connection-timeout', 60), + help='The connection timeout (in seconds) when downloading ' + 'an image. Does not affect the whole download.'), + cfg.IntOpt('image_download_connection_retries', min=0, + default=APARAMS.get('ipa-image-download-connection-retries', 2), + help='How many times to retry the connection when downloading ' + 'an image. Also retries on failure HTTP statuses.'), + cfg.IntOpt('image_download_connection_retry_interval', min=0, + default=APARAMS.get( + 'ipa-image-download-connection-retry-interval', 5), + help='Interval (in seconds) between two attempts to establish ' + 'connection when downloading an image.'), + ] CONF.register_cli_opts(cli_opts) |