From 8634e15ca10ed9a919bbec1823a56e7eb4dc3d29 Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Tue, 5 Mar 2013 09:01:56 -0700 Subject: [PATCH] Stop heat services from logging to stderr by default Change the configuration files to set use_stderr to False by default. Oslo's log sets use_stderr to True by default, and the only reasonable way to override is via the config files. Change-Id: Ibc4ac3b8cb5d7478260d5d014eb48860bae4bc0b Fixes: Bug #1146848 --- etc/heat/heat-api-cfn.conf | 3 +++ etc/heat/heat-api-cloudwatch.conf | 15 ++++++++------- etc/heat/heat-api.conf | 17 +++++++++-------- etc/heat/heat-engine.conf | 27 ++++++++++++++------------- 4 files changed, 34 insertions(+), 28 deletions(-) diff --git a/etc/heat/heat-api-cfn.conf b/etc/heat/heat-api-cfn.conf index 176f4b2be..b2d3ec9b6 100644 --- a/etc/heat/heat-api-cfn.conf +++ b/etc/heat/heat-api-cfn.conf @@ -11,6 +11,9 @@ bind_host = 0.0.0.0 # Port the bind the server to bind_port = 8000 +# Turn off standard error logging +use_stderr = False + # Log to this file. Make sure the user running heat-api-cfn has # permissions to write to this file! log_file = /var/log/heat/api-cfn.log diff --git a/etc/heat/heat-api-cloudwatch.conf b/etc/heat/heat-api-cloudwatch.conf index 564a0412b..27f64e9af 100644 --- a/etc/heat/heat-api-cloudwatch.conf +++ b/etc/heat/heat-api-cloudwatch.conf @@ -5,18 +5,13 @@ verbose = True # Show debugging output in logs (sets DEBUG log level output) debug = True -# Address to bind the server to -bind_host = 0.0.0.0 - -# Port the bind the server to -bind_port = 8003 +# Turn off standard error logging +use_stderr = False # Log to this file. Make sure the user running heat-api has # permissions to write to this file! log_file = /var/log/heat/api-cloudwatch.log -# ================= Syslog Options ============================ - # Send logs to syslog (/dev/log) instead of to file specified # by `log_file` use_syslog = False @@ -24,4 +19,10 @@ use_syslog = False # Facility to use. If unset defaults to LOG_USER. # syslog_log_facility = LOG_LOCAL0 +# Address to bind the server to +bind_host = 0.0.0.0 + +# Port the bind the server to +bind_port = 8003 + rpc_backend=heat.openstack.common.rpc.impl_qpid diff --git a/etc/heat/heat-api.conf b/etc/heat/heat-api.conf index 1a48a49e4..f27adff22 100644 --- a/etc/heat/heat-api.conf +++ b/etc/heat/heat-api.conf @@ -5,18 +5,13 @@ verbose = True # Show debugging output in logs (sets DEBUG log level output) debug = True -# Address to bind the server to -bind_host = 0.0.0.0 - -# Port the bind the server to -bind_port = 8004 +# Turn off standard error logging +use_stderr = False # Log to this file. Make sure the user running heat-api-cfn has # permissions to write to this file! log_file = /var/log/heat/api.log -# ================= Syslog Options ============================ - # Send logs to syslog (/dev/log) instead of to file specified # by `log_file` use_syslog = False @@ -24,10 +19,16 @@ use_syslog = False # Facility to use. If unset defaults to LOG_USER. # syslog_log_facility = LOG_LOCAL0 +# Address to bind the server to +bind_host = 0.0.0.0 + +# Port the bind the server to +bind_port = 8004 + rpc_backend=heat.openstack.common.rpc.impl_qpid # Uncomment this if you're using a custom cloud backend: # [paste_deploy] -# flavor = custombackend \ No newline at end of file +# flavor = custombackend diff --git a/etc/heat/heat-engine.conf b/etc/heat/heat-engine.conf index 81e2e2070..25bbaa728 100644 --- a/etc/heat/heat-engine.conf +++ b/etc/heat/heat-engine.conf @@ -5,6 +5,20 @@ verbose = True # Show debugging output in logs (sets DEBUG log level output) debug = True +# Turn off standard error logging +use_stderr = False + +# Log to this file. Make sure the user running heat-api has +# permissions to write to this file! +log_file = /var/log/heat/engine.log + +# Send logs to syslog (/dev/log) instead of to file specified +# by `log_file` +use_syslog = False + +# Facility to use. If unset defaults to LOG_USER. +# syslog_log_facility = LOG_LOCAL0 + # Keystone role for heat template-defined users heat_stack_user_role = heat_stack_user @@ -40,19 +54,6 @@ heat_waitcondition_server_url = http://127.0.0.1:8000/v1/waitcondition # NOTE : change this from 127.0.0.1 !! heat_watch_server_url = http://127.0.0.1:8003 -# Log to this file. Make sure the user running heat-api has -# permissions to write to this file! -log_file = /var/log/heat/engine.log - -# ================= Syslog Options ============================ - -# Send logs to syslog (/dev/log) instead of to file specified -# by `log_file` -use_syslog = False - -# Facility to use. If unset defaults to LOG_USER. -# syslog_log_facility = LOG_LOCAL0 - # The namespace for the custom backend. Must provide class Clients which will be # imported. Defaults to OpenStack if none provided. # cloud_backend=deltacloud_heat.client