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

repeated log errors on disabled quotas (#2236) #2271

Conversation

phillxnet
Copy link
Member

Remove explicit logging of key 'btrfs qgroup show' commands to avoid excessive log spamming. As we have now supported the pool quota disabled state mostly successfully for some time we can remove the initial default of always logging these commands which are reported as errors by the underlying btrfs commands when quotas are disabled on the parent pool. And hence are at odds with their supported state within the Rockstor Web-UI. In most common cases we catch and log as info in addition to the prior 'raw' command log.

Prior explicit log parameters have been kept as explicit to ease reversing this change.

Includes minor comment typo.

Fixes #2236
Ready for review.

Testing

Pre pr

With a ROOT pool, quota disabled, a Shares refresh page produces the following log entry:

[30/Jan/2021 18:33:29] ERROR [system.osi:196] non-zero code(1) returned by command: ['/usr/sbin/btrfs', 'qgroup', 'show', '/mnt2/ROOT/home']. output: [''] error: ["ERROR: can't list qgroups: quotas not enabled", '']

Post pr

There is no ERROR message produced.

N.B. there are still error states that we wish to surface and they should still be logged or surfaced. But for the time being this patch reduces our mostly redundant a and potentially misleading 'ERROR' log spamming for known common btrfs quota disabled states.

Remove explicit logging of key 'btrfs qgroup show' commands to
avoid excessive log spamming. As we have now supported the pool quota
disabled state mostly successfully for some time we can remove the
initial default of always logging these commands which are reported as
errors by the underlying btrfs commands when quotas are disabled on the
parent pool. And hence are at odds with their supported state within
the Rockstor Web-UI. In most common cases we catch and log as info in
addition to the prior 'raw' command log.

Prior explicit log parameters have been kept as explicit to ease
reversing this change.
@phillxnet phillxnet added the needs review Ideally by prior rockstor-core contributor label Jan 30, 2021
Copy link
Member

@FroggyFlox FroggyFlox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@phillxnet ,

Looks all good on my end as well! It builds without error, and I do not see the repeated errors related to quota disabled in the logs anymore.

Thanks a lot!

@phillxnet phillxnet removed the needs review Ideally by prior rockstor-core contributor label Feb 1, 2021
@phillxnet
Copy link
Member Author

@FroggyFlox Thanks for the double check/review. Much appreciated.
I'll go ahead and merge.

@phillxnet phillxnet merged commit c059e7a into rockstor:master Feb 1, 2021
@phillxnet phillxnet deleted the 2236_repeated_log_errors_on_disabled_quotas branch February 1, 2021 15:36
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.

Repeated Log Errors for shares with disabled quotas
2 participants