11 Commits

Author SHA1 Message Date
Clark Boylan
ddb23eeb7b Use WatchedFileHandler to avoid copytruncate.
Python logging has a WatchedFileHandler which will do the correct thing
for logrotate when copytruncate is not used. Do this to avoid having
multiple copies of the same log in place. Also, this should avoid a race
where log data is lost between copying and truncating done by logrotate.

Change-Id: Idbbc7869004a03b8f19cfbd81ad07f5584ce1964
2014-06-11 15:39:25 -07:00
James E. Blair
89a977a06e Reduce gearman logging level
We think we have useful logs now, so reduce the level just in case
all of the logging is exacerbating the problem.

Change-Id: I85e8e989976b452d73671089a5f66450c8e4743a
2014-05-27 17:01:10 -07:00
Clark Boylan
cbe1277e5f Fix python FileHandler loggers
Use correct module path for FileHandler objects and make args tuple a
proper tuple.

Change-Id: Ib24989e6795ad88fd6de6ab66944984b438b9f72
2014-05-27 14:56:53 -07:00
James E. Blair
a1f2d5c16e Switch zuul geard to debug
Change-Id: Ib6b3b15853bf48ea3a5ea20564a9afa6fa123e38
2014-05-27 14:37:46 -07:00
Clark Boylan
e376d82672 Rotate zuul logs with logrotate
Python logrotate does not compress. Use logrotate utility to do log
rotation so that older logs can be compressed saving disk space.

Change python logging to use normal file handlers as it will no longer
be doing the rotation for us. Keep all the file names the same.

Change-Id: I7302e4b197e99fd49fd9d5678702333b17a46efa
2014-05-27 14:30:53 -07:00
James E. Blair
f9c8016fce Revert "Set Zuul gear server logs to debug"
They are too large currently.

This reverts commit ec21ba78f6b3aeb192f9c1d7e8eb15f42d6cc86c.

Change-Id: I02b35765b113d2db746743474ee255b4939e5bb5
2014-02-26 13:15:54 -08:00
James E. Blair
ec21ba78f6 Set Zuul gear server logs to debug
For real this time.

Change-Id: I86cca02cbe8282b95853dc9a140c1e0acb6e22c7
2014-02-26 09:45:10 -08:00
James E. Blair
a2ec7d6478 Switch Zuul geard logging to DEBUG level
To try to understand more about what would cause a zuul-geard
disconnect.  Only keep 3 days of logs because they are BIG.

Change-Id: Iba9a8a9c21d82ab4e3323db8c561f8de8c18864f
2014-02-21 08:38:29 -08:00
James E. Blair
60a2816a38 Zuul: set gear log level to INFO
DEBUG is way too verbose.

Change-Id: I9fc53d3b5b1cf1d3a61207e3b8accddc8b185202
2013-12-04 14:20:47 -08:00
James E. Blair
88022c05d3 Stop gearman debug logging
Change-Id: I80f6851577cdb7f5aec35e9aee04e7bf1658e1a0
Reviewed-on: https://review.openstack.org/35387
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Anita Kuno <anteaya@anteaya.info>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
2013-07-03 15:02:40 +00:00
James E. Blair
b064f95e52 Use Zuul's internal gearman server.
(This is only used by zuul-dev currently.)

Remove co-hosted gearmand server (will require manual cleanup).

Also, listen for feature/gearman events in openstack-infra.

Change-Id: I2dd58e62ff79277f1ef5c79da54bcc7511f2ccee
Reviewed-on: https://review.openstack.org/30175
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
2013-06-04 21:47:33 +00:00