dd0eacc460
- use flock to ensure that only one instance of fuel-logrotate is running - combine centos and ubuntu versions of fuel-logrotate to a single file - remove unused versions of fuel-logrotate file - enable delayed compression in system-wide logrotate.conf to avoid race condition between fuel-logrotate and regular logrotate - enable delaycompress also on master node - default minsize (30M) and maxsize (100M) in system-wide logrotate.conf - use file_line for logrotate.conf updates - use bash to execute fuel-logrotate - fix path to cron's logrotate script in logrotate-debug This commit changes default behavior of logrotate by enabling compress and delaycompress. The result is that compression is enabled for all log files managed by logrotate and rotated logs are compressed only on the next rotation. It allows us to resolve rotation cycle that might happen when both regular logrotate and fuel-logrotate were executed at the same time, causing both to rotate the same file. Closes-Bug: 1461400 Doc-Impact: ops guide Change-Id: I94c497a8916fa6fac87ea2ddc51f6de56ab73f98 Co-Authored-By: Alex Schultz <aschultz@mirantis.com>
17 lines
589 B
Makefile
Executable File
17 lines
589 B
Makefile
Executable File
#!/usr/bin/make -f
|
|
|
|
%:
|
|
dh $@ --with python2
|
|
|
|
override_dh_fixperms:
|
|
chmod 755 debian/fuel-ha-utils/usr/lib/ocf/resource.d/fuel/*
|
|
dh_fixperms
|
|
|
|
override_dh_install:
|
|
dh_install
|
|
mv debian/fuel-ha-utils/usr/lib/ocf/resource.d/fuel/rabbitmq debian/fuel-ha-utils/usr/lib/ocf/resource.d/fuel/rabbitmq-server
|
|
mv debian/fuel-ha-utils/usr/lib/ocf/resource.d/fuel/heat_engine_ubuntu debian/fuel-ha-utils/usr/lib/ocf/resource.d/fuel/heat-engine
|
|
mv debian/fuel-misc/usr/bin/logrotate debian/fuel-misc/usr/bin/fuel-logrotate
|
|
rm debian/fuel-ha-utils/usr/lib/ocf/resource.d/fuel/heat_engine_centos
|
|
|