Skip to content

Gracefully handle /proc errors in network check#5245

Merged
mgarabed merged 3 commits into
masterfrom
mgarabed/proc-dev-try
Dec 18, 2019
Merged

Gracefully handle /proc errors in network check#5245
mgarabed merged 3 commits into
masterfrom
mgarabed/proc-dev-try

Conversation

@mgarabed

Copy link
Copy Markdown
Member

What does this PR do?

Avoid Errors on OpenShift and other environments where /proc is not accessible due to permissions.

Additional Notes

Considered using log.warning instead, but existing try/catch already uses log.debug so thought it would be more important to be consistent.

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • PR title must be written as a CHANGELOG entry (see why)
  • Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
  • PR must have changelog/ and integration/ labels attached

@mgarabed

Copy link
Copy Markdown
Member Author

Working on fixing tests ..

Comment thread network/datadog_checks/network/network.py

@ofek ofek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'd do info, but up to you 👍

@mgarabed
mgarabed merged commit f72026a into master Dec 18, 2019
@mgarabed
mgarabed deleted the mgarabed/proc-dev-try branch December 18, 2019 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants