Foremanct - Log levels for Foreman & Proxy#640
Conversation
| env: | ||
| SEED_ORGANIZATION: "{{ foreman_initial_organization }}" | ||
| SEED_LOCATION: "{{ foreman_initial_location }}" | ||
| FOREMAN_LOGGING_LEVEL: "{{ foreman_log_level }}" |
There was a problem hiding this comment.
not directly related to the PR here, but we have a set of env vars we pass to all foreman containers. time to consolidate them into a variable so we don't have to edit them in multuple places? same for secrets, I guess?
the pulp role has some prior work on this if you look for inspiration
|
I like this! |
|
Memo to self about Valkey: need to pass |
|
pulp (according to https://pulpproject.org/pulpcore/docs/admin/reference/settings/#logging and https://docs.djangoproject.com/en/4.2/topics/logging/#loggers) will need some translation in the settings too |
| | `--foreman-logging-layout` | | | | ||
| | `--foreman-logging-level` | | | | ||
| | `--foreman-logging-type` | | | |
There was a problem hiding this comment.
Not a blocker, but I think I think we can say that layout and type will likely not be supported.
There was a problem hiding this comment.
Given the author of this PR won't get to fix it quickly, I propose you track this as a separate work item
| @@ -165,7 +179,6 @@ There are multiple use cases from the users perspective that dictate what parame | |||
| | `--foreman-proxy-content-enable-ostree` | | | | | |||
| | `--foreman-proxy-http` | | | | | |||
| | `--foreman-proxy-log` | | | | | |||
There was a problem hiding this comment.
Similar to above. This controls where the proxy logs to (stdout, syslog, journal). I think in a containerized world we won't make that configurable so move this to the Unmapped section?
|
🍏 Tested with foremanctl-3.0.0.develop-2.20260713052924310495.pr640.79.g9b74dc0.el9.noarch Scenarios tested:
Automation PR: SatelliteQE/robottelo#22148 |
Why are you introducing these changes? (Problem description, related links)
To give users the option to change the log level of the services.
What changes are introduced in this pull request?
Three new
deployparameters:--log-levelDefault log level for all services.--foreman-log-levelLog level forforeman.service--foreman-proxy-log-levelLog level forforeman-proxy.serviceHow to test this pull request
or
and then:
Notes
Resetting params won't work
Fixed in https://github.com/theforeman/obsah/pull/127/changes
Checklist