Murano does not log to syslog

Bug #1261477 reported by Vladimir Kuklin
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Medium
Dmitry Teselkin

Bug Description

Currently, we do not configure syslog logging in Heat and Murano manifests. We need to implement this.

Tags: murano
Revision history for this message
Vladimir Kuklin (vkuklin) wrote :

164 if $use_syslog and !$debug =~ /(?i)(true|yes)/
165 {
166
167 nova_config
168 {
169 'DEFAULT/log_config': value => "/etc/nova/logging.conf";
170 'DEFAULT/log_file': ensure=> absent;
171 'DEFAULT/logfile': ensure=> absent;
172 'DEFAULT/use_syslog': value => true;
173 'DEFAULT/use_stderr': ensure=> absent;
174 'DEFAULT/syslog_log_facility': value => $syslog_log_facility;
175 }
176
177 file {"nova-logging.conf":
178 content => template('nova/logging.conf.erb'),
179 path => "/etc/nova/logging.conf",
180 require => File[$logdir],
181 }
182 }
183 else {
184 nova_config {
185 'DEFAULT/log_config': ensure=> absent;
186 'DEFAULT/use_syslog': ensure=> absent;
187 'DEFAULT/syslog_log_facility': ensure=> absent;
188 'DEFAULT/use_stderr': ensure=> absent;
189 'DEFAULT/logdir': value=> $logdir;
190 'DEFAULT/logging_context_format_string':
191 value => '%(asctime)s %(levelname)s %(name)s [%(request_id)s %(user_id)s %(project_id)s] %(instance)s %(message)s';
192 'DEFAULT/logging_default_format_string':
193 value => '%(asctime)s %(levelname)s %(name)s [-] %(instance)s %(message)s';
194 }
195 # might be used for stdout logging instead, if configured
196 file {"nova-logging.conf":
197 content => template('nova/logging.conf-nosyslog.erb'),
198 path => "/etc/nova/logging.conf",
199 require => File[$logdir],
200 }
201 }

Changed in fuel:
assignee: Timur Nurlygayanov (tnurlygayanov) → nobody
assignee: nobody → Dmitry Teselkin (teselkin-d)
tags: added: murano
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

logrotate templates for 10-fuel.erb and 20-fuel.erb should be updated as well

Changed in fuel:
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

Fix proposed to branch: master
Review: https://review.openstack.org/62853

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
Ivan Ponomarev (ivanzipfer) wrote : Re: Heat and Murano do not log to syslog

patch is work
I see logs in /var/log/remote/$node/murano*

summary: - Heat and Murano do not log to syslog
+ Murano does not log to syslog
Mike Scherbakov (mihgen)
Changed in fuel:
importance: High → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

Fix proposed to branch: master
Review: https://review.openstack.org/63705

Changed in fuel:
milestone: 4.0 → 4.1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/74414

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/74421

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/74421
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=844894c92be7825072bde958cd1234b389826f1c
Submitter: Jenkins
Branch: master

commit 844894c92be7825072bde958cd1234b389826f1c
Author: Dmitry Teselkin <email address hidden>
Date: Mon Dec 23 14:46:08 2013 +0400

    Setting to use syslog in Murano added.

    * Local logs added
    * Logrotate configured
    * Typos
    * murano_use_syslog -> use_syslog
    * murano_debug -> debug
    * murano_verbose -> verbose
    * syslog_log_facility
    * murano user/group added back
    * use bool values for debug/use_syslog
    * applied diff with 74420

    Replaces review https://review.openstack.org/#/c/62853/
    Replaces review https://review.openstack.org/#/c/63705/

    Change-Id: I9011d008d34ddc31c2fd7cc426cf63f2acd0c2db
    Closes-Bug: 1261477

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Andrey Sledzinskiy (asledzinskiy) wrote :

Verified on ISO #112-with-gerrit

Changed in fuel:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.