fluentd_sources doesn't point to container logs

Bug #1769051 reported by Cédric Jeanneret deactivated
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Cédric Jeanneret

Bug Description

Dear Stackers,

While digging a bit in our logging infra linked to OpenStack, I found a small issue: the generated hiera hash for tripleo::profile::base::logging::fluentd::fluentd_sources is wrong when we are in a containerized environment.

Indeed, all the logs listed in this hash still point to the non-containerized service, meaning neither fluentd nor any other thing we might base on this hiera key point to the correct, live logs.

After some more digging in t-h-t, each service defines a location for its log, for instance:
in puppet/services/ceilometer-agent-central.yaml we find:
  CeilometerAgentCentralLoggingSource:
    type: json
    default:
      tag: openstack.ceilometer.agent.central
      path: /var/log/ceilometer/central.log

This path should be override when we include the environments/docker.yaml environment file, shouldn't it?

I can provide a patch for that, of course, but I'd rather get some feedback before going down on it :).

Cheers,

C.

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

Sounds like a plan, go for it! :)

Changed in tripleo:
status: New → Triaged
importance: Undecided → Medium
milestone: none → rocky-2
Changed in tripleo:
assignee: nobody → Cédric Jeanneret (cjeanneret-c2c)
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/566228

Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Changed in tripleo:
assignee: Cédric Jeanneret (cjeanneret-c2c) → Steven Hardy (shardy)
Changed in tripleo:
assignee: Steven Hardy (shardy) → Cédric Jeanneret (cjeanner)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.openstack.org/566228
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=3848713182c0cdb1e0e78cee9233a278d69cf3ab
Submitter: Zuul
Branch: master

commit 3848713182c0cdb1e0e78cee9233a278d69cf3ab
Author: Cédric Jeanneret <email address hidden>
Date: Fri May 18 10:18:43 2018 +0200

    Correct log location in container environment for Fluentd

    Since we moved services in containers, their logs aren't in the old location, but
    in /var/log/containers/<service>. This patch fixes the generated Hiera hash used
    by Fluentd for its configuration

    Regarding Designate config service: some of the yaml doesn't use at all the
    `service_config_settings` parameter - they will need to be updated accordingly
    once it's supported

    Co-Authored-By: Thomas Herve <email address hidden>, Steven Hardy <email address hidden>
    Change-Id: I1bc0930de4053dc1c34b50477e82d9ccdab7ae2e
    Closes-Bug: 1769051
    Related-Bug: 1674715

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-heat-templates (master)

Change abandoned by Steven Hardy (<email address hidden>) on branch: master
Review: https://review.openstack.org/568540

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

This issue was fixed in the openstack/tripleo-heat-templates 9.0.0.0b3 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.