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

Minimise occurrences of the log: [WARN] client: error fetching host disk usage stats #2700

Closed
hmalphettes opened this issue Jun 9, 2017 · 4 comments

Comments

@hmalphettes
Copy link
Contributor

hmalphettes commented Jun 9, 2017

Nomad version

Nomad v0.5.6

Operating system and Environment details

CentOS Linux release 7.1

Issue

Every few seconds, nomad logs

[WARN] client: error fetching host disk usage stats for /media/123: permission denied

Here is the PR where the log was introduced: #2090

Reproduction steps

Run nomad as a non privileged user.
Have a mounted partition where the user running nomad does not have read access.
Let me know if you need more specific steps: I did not setup that server.

Would you consider issuing the warning just once?
Should we in fact ignore a permission denied error all together: after all it makes sense that a non-privileged user does not monitor a partition it has no access to?

I can attempt to contribute a PR if you want.
Let me know which way to go in that case.

Running nomad as a non-privileged user paired with the raw-exec driver is a less exciting setup nowadays. But it is a requirement for a vendor in a financial institution where security compliance relies entirely on running as a non-privileged user.

Many thanks for your attention!

@dadgar
Copy link
Contributor

dadgar commented Jun 20, 2017

Hey @hmalphettes

I would love a PR! It is probably worth logging the error only once on failure. We follow the pattern in the fingerprinters: https://github.com/hashicorp/nomad/blob/master/client/fingerprint/consul.go#L24

You can see it only logs failures on state changes!

@hmalphettes
Copy link
Contributor Author

@dadgar thanks for the pointer. I'll find some time to do it then. If someone beats me to it, all the better.
The rest of the stack is working so well that this remains a detail... and we are busy until we go in production.

@tgross tgross added this to Needs Roadmapping in Nomad - Community Issues Triage Feb 12, 2021
@tgross tgross added the stage/needs-verification Issue needs verifying it still exists label Mar 4, 2021
@tgross
Copy link
Member

tgross commented Mar 8, 2021

Doing some issue cleanup. Looks like this was fixed in 7a84cbe which shipped in 0.6.1

@tgross tgross closed this as completed Mar 8, 2021
Nomad - Community Issues Triage automation moved this from Needs Roadmapping to Done Mar 8, 2021
@tgross tgross removed the stage/needs-verification Issue needs verifying it still exists label Mar 8, 2021
@github-actions
Copy link

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants