Incorrect logging setup

Bug #2006522 reported by Andreas Hasenack
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
isc-kea (Ubuntu)
Fix Released
Undecided
Paride Legovini

Bug Description

The default logging setup for kea-dhcp4-server is, from /etc/kea/kea-dhcp4.conf, /var/log/kea-dhcp4.log. But the package creates /var/log/kea, with correct ownership.

We should either fix the config to log to /var/log/kea/kea-dhcp4.log (and check the other daemons for the same mistake), or perhaps switch to syslog logging, and then ship a reasonable rsyslog config snippet and configure log rotation (see https://bugs.launchpad.net/ubuntu/+source/isc-kea/+bug/1863101).

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

In 2.2.0-1build1:

# grep /var/log /etc/kea/*.conf
/etc/kea/kea-ctrl-agent.conf: "output": "/var/log/kea-ctrl-agent.log"
/etc/kea/kea-dhcp-ddns.conf: "output": "/var/log/kea-ddns.log"
/etc/kea/kea-dhcp4.conf: "output": "/var/log/kea-dhcp4.log"
/etc/kea/kea-dhcp6.conf: "output": "/var/log/kea-dhcp6.log"

But:
root@l1:~# ll /var/log/kea*
total 0
drwxr-x--- 1 _kea _kea 0 Jan 18 14:37 ./
drwxrwxr-x 1 root syslog 410 Feb 8 12:28 ../

root@l1:~# ll /var/log/kea* -d
drwxr-x--- 1 _kea _kea 0 Jan 18 14:37 /var/log/kea/

Paride Legovini (paride)
Changed in isc-kea (Ubuntu):
status: New → In Progress
assignee: nobody → Paride Legovini (paride)
Revision history for this message
Paride Legovini (paride) wrote :
Changed in isc-kea (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package isc-kea - 2.2.0-2

---------------
isc-kea (2.2.0-2) unstable; urgency=medium

  [ Athos Ribeiro ]
  * d/tests: add simple DEP8 smoke tests
  * Set default control sockets location to /run/kea (Closes: #1014929)
    (LP: #1863100)

  [ Paride Legovini ]
  * d/control: drop dependency on lsb-base (obsolete)
  * d/salsa-ci.yml: enable the autopkgtest job
  * d/kea-common.*:
    - Do not install keactrl. The keactrl script is not systemd-aware and not
      installed by the upstream .deb packages. Remove it from the Debian
      packaging
    - Leave handling of /var/*/kea directories to systemd. No need to create
      them in packaging as the systemd units will automatically create them
      with the right ownership and permissions
  * d/*.service:
    - Do not set KEA_LOGGER_DESTINATION. The variable is meant to tell the
      daemons where to log *before* their config files are loaded. If unset
      the default is stdout, which works well with systemd
    - Do not set KEA_PIDFILE_DIR. What we set it to corresponds to the
      defaults. The documentation says that KEA_PIDFILE_DIR "is intended
      primarily for testing"
  * d/rules: use the systemd journal for logging (Closes: #1016747)
    (LP: #2006522)
  * d/kea-doc.README.Debian: document how logging is done by default
  * d/tests/smoke-tests: check location of PID and lock files

 -- Athos Ribeiro <email address hidden> Tue, 14 Feb 2023 11:24:58 -0300

Changed in isc-kea (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.