fluentd global config using symlink_path will cause stale symlink

Bug #1685170 reported by Shunli Zhou
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Undecided
Shunli Zhou
Ocata
Fix Released
Undecided
Unassigned

Bug Description

fluentd global config using symlink_path will cause staled symlink

   path /var/log/kolla/haproxy/haproxy_latest.*.log
   symlink_path /var/log/kolla/haproxy/haproxy_latest.log

    path /var/log/kolla/swift/swift_latest.*.log
    symlink_path /var/log/kolla/swift/swift_latest.log

As the log rotate task will rotate the log and the xxxx_latest.log will be staled symlink.

Shunli Zhou (shunliz)
Changed in kolla-ansible:
assignee: nobody → Shunli Zhou (shunliz)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (master)

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

Changed in kolla-ansible:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (master)

Reviewed: https://review.openstack.org/458791
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=24ed428f067a08f6cbf7479671035227bb924a98
Submitter: Jenkins
Branch: master

commit 24ed428f067a08f6cbf7479671035227bb924a98
Author: ShunliZhou <email address hidden>
Date: Fri Apr 21 17:36:15 2017 +0800

    Remove symlink from fluentd global conf

    As the logrotate will create new filename with timestamp, fluentd
    with symlink will staled when restart fluentd and can not set
    permission on the old file.

    Remove symlink from the global conf.

    Change-Id: I404868d5b5077b9f2135e37605421bc84717f9d3
    Closes-Bug: #1685170

Changed in kolla-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 5.0.0.0b3

This issue was fixed in the openstack/kolla-ansible 5.0.0.0b3 development milestone.

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

Reviewed: https://review.openstack.org/489927
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=be989d1e26f10de016706417935b22378a3e2adf
Submitter: Jenkins
Branch: stable/ocata

commit be989d1e26f10de016706417935b22378a3e2adf
Author: ShunliZhou <email address hidden>
Date: Fri Apr 21 17:36:15 2017 +0800

    Remove symlink from fluentd global conf

    As the logrotate will create new filename with timestamp, fluentd
    with symlink will staled when restart fluentd and can not set
    permission on the old file.

    Remove symlink from the global conf.

    Change-Id: I404868d5b5077b9f2135e37605421bc84717f9d3
    Closes-Bug: #1685170
    (cherry picked from commit 24ed428f067a08f6cbf7479671035227bb924a98)

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

This issue was fixed in the openstack/kolla-ansible 4.0.3 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.