Swift logs end up in /var/log/messages

Bug #1776180 reported by Christian Schwede
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Christian Schwede

Bug Description

Recent overcloud images seem to be more lightweight, and the openstack-swift-*.rpms are no longer installed. However, these rpms created an entry in /etc/rsyslog.d/openstack-swift.conf, which ensures that Swift logs are actually written to /var/log/swift/swift.log

This file is now missing, and thus logs mess up /var/log/messages.

I'm proposing to add a host_prep_task to re-add this file before deploying a Swift service.

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/574221

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

It seems the logrotate configs may be also missing. Is this issue limited to swift rpms only?..

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

I wonder if we need to open a more generic issue for replacing openstack services rpm with containers? Aside of rsyslog/logrotate config theres could be also policy/RBAC files missing and whatnot?..

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

Reviewed: https://review.openstack.org/574221
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=916845f55df1070c32490d818602e16466367753
Submitter: Zuul
Branch: master

commit 916845f55df1070c32490d818602e16466367753
Author: Christian Schwede <email address hidden>
Date: Mon Jun 11 11:14:26 2018 +0200

    Add host_prep_task to setup proper logging for Swift

    Recent overcloud images seem to be more lightweight, and the
    openstack-swift-*.rpms are no longer installed. However, these rpms
    created an entry in /etc/rsyslog.d/openstack-swift.conf, which ensures
    that Swift logs are actually written to /var/log/swift/swift.log

    This file is now missing, and thus logs mess up /var/log/messages.

    Closes-Bug: 1776180
    Change-Id: Icf4310558e3cceafbdd67f72432e59730b96a588

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 9.0.0.0rc1

This issue was fixed in the openstack/tripleo-heat-templates 9.0.0.0rc1 release candidate.

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.