Conntrackd: logrotate postsctipt doesn't restart deamon

Bug #1464932 reported by Andrey Epifanov
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Bartłomiej Piotrowski
6.0.x
Invalid
High
Fuel Library (Deprecated)
6.1.x
Fix Committed
High
Bartłomiej Piotrowski
7.0.x
Fix Released
High
Alex Schultz

Bug Description

Logrotating doesn't work for conntrackd.

    postrotate
        invoke-rc.d conntrackd restart > /dev/null
    endscript

The postrotate script doesn't restart conntrackd.
Conntrackd keeps writing into one file and logrotate can't rotate this log file.

Tags: 6.1rc2
Revision history for this message
Alex Schultz (alex-schultz) wrote :

It's also not being rotated on centos.

Changed in fuel:
importance: Undecided → High
status: New → Confirmed
assignee: nobody → Fuel Library Team (fuel-library)
Revision history for this message
Alex Schultz (alex-schultz) wrote :

Actually it doesn't run under centos 6 at this time.

Changed in fuel:
milestone: none → 6.1-updates
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

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

Changed in fuel:
assignee: Fuel Library Team (fuel-library) → Alex Schultz (alex-schultz)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/191582
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=e642a55e1485c478f1701a74b9dde4983bdda604
Submitter: Jenkins
Branch: master

commit e642a55e1485c478f1701a74b9dde4983bdda604
Author: Alex Schultz <email address hidden>
Date: Sun Jun 14 13:07:25 2015 -0500

    Add copytruncate to conntrackd logrotate config

    Currently the service restart of conntrackd does not always result
    in the log files properly being rotated. We have seen instances where
    the file will continue to be written to even after rotation. In order
    to address this, this change adds a copytruncate to the logrotation
    configuration.

    Change-Id: I9832021c88d8dde87e9b391b50b479e81f630402
    Closes-Bug: 1464932
    Related-Bug: 1461400

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (stable/6.1)

Fix proposed to branch: stable/6.1
Review: https://review.openstack.org/191760

Changed in fuel:
milestone: 6.1-updates → 6.1
no longer affects: fuel/7.0.x
Changed in fuel:
milestone: 6.1 → 7.0
no longer affects: fuel/6.0-updates
tags: added: 6.1rc2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (stable/6.1)

Reviewed: https://review.openstack.org/191760
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=483b543f8b81840be3808395edf7359d80923921
Submitter: Jenkins
Branch: stable/6.1

commit 483b543f8b81840be3808395edf7359d80923921
Author: Alex Schultz <email address hidden>
Date: Sun Jun 14 13:07:25 2015 -0500

    Add copytruncate to conntrackd logrotate config

    Currently the service restart of conntrackd does not always result
    in the log files properly being rotated. We have seen instances where
    the file will continue to be written to even after rotation. In order
    to address this, this change adds a copytruncate to the logrotation
    configuration.

    Change-Id: I9832021c88d8dde87e9b391b50b479e81f630402
    Closes-Bug: 1464932
    Related-Bug: 1461400
    (cherry picked from commit e642a55e1485c478f1701a74b9dde4983bdda604)

Revision history for this message
Bartłomiej Piotrowski (bpiotrowski) wrote :

It doesn't seem to apply to 6.0 – I haven't found anything about conntrackd in fuel-library.

Revision history for this message
Bartłomiej Piotrowski (bpiotrowski) wrote :

Verified on 7.0-259:

root@node-1:/etc/logrotate.d# grep invoke-rc.d /etc/logrotate.d/conntrackd
        invoke-rc.d conntrackd restart > /dev/null
        invoke-rc.d conntrackd restart > /dev/null

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.