Enable logging.conf & fluentd for neutron
This change introduce ability to use log_config_append parameter with
new FluentdHandler to send logs directly to Fluentd.
To save per binary log streams as it is in the default logging states generates
separate logging.conf files per service and use /etc/default/<service name>
to pass dedicated logging.conf to every service.
Change-Id: I2952c8c0abe76690114d3ac5d3815b992d48d1cb
Related-Prod: PROD-16324
diff --git a/metadata/service/compute/ovn/single.yml b/metadata/service/compute/ovn/single.yml
index 9bfb54d..c62fbc1 100644
--- a/metadata/service/compute/ovn/single.yml
+++ b/metadata/service/compute/ovn/single.yml
@@ -5,6 +5,8 @@
parameters:
_param:
ovn_external_bridge: br-floating
+ openstack_log_appender: false
+ openstack_fluentd_handler_enabled: false
neutron:
compute:
enabled: true
@@ -15,3 +17,10 @@
external_bridge: ${_param:ovn_external_bridge}
backend:
engine: ovn
+ logging:
+ log_appender: ${_param:openstack_log_appender}
+ log_handlers:
+ watchedfile:
+ enabled: true
+ fluentd:
+ enabled: ${_param:openstack_fluentd_handler_enabled}
diff --git a/metadata/service/compute/single.yml b/metadata/service/compute/single.yml
index 377ff39..1884bbd 100644
--- a/metadata/service/compute/single.yml
+++ b/metadata/service/compute/single.yml
@@ -3,6 +3,9 @@
classes:
- service.neutron.support
parameters:
+ _param:
+ openstack_log_appender: false
+ openstack_fluentd_handler_enabled: false
neutron:
compute:
enabled: true
@@ -29,3 +32,10 @@
mechanism:
ovs:
driver: openvswitch
+ logging:
+ log_appender: ${_param:openstack_log_appender}
+ log_handlers:
+ watchedfile:
+ enabled: true
+ fluentd:
+ enabled: ${_param:openstack_fluentd_handler_enabled}
diff --git a/metadata/service/control/cluster.yml b/metadata/service/control/cluster.yml
index b1ac5ad..844d590 100644
--- a/metadata/service/control/cluster.yml
+++ b/metadata/service/control/cluster.yml
@@ -5,6 +5,8 @@
parameters:
_param:
keystone_neutron_endpoint_type: internal
+ openstack_log_appender: false
+ openstack_fluentd_handler_enabled: false
neutron:
server:
enabled: true
@@ -31,6 +33,13 @@
password: ${_param:keystone_neutron_password}
tenant: service
endpoint_type: ${_param:keystone_neutron_endpoint_type}
+ logging:
+ log_appender: ${_param:openstack_log_appender}
+ log_handlers:
+ watchedfile:
+ enabled: true
+ fluentd:
+ enabled: ${_param:openstack_fluentd_handler_enabled}
message_queue:
engine: rabbitmq
host: ${_param:cluster_vip_address}
diff --git a/metadata/service/control/single.yml b/metadata/service/control/single.yml
index 0f22b88..91fd911 100644
--- a/metadata/service/control/single.yml
+++ b/metadata/service/control/single.yml
@@ -5,6 +5,8 @@
parameters:
_param:
keystone_neutron_endpoint_type: internal
+ openstack_log_appender: false
+ openstack_fluentd_handler_enabled: false
neutron:
server:
enabled: true
@@ -35,6 +37,13 @@
password: ${_param:keystone_neutron_password}
tenant: service
endpoint_type: ${_param:keystone_neutron_endpoint_type}
+ logging:
+ log_appender: ${_param:openstack_log_appender}
+ log_handlers:
+ watchedfile:
+ enabled: true
+ fluentd:
+ enabled: ${_param:openstack_fluentd_handler_enabled}
message_queue:
engine: rabbitmq
host: ${_param:single_address}
diff --git a/metadata/service/gateway/single.yml b/metadata/service/gateway/single.yml
index 1af2525..860e18a 100644
--- a/metadata/service/gateway/single.yml
+++ b/metadata/service/gateway/single.yml
@@ -3,6 +3,9 @@
classes:
- service.neutron.support
parameters:
+ _param:
+ openstack_log_appender: false
+ openstack_fluentd_handler_enabled: false
neutron:
gateway:
enabled: true
@@ -29,3 +32,10 @@
mechanism:
ovs:
driver: openvswitch
+ logging:
+ log_appender: ${_param:openstack_log_appender}
+ log_handlers:
+ watchedfile:
+ enabled: true
+ fluentd:
+ enabled: ${_param:openstack_fluentd_handler_enabled}
diff --git a/metadata/service/support.yml b/metadata/service/support.yml
index 6ad7d01..cde8934 100644
--- a/metadata/service/support.yml
+++ b/metadata/service/support.yml
@@ -3,6 +3,8 @@
_support:
collectd:
enabled: true
+ fluentd:
+ enabled: true
heka:
enabled: true
sensu: