Skip to content
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

Avoid warning noise in logrotate.get #56105

Merged
merged 3 commits into from
Sep 28, 2022

Conversation

boltronics
Copy link
Contributor

What does this PR do?

There is no guarantee that a lookup failure is necessarily a problem, so presenting a message to this effect as a warning has led to confusion for some (and annoyance for others). This resolves the issue
by showing the message at the debug level.

What issues does this PR fix or reference?

Fixes #53988

Previous Behavior

[WARNING ] Block '/myapp/log/file/path/*' not present or empty.
[WARNING ] Block '/myapp/log/file/path/*' not present or empty.
[WARNING ] Block '/myapp/log/file/path/*' not present or empty.
[WARNING ] Block '/myapp/log/file/path/*' not present or empty.
[WARNING ] Block '/myapp/log/file/path/*' not present or empty.
[WARNING ] Block '/myapp/log/file/path/*' not present or empty.

(full details in the issue linked above)

I have a number of users use Salt to provision their VMs with Vagrant, and most of them have asked me at one point if these warnings mean that provisioning is failing and if they should abort and re-do it.

New Behavior

We should have beautiful silence (except when running with the -l debug argument).

Tests written?

No

Commits signed with GPG?

Yes

@boltronics boltronics requested a review from a team as a code owner February 10, 2020 03:47
@ghost ghost requested a review from garethgreenaway February 10, 2020 03:47
@Ch3LL Ch3LL removed the request for review from a team April 15, 2020 14:21
@dwoz dwoz added has-failing-test Needs-Testcase PR needs test cases written, or the issue is about a bug/feature that needs test cases labels May 13, 2020
@garethgreenaway garethgreenaway removed Needs-Testcase PR needs test cases written, or the issue is about a bug/feature that needs test cases has-failing-test labels Jun 6, 2020
boltronics and others added 3 commits September 27, 2022 13:53
There is no guarantee that a lookup failure is necessarily a problem,
so presenting a message to this effect as a warning has led to
confusion for some (and annoyance for others). This resolves the issue
by showing the message at the debug level.

Fixes saltstack#53988
@garethgreenaway garethgreenaway merged commit db54566 into saltstack:master Sep 28, 2022
@boltronics boltronics deleted the fix-logrotate-noise branch October 27, 2022 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

logrotate.get logs warnings "Block" '%s' not present or empty."
4 participants