Skip to content

Commit 0343814

Browse files
dougszumskimarkgoddard
authored andcommitted
Specify log file name for Nova API
When only the directory is specified, separate log files are created for the Nova API / metadata services with a -wsgi postfix. This affects the 'programname' field in Fluentd which affects the processing of these logs. This is a regression. When the log file name is specified, the directory is not required. Closes-Bug: #1950185 Change-Id: I8fec8b787349f83c05d8af7f52fc58da7c3e9cc4 (cherry picked from commit 76d4a05)
1 parent c011a60 commit 0343814

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

ansible/roles/nova/templates/nova.conf.j2

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22
[DEFAULT]
33
debug = {{ nova_logging_debug }}
44

5-
log_dir = /var/log/kolla/nova
65
{% if service_name == "nova-super-conductor" %}
76
log_file = /var/log/kolla/nova/nova-super-conductor.log
7+
{% elif service_name == "nova-api" %}
8+
log_file = /var/log/kolla/nova/nova-api.log
9+
{% else %}
10+
log_dir = /var/log/kolla/nova
811
{% endif %}
912

1013
state_path = /var/lib/nova
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
fixes:
3+
- |
4+
Fixes an issue where the Nova API logs were written to
5+
files ending with `-wsgi.log` which affected the processing of
6+
these logs in the Fluentd pipeline.
7+
`LP#1950185 <https://bugs.launchpad.net/kolla-ansible/+bug/1950185>`__

0 commit comments

Comments
 (0)