From 549c1e5f5938b7c1776fc833a56bd5a3d9c6e3de Mon Sep 17 00:00:00 2001 From: Ivan Tyagov <ivan@nexedi.com> Date: Thu, 12 Apr 2018 15:50:56 +0300 Subject: [PATCH] Because of this: https://lab.nexedi.com/nexedi/slapos.core/blob/master/slapos/grid/promise/generic.py#L44 When slapgrid run promises, it now save promise logs. Thus we need to logrotate them. Thanks @Alain. --- software/slaprunner/buildout.hash.cfg | 2 +- software/slaprunner/instance-runner.cfg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/software/slaprunner/buildout.hash.cfg b/software/slaprunner/buildout.hash.cfg index a7a5f5f62..d5ddc127b 100644 --- a/software/slaprunner/buildout.hash.cfg +++ b/software/slaprunner/buildout.hash.cfg @@ -19,7 +19,7 @@ md5sum = 713db528880282d568278f09458d2aab [template-runner] filename = instance-runner.cfg -md5sum = be4528bbbd26a668032a7f7759a9a38f +md5sum = 04e31ac503753f89510dd412b4680c56 [template-runner-import-script] filename = template/runner-import.sh.jinja2 diff --git a/software/slaprunner/instance-runner.cfg b/software/slaprunner/instance-runner.cfg index b082e0cdd..da072646d 100644 --- a/software/slaprunner/instance-runner.cfg +++ b/software/slaprunner/instance-runner.cfg @@ -802,7 +802,7 @@ post = kill -SIGUSR2 $(cat $${buildout:directory}/var/run/supervisord.pid) [logrotate-entry-slapgrid] <= logrotate-entry-base name = slapgrid -log = $${runnerdirectory:home}/instance/*/.slapgrid/log/instance.log +log = $${runnerdirectory:home}/instance/*/.slapgrid/log/instance.log $${runnerdirectory:home}/instance/*/.slapgrid/promise/log/*.log [supervisord-promise] recipe = slapos.cookbook:check_port_listening -- 2.30.9