Crontab coultn't start logrotate - path to configuration file is invalid

Bug #1450425 reported by Vladimir Khlyunev
This bug report is a duplicate of:  Bug #1450039: Polish logrotate configuration. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Bartłomiej Piotrowski
6.0.x
Invalid
High
Fuel Library (Deprecated)

Bug Description

api: '1.0'
astute_sha: 04ebab96d57b0e8acbf2d7f3ba05e4fbf31b741e
auth_required: true
build_id: 2015-04-29_07-55-19
build_number: '361'
feature_groups:
- mirantis
fuel-library_sha: 0e5b82d24853304befb22145ac4aaf3545d295e1
fuel-ostf_sha: b38602c841deaa03ddffc95c02f319360462cbe3
fuelmain_sha: ee112acfdd0f9017ef40be53e8e51bb5c429e97c
nailgun_sha: e660b1c09d7d4d07bdd48d424ce9aed3b6facd6e
openstack_version: 2014.2.2-6.1
production: docker
python-fuelclient_sha: 8cd6cf575d3c101dee1032abb6877dfa8487e077
release: '6.1'

The script "/etc/cron.d/fuel-logrotate" contains incorrect path to the configuration file so crontab couldn't start logrotate.

[root@nailgun ~]# crontab -l
...
*/15 * * * * /etc/cron.d/fuel-logrotate
[root@nailgun ~]# cat /etc/cron.d/fuel-logrotate
...
    nice ionice -c3 /usr/sbin/logrotate /etc/logrotate.d/fuel.conf >& /tmp/logrotate
...
[root@nailgun ~]# ls /etc/logrotate.d/
atop dracut fuel nginx puppet subscription-manager supervisor syslog yum

Changed in fuel:
assignee: nobody → Fuel Library Team (fuel-library)
importance: Undecided → High
Changed in fuel:
assignee: Fuel Library Team (fuel-library) → Bartlomiej Piotrowski (bpiotrowski)
Changed in fuel:
status: New → Triaged
Changed in fuel:
status: Triaged → In Progress
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/180892

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

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

commit 86947bb9df42b7f3bd8625be456ffe2dafdc50ee
Author: Bartłomiej Piotrowski <email address hidden>
Date: Thu May 7 08:03:50 2015 +0200

    Polish logrotate configuration

    * move custom logrotate scripts from anacron to openstack module
    * use tabooext to ensure there is no overlap between Fuel's cronjob and
      the daily one
    * run logrotate twice an hour
    * make sure that logs are saved as root:syslog due to bug in Ubuntu
      package[1]
    * fix path to logrotate configuration file in Fuel's logrotate wrapper

    [1] https://bugs.launchpad.net/ubuntu/+source/logrotate/+bug/1278193

    Change-Id: Id161e8074c7fe80d69eb831db74b844094f327e7
    Closes-Bug: 1450039
    Closes-Bug: 1450425
    Related-Bug: 1382515

Changed in fuel:
status: In Progress → Fix Committed
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.