Forensic full disk bug LEGAL_LOG_COMMAND_WRITE_ERROR reason: Success
name: A minor bug with legal log error message when disk is full
about: Amusing error message when forensic log file dir is full
Describe the bug When the partition/disk where forensic log files are written is full the following error can message can be seen in the logs:
2024-04-25 13:38:30.076 ERROR [kea-dhcp4.legal-log-hooks/2556420.140413126269056] LEGAL_LOG_COMMAND_WRITE_ERROR Could not write command entry to the legal store: error writing to file:/var/lib/kea/kea-forensic4.20240425.txt reason: Success
To Reproduce Steps to reproduce the behavior:
- Fill partition where forensic logs are written.
- Tail /var/log/kea-dhcp4.log and generate traffic.
- See error message in /var/log/kea-dhcp4.log
Expected behavior When the disk is full and the kea-dhcp4 forensic hook is not able to write, the reason for the error should not be "Success".
Environment:
- Kea version: isc-kea-2.2.1-isc20230719182021, isc-kea-hooks-2.2.1-isc20230719182021
- OS: RedHat 9.3
- Which features were compiled in (in particular which backends)
- If/which hooks where loaded in: /usr/lib64/kea/hooks/libdhcp_lease_cmds.so, /usr/lib64/kea/hooks/libdhcp_legal_log.so
Contacting you I will probably get notified through this issue.