Minimise occurrences of the log: [WARN] client: error fetching host disk usage stats
#2700
Labels
[WARN] client: error fetching host disk usage stats
#2700
Nomad version
Nomad v0.5.6
Operating system and Environment details
CentOS Linux release 7.1
Issue
Every few seconds, nomad logs
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!
The text was updated successfully, but these errors were encountered: