diff --git a/ansible/roles/cinder/templates/cinder-wsgi.conf.j2 b/ansible/roles/cinder/templates/cinder-wsgi.conf.j2 index 2bbe60807e..fef1abfe50 100644 --- a/ansible/roles/cinder/templates/cinder-wsgi.conf.j2 +++ b/ansible/roles/cinder/templates/cinder-wsgi.conf.j2 @@ -25,7 +25,7 @@ LogLevel info = 2.4> ErrorLogFormat "%{cu}t %M" - ErrorLog /var/log/kolla/cinder/cinder-api.log + ErrorLog /var/log/kolla/cinder/cinder-api-error.log LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b %D \"%{Referer}i\" \"%{User-Agent}i\"" logformat CustomLog /var/log/kolla/cinder/cinder-api-access.log logformat {% if cinder_enable_tls_backend | bool %} diff --git a/ansible/roles/cinder/templates/cinder.conf.j2 b/ansible/roles/cinder/templates/cinder.conf.j2 index c80ae265de..65bed63b48 100644 --- a/ansible/roles/cinder/templates/cinder.conf.j2 +++ b/ansible/roles/cinder/templates/cinder.conf.j2 @@ -2,6 +2,9 @@ debug = {{ cinder_logging_debug }} log_dir = /var/log/kolla/cinder +{% if service_name == "cinder-api" %} +log_file = cinder-api.log +{% endif %} use_forwarded_for = true # Set use_stderr to False or the logs will also be sent to stderr diff --git a/releasenotes/notes/fix-cinder-logging-22fea4739begd6s.yaml b/releasenotes/notes/fix-cinder-logging-22fea4739begd6s.yaml new file mode 100644 index 0000000000..0364eaeab9 --- /dev/null +++ b/releasenotes/notes/fix-cinder-logging-22fea4739begd6s.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Fixes some configuration issues around Cinder logging. `LP#1916752 + `__