Log rotation for rsyncd [swift_storage_hosts_setup.yml]

Bug #1534365 reported by Alberto Laporte
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Medium
Travis Truman

Bug Description

This has been observed on all several swift installations here is a very recent example running openstack-ansible on 11.2.5

OS version: Ubuntu 14.04
openstack-ansible version: 11.2.5

Issue observed: Swift storage hosts using rsyncd do not have logrotate configuration for the rsync daemon, after enough time causes the file system to run out of its available space due to the /var/log/rsyncd.log file growing out of proportion without proper rotation in place.

Fix/workarounds: Manually create a logrotate configuration file under /etc/logrotate.d/ for rsyncd. I used this example for my work arounds [1].

The suggested wishlist/request would be to allow to enable logrotation for the rsync daemon on swift storage hosts on install/host-setup.

[1]
---------------------------
/var/log/rsyncd.log {
 daily
 rotate 7
 missingok
 notifempty
 compress
 copytruncate
}
---------------------------

Changed in openstack-ansible:
assignee: nobody → Travis Truman (travis-truman)
Changed in openstack-ansible:
milestone: none → mitaka-3
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible (master)

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

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

Reviewed: https://review.openstack.org/273231
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible/commit/?id=9ddfafbb6e7ebfe77d316b9bce6033da00ecfe04
Submitter: Jenkins
Branch: master

commit 9ddfafbb6e7ebfe77d316b9bce6033da00ecfe04
Author: Travis Truman <email address hidden>
Date: Wed Jan 27 15:41:24 2016 -0500

    Provide logrotate config for rsyncd on Swift storage hosts

    Change-Id: I9a5fc0420c376c888c55bcf91a6a0ef022767768
    Closes-Bug: #1534365

Changed in openstack-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible (liberty)

Fix proposed to branch: liberty
Review: https://review.openstack.org/274121

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible (liberty)

Reviewed: https://review.openstack.org/274121
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible/commit/?id=3fe17799d846777b98754829545aca4b930cd1da
Submitter: Jenkins
Branch: liberty

commit 3fe17799d846777b98754829545aca4b930cd1da
Author: Travis Truman <email address hidden>
Date: Wed Jan 27 15:41:24 2016 -0500

    Provide logrotate config for rsyncd on Swift storage hosts

    Change-Id: I9a5fc0420c376c888c55bcf91a6a0ef022767768
    Closes-Bug: #1534365
    (cherry picked from commit 9ddfafbb6e7ebfe77d316b9bce6033da00ecfe04)

tags: added: in-liberty
Changed in openstack-ansible:
milestone: mitaka-3 → mitaka-2
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/openstack-ansible 12.0.8

This issue was fixed in the openstack/openstack-ansible 12.0.8 release.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/openstack-ansible 12.0.9

This issue was fixed in the openstack/openstack-ansible 12.0.9 release.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/openstack-ansible 13.0.0

This issue was fixed in the openstack/openstack-ansible 13.0.0 release.

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

This issue was fixed in the openstack/openstack-ansible 13.0.0 release.

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/openstack-ansible 12.0.11

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