Fix logging for gateway nodes
When l3 agents are setup on separate node from neutron server
they still expect default logging.conf to be provided.
Change-Id: I2f46a53970ff257a7d73593a484b61fc34ca00c9
Related-Prod: https://mirantis.jira.com/browse/PROD-23215
diff --git a/neutron/gateway.sls b/neutron/gateway.sls
index c5650ca..9c67327 100644
--- a/neutron/gateway.sls
+++ b/neutron/gateway.sls
@@ -90,6 +90,25 @@
- name: python-fluent-logger
{%- endif %}
+neutron_gateway_logging_conf:
+ file.managed:
+ - name: /etc/neutron/logging.conf
+ - source: salt://oslo_templates/files/logging/_logging.conf
+ - template: jinja
+ - makedirs: True
+ - defaults:
+ service_name: neutron
+ _data: {{ gateway.logging }}
+ - user: neutron
+ - group: neutron
+ - require:
+ - pkg: neutron_gateway_packages
+{%- if gateway.logging.log_handlers.get('fluentd', {}).get('enabled', False) %}
+ - pkg: neutron_gateway_fluentd_logger_package
+{%- endif %}
+ - watch_in:
+ - service: neutron_gateway_services
+
{% for service_name in gateway.services %}
{{ service_name }}_logging_conf:
file.managed: