Browse code

Set ksa retry conf options for n-cpu [ironic]

We're trying to get nova to talk to ironic through openstacksdk and need
to be able to specify retry limits/intervals there. We could reuse the
existing conf options, but better to support the standard ones exposed
from keystoneauth1 via [1] and [2].

Note that these will be ignored unless you have keystoneauth1 3.15.0
(for [1]) or 3.16.0 ([1] and [2]) and are building your adapter using
ksa-derived conf options (see the Needed-By).

Needed-By: https://review.opendev.org/642899

[1] https://review.opendev.org/#/c/666287/
[2] https://review.opendev.org/#/c/672930/

Change-Id: I79c416e25d635b0ffa419640b4bd91e36f78b1ab

Eric Fried authored on 2019/08/14 04:28:24
Showing 1 changed files
... ...
@@ -54,8 +54,14 @@ function configure_nova_hypervisor {
54 54
     iniset $NOVA_CONF ironic project_name demo
55 55
     iniset $NOVA_CONF ironic region_name $REGION_NAME
56 56
 
57
+    # These are used with crufty legacy ironicclient
57 58
     iniset $NOVA_CONF ironic api_max_retries 300
58 59
     iniset $NOVA_CONF ironic api_retry_interval 5
60
+    # These are used with shiny new openstacksdk
61
+    iniset $NOVA_CONF ironic connect_retries 300
62
+    iniset $NOVA_CONF ironic connect_retry_delay 5
63
+    iniset $NOVA_CONF ironic status_code_retries 300
64
+    iniset $NOVA_CONF ironic status_code_retry_delay 5
59 65
 }
60 66
 
61 67
 # install_nova_hypervisor() - Install external components