Remove the logging directories from the DEB package

Description

Since OpenNMS 14 the logging behavior is different. The following plain install on CentOS 7.0 create the following log files:

Daemons started:

[root@localhost logs]# opennms -v status OpenNMS.Eventd : running OpenNMS.Trapd : running OpenNMS.Queued : running OpenNMS.Actiond : running OpenNMS.Notifd : running OpenNMS.Scriptd : running OpenNMS.Rtcd : running OpenNMS.Pollerd : running OpenNMS.PollerBackEnd : running OpenNMS.EnhancedLinkd : running OpenNMS.Ticketer : running OpenNMS.Collectd : running OpenNMS.Discovery : running OpenNMS.Vacuumd : running OpenNMS.EventTranslator: running OpenNMS.PassiveStatusd : running OpenNMS.Statsd : running OpenNMS.Provisiond : running OpenNMS.Reportd : running OpenNMS.Alarmd : running OpenNMS.Ackd : running OpenNMS.JettyServer : running opennms is running

Generated log files on CentOS 7:

eventd.log 136090318 8 -rw-rw-r--. 1 root root 6714 Nov 20 18:46 instrumentation.log 136090314 104 -rw-rw-r--. 1 root root 106416 Nov 20 18:47 manager.log 138955867 4 -rw-rw-r--. 1 root root 5 Nov 20 18:45 opennms.pid 138955866 16 -rw-rw-r--. 1 root root 13082 Nov 20 18:47 output.log 138791815 4 -rwxr-xr-x. 1 root root 26 Nov 14 19:41 .readme 136090320 132 -rw-rw-r--. 1 root root 132903 Nov 20 18:47 rtc.log 136092259 56 -rw-rw-r--. 1 root root 54502 Nov 20 21:18 web.log

Generated logiles on Ubuntu 14.04

. ├── controller ├── daemon ├── eventd.log ├── instrumentation.log ├── manager.log ├── output.log ├── rtc.log ├── webapp └── web.log

What happend with all the daemon logs?

Environment

Vagrant which installs stable from default repositories on CentOS 7.0 and Ubuntu 14.04

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Benjamin Reed April 10, 2015 at 5:31 PM

Fixed in foundation, will merge forward to 16.

Seth Leger January 23, 2015 at 10:50 AM

To avoid confusion, we should probably remove these directories from the DEB package.

Ronny Trommer November 21, 2014 at 1:52 PM

Ah ok understand, the debian packages create the three folders the RPM package doesn't. Is this is an issue of the DEB packages?

Benjamin Reed November 21, 2014 at 8:27 AM

The separate controller/daemon/webapp directories are gone. Logs are set to INFO and are only written to the first time there is a log that comes through.

Also, a bunch of logging stuff has been cleaned up so things end up in the right places (we had a lot of misdirected log entries because of threading in the past).

Chances are if you bump things up to DEBUG you'll get allllll your log files back if you really want them. 😉

Fixed

Details

Assignee

Reporter

Sprint

Affects versions

Priority

PagerDuty

Created November 21, 2014 at 6:59 AM
Updated April 28, 2015 at 9:54 AM
Resolved April 10, 2015 at 5:31 PM

Flag notifications