summaryrefslogtreecommitdiff
path: root/openstack/usr/share
diff options
context:
space:
mode:
authorTiago Gomes <tiago.gomes@codethink.co.uk>2015-04-27 15:41:26 +0000
committerTiago Gomes <tiago.gomes@codethink.co.uk>2015-05-01 14:14:19 +0000
commite81156ad54733d7bf048534f0961cf375057ad92 (patch)
treebaa8ff40e7beba775470e76dd09cb6ec8a173061 /openstack/usr/share
parent0d8142e2eedc7a2d61a6bba21434b0988aac28f8 (diff)
downloaddefinitions-e81156ad54733d7bf048534f0961cf375057ad92.tar.gz
openstack: improve services' logging
The OpenStack services write their log to stderr even when use_syslog was set to True in the configuration file. This is then captured by journald, resulting in duplicated entries on the log. Set StandardOutput=null and StandardError=null in the unit files to prevent this. As the services log is being dumped on journald, there is no need to duplicate the log in separate log files, so remove --log-file from the unit files as well. Last but not least, enable writing to the syslog for Ironic and Keystone. Change-Id: I7808e8116fc92ecb807f700fd94c9ecf4ee13be2
Diffstat (limited to 'openstack/usr/share')
-rw-r--r--openstack/usr/share/openstack/ironic/ironic.conf2
-rw-r--r--openstack/usr/share/openstack/keystone/keystone.conf2
2 files changed, 2 insertions, 2 deletions
diff --git a/openstack/usr/share/openstack/ironic/ironic.conf b/openstack/usr/share/openstack/ironic/ironic.conf
index 6888ede6..75c62b8e 100644
--- a/openstack/usr/share/openstack/ironic/ironic.conf
+++ b/openstack/usr/share/openstack/ironic/ironic.conf
@@ -442,7 +442,7 @@ enabled_drivers=pxe_ipmitool,pxe_ssh
# Use syslog for logging. Existing syslog format is DEPRECATED
# during I, and will change in J to honor RFC5424. (boolean
# value)
-#use_syslog=false
+use_syslog=True
# (Optional) Enables or disables syslog rfc5424 format for
# logging. If enabled, prefixes the MSG part of the syslog
diff --git a/openstack/usr/share/openstack/keystone/keystone.conf b/openstack/usr/share/openstack/keystone/keystone.conf
index 3d242a50..4e04c81b 100644
--- a/openstack/usr/share/openstack/keystone/keystone.conf
+++ b/openstack/usr/share/openstack/keystone/keystone.conf
@@ -421,7 +421,7 @@ rpc_backend=rabbit
# Use syslog for logging. Existing syslog format is DEPRECATED
# during I, and will change in J to honor RFC5424. (boolean
# value)
-#use_syslog=false
+use_syslog=True
# (Optional) Enables or disables syslog rfc5424 format for
# logging. If enabled, prefixes the MSG part of the syslog