Expose conmon log rotation options through the REST API
Description
As of conmon 2.2.0, conmon supports log rotation via --log-rotate and --log-max-files.
However, Podman does not currently expose these options through its rest api. This means that users managing containers through the rest api cannot configure conmon's log rotation settings directly.
Podman's rest api should be updated to support these arguments.
Work-around
It is possible to work around this by overriding conmon_path via a container.conf.d drop-in and using a wrapper that injects the arguments.
i will take this issue
Hi @TobiasAlexanderson / @containers/podman-maintainers,
I would like to work on this issue.
My proposed plan is:
- Update
specgen.LogConfigto expose conmon log rotation options (e.g.,max-file/log-max-files). - Update
pkg/specgenutilandlibpodcreation options to parse and store the rotation configuration. - Pass the corresponding flags (
--log-max-files,--log-rotate) to conmon inlibpod/oci_conmon_common.go. - Add E2E/system test coverage for the API and CLI flows.
May I be assigned to this issue?
I can't assign issues myself, but I think you can claim this with /assign
@Srujansa
@prabhat-kumar96
/assign
A friendly reminder that this issue had no activity for 30 days.