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 5724a675..c73e6fc9 100644 --- a/ironic_python_agent/config.py +++ b/ironic_python_agent/config.py @@ -239,6 +239,21 @@ cli_opts = [ 'enforce token validation. The configuration provided ' 'by the conductor MAY override this and force this ' 'setting to be changed to True in memory.'), + 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) |