Comment 9 for bug 1473405

Revision history for this message
Sergey Kulanov (skulanov) wrote :

Folks, please check for master branch, probably you forgot to fix logrotate script. Please check failed test [1]:

1)
[root@nailgun ~]# rpm -q --changelog rabbitmq-server
* Wed Mar 16 2016 Alexey Lebedeff <email address hidden> - 3.6.1-3~mos1
- d9a7cc1 Fix systemd issues
- 383e912 Tune 3.6.1 for RHEL and backport some patches
- c389137 Import upstream package for 3.6.1
- b0a8190 Bump version for rebuild
- 66e63bf Merge "Remove postscript, add copytruncate to logrotate." into 8.0
- d231c4a Suffix update for rabbitmq-server * Modification made according to https://github.com/openstack/fuel-specs/blob/master/specs/8.0/separate-mos-from-centos.rst#rpm-packages-versioning

2)
[root@nailgun ~]# rpm -ql rabbitmq-server-3.6.1-3.el7~mos1.noarch | grep logrotate
/etc/logrotate.d/rabbitmq-server
[root@nailgun ~]# cat /etc/logrotate.d/rabbitmq-server
/var/log/rabbitmq/*.log {
        weekly
        missingok
        rotate 20
        compress
        delaycompress
        notifempty
        sharedscripts
        postrotate
            /sbin/service rabbitmq-server rotate-logs > /dev/null
        endscript
}

3)
[root@nailgun ~]# service rabbitmq-server rotate-logs
The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl.

should be:
        postrotate
            /usr/sbin/rabbitmqctl -q rotate_logs
        endscript

[1]. https://product-ci.infra.mirantis.net/view/9.0_swarm/job/9.0.system_test.ubuntu.logrotate/51/