httpd logs hidden inside containers

Bug #1700045 reported by Derek Higgins on 2017-06-23
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
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.

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
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
Bogdan Dobrelya (bogdando) wrote :

Or we could configure httpd to log into syslog

Changed in tripleo:
assignee: nobody → Bogdan Dobrelya (bogdando)

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
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"

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

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

Changed in tripleo:
milestone: pike-rc1 → pike-rc2

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

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

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

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  Edit
Everyone can see this information.

Other bug subscribers