Some WSGI logs not using 04-openstack-wsgi.conf rules

Bug #1720371 reported by Doug Szumski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Medium
Mark Goddard
Rocky
Fix Released
Medium
Radosław Piliszek
Stein
Fix Released
Medium
Radosław Piliszek
Train
Fix Released
Medium
Doug Szumski
Ussuri
Fix Released
Medium
Mark Goddard

Bug Description

Bugfix #1711390 excluded WSGI logs from the Fluentd input parser configured by 00-global.conf because they don't match the expected log format. Instead an additional config file, 04-openstack-wsgi.conf, was added to handle the parsing of these logs. However, the change made assumed that all WSGI log files ended in -error or -access. This isn't the case for:

zun_api_wsgi_access.log
aodh_wsgi_access.log
freezer-api_access.log

These logs won't be parsed correctly, since like the other WSGI log files, they don't conform to the format specified in 00-global.conf.

Doug Szumski (dszumski)
Changed in kolla-ansible:
assignee: nobody → Doug Szumski (dszumski)
Doug Szumski (dszumski)
Changed in kolla-ansible:
assignee: Doug Szumski (dszumski) → nobody
description: updated
Doug Szumski (dszumski)
Changed in kolla-ansible:
assignee: nobody → Doug Szumski (dszumski)
Changed in kolla-ansible:
status: New → Triaged
importance: Undecided → Medium
Mark Goddard (mgoddard)
Changed in kolla-ansible:
assignee: Doug Szumski (dszumski) → Mark Goddard (mgoddard)
Revision history for this message
Mark Goddard (mgoddard) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/train)

Fix proposed to branch: stable/train
Review: https://review.opendev.org/699663

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

Reviewed: https://review.opendev.org/698016
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=a32cddca4974b9ee43c91544be19014a9748c450
Submitter: Zuul
Branch: master

commit a32cddca4974b9ee43c91544be19014a9748c450
Author: Mark Goddard <email address hidden>
Date: Mon Dec 9 13:52:38 2019 +0000

    Fix fluentd parsing of WSGI logs

    WSGI log files use a different input configuration than OpenStack log
    files. Currently this depends on log files matching either *-access.log
    or *-error.log. Some services use *_access.log or *_error.log, so are
    not parsed correctly.

    This change modifies the fluentd configuration to accept an underscore
    or hyphen for WSGI log file names.

    Change-Id: I566d6cac0b6749054fd5422ec8f36f99dacb1db7
    Closes-Bug: #1720371

Changed in kolla-ansible:
status: Triaged → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/stein)

Fix proposed to branch: stable/stein
Review: https://review.opendev.org/699741

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/rocky)

Fix proposed to branch: stable/rocky
Review: https://review.opendev.org/699742

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (stable/train)

Reviewed: https://review.opendev.org/699663
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=19bae1bfbd6751e84d375c5ad2ff50bd65c5fa2f
Submitter: Zuul
Branch: stable/train

commit 19bae1bfbd6751e84d375c5ad2ff50bd65c5fa2f
Author: Mark Goddard <email address hidden>
Date: Mon Dec 9 13:52:38 2019 +0000

    Fix fluentd parsing of WSGI logs

    WSGI log files use a different input configuration than OpenStack log
    files. Currently this depends on log files matching either *-access.log
    or *-error.log. Some services use *_access.log or *_error.log, so are
    not parsed correctly.

    This change modifies the fluentd configuration to accept an underscore
    or hyphen for WSGI log file names.

    Change-Id: I566d6cac0b6749054fd5422ec8f36f99dacb1db7
    Closes-Bug: #1720371
    (cherry picked from commit a32cddca4974b9ee43c91544be19014a9748c450)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (stable/stein)

Reviewed: https://review.opendev.org/699741
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=e29501b507c4fb3e25e2ac07ab86214bbcdda24f
Submitter: Zuul
Branch: stable/stein

commit e29501b507c4fb3e25e2ac07ab86214bbcdda24f
Author: Mark Goddard <email address hidden>
Date: Mon Dec 9 13:52:38 2019 +0000

    Fix fluentd parsing of WSGI logs

    WSGI log files use a different input configuration than OpenStack log
    files. Currently this depends on log files matching either *-access.log
    or *-error.log. Some services use *_access.log or *_error.log, so are
    not parsed correctly.

    This change modifies the fluentd configuration to accept an underscore
    or hyphen for WSGI log file names.

    Change-Id: I566d6cac0b6749054fd5422ec8f36f99dacb1db7
    Closes-Bug: #1720371
    (cherry picked from commit a32cddca4974b9ee43c91544be19014a9748c450)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (stable/rocky)

Reviewed: https://review.opendev.org/699742
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=1a8ed92f5cf084f527ea78cfb349e10e2f4559e7
Submitter: Zuul
Branch: stable/rocky

commit 1a8ed92f5cf084f527ea78cfb349e10e2f4559e7
Author: Mark Goddard <email address hidden>
Date: Mon Dec 9 13:52:38 2019 +0000

    Fix fluentd parsing of WSGI logs

    WSGI log files use a different input configuration than OpenStack log
    files. Currently this depends on log files matching either *-access.log
    or *-error.log. Some services use *_access.log or *_error.log, so are
    not parsed correctly.

    This change modifies the fluentd configuration to accept an underscore
    or hyphen for WSGI log file names.

    Change-Id: I566d6cac0b6749054fd5422ec8f36f99dacb1db7
    Closes-Bug: #1720371
    (cherry picked from commit a32cddca4974b9ee43c91544be19014a9748c450)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 7.2.0

This issue was fixed in the openstack/kolla-ansible 7.2.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 8.1.0

This issue was fixed in the openstack/kolla-ansible 8.1.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 9.0.1

This issue was fixed in the openstack/kolla-ansible 9.0.1 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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