httpd logs hidden inside containers

Bug #1700045 reported by Derek Higgins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Bogdan Dobrelya

Bug Description

Of the httpd containerized services that I looked at, none of them have /var/log/httpd listed in volumes, so logs don't appear in /var/log/containers on the host.

Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

Note, that fits the current (intermediate) implementation for containers logging, see https://review.openstack.org/#/c/462900/7/specs/pike/containerized-services-logs.rst@50

tags: added: containers
Revision history for this message
Jiří Stránský (jistr) wrote :

We could export them to bare metal in according to what we do with services that use the traditional logging (line 80 in the spec).

Just wondering what would be the best directory... /var/log/containers/$SERVICE/httpd/ might be the best in terms of hierarchy, but i don't think it's doable without some somersaults, because we do a lot of `chown -R ... /var/log/containers/$SERVICE` which would also chown the httpd subdir in a way we don't want.

Considering the above, i'd probably go for something like

/var/log/containers/$SERVICE-httpd/

Changed in tripleo:
importance: Medium → High
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

Or we could configure httpd to log into syslog

Changed in tripleo:
assignee: nobody → Bogdan Dobrelya (bogdando)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (master)

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

Changed in tripleo:
status: Triaged → In Progress
Changed in tripleo:
milestone: pike-3 → pike-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to puppet-tripleo (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/489218

Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

Sadly, we can't send httpd logs from containers to syslog. We need httpd 2.5 to have the mod_syslog.so, but "Apache httpd v2.5 is currently not included in any Red Hat product"

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-heat-templates (master)

Change abandoned by Bogdan Dobrelya (<email address hidden>) on branch: master
Review: https://review.openstack.org/488506
Reason: can't be done with httpd 2.4.x

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on puppet-tripleo (master)

Change abandoned by Bogdan Dobrelya (<email address hidden>) on branch: master
Review: https://review.openstack.org/489218

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (master)

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

Changed in tripleo:
milestone: pike-rc1 → pike-rc2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.openstack.org/489955
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=287e84585ca9170570ce8d06eebd7f9a3ec3345c
Submitter: Jenkins
Branch: master

commit 287e84585ca9170570ce8d06eebd7f9a3ec3345c
Author: Bogdan Dobrelya <email address hidden>
Date: Wed Aug 2 11:44:18 2017 +0200

    Persist containerized services httpd logs

    Store the httpd logs under dedicated /var/log/containers/httpd/
    paths.
    Additionally, add release notes describing upgrade impact
    for containerized services logs.

    Closes-bug: #1700045

    Change-Id: I8120c56f2315700862bd0f708b8baa8910275b09
    Signed-off-by: Bogdan Dobrelya <email address hidden>

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/499235

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/pike)

Reviewed: https://review.openstack.org/499235
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=f171eca4c3fc2e18b3971bb9cd930208bf43e646
Submitter: Jenkins
Branch: stable/pike

commit f171eca4c3fc2e18b3971bb9cd930208bf43e646
Author: Bogdan Dobrelya <email address hidden>
Date: Wed Aug 2 11:44:18 2017 +0200

    Persist containerized services httpd logs

    Store the httpd logs under dedicated /var/log/containers/httpd/
    paths.
    Additionally, add release notes describing upgrade impact
    for containerized services logs.

    Closes-bug: #1700045

    Change-Id: I8120c56f2315700862bd0f708b8baa8910275b09
    Signed-off-by: Bogdan Dobrelya <email address hidden>
    (cherry picked from commit 287e84585ca9170570ce8d06eebd7f9a3ec3345c)

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 7.0.1

This issue was fixed in the openstack/tripleo-heat-templates 7.0.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 8.0.0.0b1

This issue was fixed in the openstack/tripleo-heat-templates 8.0.0.0b1 development milestone.

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.