-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[3006.x][BUG] Log file rotation sets ownership to salt, overwriting ownership of log file #65288
Comments
Problem is commit 5d3ffc9 from @barneysowood forcing salt:salt, assuming salt is correct, over-writing the user specified in the salt-master's configuration file. |
using forced logrotation
the /varlog/salt/master has been rotated but it's ownership changed |
Note logrotate issue in Slack https://saltstackcommunity.slack.com/archives/CNZKJMQ1E/p1695073531577479?thread_ts=1694114572.419079&cid=CNZKJMQ1E |
Related: #65231 |
See #65231 (comment) |
Closing since PR #65290 is merged |
Description
If a user a has set user to something other than salt, the log rotation sets the new log ownership to salt, causing issue with salt-master to halt since the key log file has its ownership changed. From salt-common.logrotate:
Setup
Setup master with configuration with something other than salt
Please be as specific as possible and give set-up details.
Steps to Reproduce the behavior
Setup master with configuration with something other than salt, for example mymaster, then force log rotation with '-f' option
Expected behavior
The ownership of the log files to remain owned by mymaster
Screenshots
If applicable, add screenshots to help explain your problem.
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: