diff --git a/ansible/roles/nova/templates/nova.conf.j2 b/ansible/roles/nova/templates/nova.conf.j2 index 51392a40b8..448d1e092f 100644 --- a/ansible/roles/nova/templates/nova.conf.j2 +++ b/ansible/roles/nova/templates/nova.conf.j2 @@ -3,7 +3,6 @@ debug = {{ nova_logging_debug }} log_dir = /var/log/kolla/nova -use_forwarded_for = true state_path = /var/lib/nova @@ -61,6 +60,9 @@ compute_monitors=nova.compute.monitors.cpu.virt_driver transport_url = rabbit://{% for host in groups['rabbitmq'] %}{{ rabbitmq_user }}:{{ rabbitmq_password }}@{% if orchestration_engine == 'KUBERNETES' %}rabbitmq{% else %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}{% endif %}:{{ rabbitmq_port }}{% if not loop.last %},{% endif %}{% endfor %} +[api] +use_forwarded_for = true + [conductor] workers = {{ openstack_service_workers }}