aboutsummaryrefslogtreecommitdiff
path: root/tests/templates/ironic-overrides.j2
blob: 9603d6b2ca8b7a81160fd2d090f959ad5924107b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
[DEFAULT]
enabled_inspect_interfaces = no-inspect, agent
default_inspect_interface = agent

{% if scenario == "multi-compute-ironic" %}
{%     raw %}
{%     set cg = 'location_1' if inventory_hostname == 'secondary1' else 'location_2' if inventory_hostname == 'secondary2' %}
{%     if cg %}
[conductor]
conductor_group = {{ cg }}
{%     endif %}
{%     endraw %}
{% endif %}

[neutron]
cleaning_network = public1
inspection_network = public1
provisioning_network = public1

# This IPMI configuration has been taken from the metal3.io ironic-image
# project [1]. It is necessary to make IPMI reliable in Kolla Ansible Ironic
# jobs. Without it, we saw the following error:
#   Error setting Chassis Boot Parameter 5
# [1] https://github.com/metal3-io/ironic-image/commit/6bc1499d8bb04c2c859b970b3739c3a8ed66ae2a
[ipmi]
# use_ipmitool_retries transfers the responsibility of retrying to ipmitool
# when supported. If set to false, then ipmitool is called as follows :
#    $ipmitool -R 1 -N 1 ...
# and Ironic handles the retry loop.
use_ipmitool_retries = true
# The following parameters are the defaults in Ironic. They are used in the
# following way if use_ipmitool_retries is set to true:
#    $ipmitool -R <X> -N <Y> ...
# where :
#    X = command_retry_timeout / min_command_interval
#    Y = min_command_interval
# If use_ipmitool_retries is false, then ironic retries X times, with an
# interval of Y in between each tries.
min_command_interval = 5
command_retry_timeout = 60