summaryrefslogtreecommitdiff
path: root/neutron/notifiers
diff options
context:
space:
mode:
authorSlawek Kaplonski <skaplons@redhat.com>2020-06-16 22:39:01 +0200
committerBrian Haley <bhaley@redhat.com>2020-06-29 22:07:46 -0400
commite94511cd251299cee84b8b67d404972988ae28d3 (patch)
treeab6e0c05369be92cf81ee8be293607c690feb597 /neutron/notifiers
parent7d8f400791707e5db7839dcdf3ef4dbbd1dd39bc (diff)
downloadneutron-e94511cd251299cee84b8b67d404972988ae28d3.tar.gz
Add config option ``http_retries``
This option allows to configure Number of times nova or ironic client should retry on any failed http call. Default value for this new option is "3". Change-Id: I795ee7ca729646be0411a1232bf218015c65010f Closes-Bug: #1883712
Diffstat (limited to 'neutron/notifiers')
-rw-r--r--neutron/notifiers/ironic.py3
-rw-r--r--neutron/notifiers/nova.py1
2 files changed, 3 insertions, 1 deletions
diff --git a/neutron/notifiers/ironic.py b/neutron/notifiers/ironic.py
index f09e9398bf..63b7738403 100644
--- a/neutron/notifiers/ironic.py
+++ b/neutron/notifiers/ironic.py
@@ -67,7 +67,8 @@ class Notifier(object):
IRONIC_SESSION = self._get_session(IRONIC_CONF_SECTION)
return connection.Connection(
- session=IRONIC_SESSION, oslo_conf=cfg.CONF).baremetal
+ session=IRONIC_SESSION, oslo_conf=cfg.CONF,
+ connect_retries=cfg.CONF.http_retries).baremetal
def send_events(self, batched_events):
try:
diff --git a/neutron/notifiers/nova.py b/neutron/notifiers/nova.py
index 246cff7b6c..804fb73964 100644
--- a/neutron/notifiers/nova.py
+++ b/neutron/notifiers/nova.py
@@ -75,6 +75,7 @@ class Notifier(object):
region_name=cfg.CONF.nova.region_name,
endpoint_type=cfg.CONF.nova.endpoint_type,
extensions=self.extensions,
+ connect_retries=cfg.CONF.http_retries,
global_request_id=global_id)
def _is_compute_port(self, port):