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

Use snmp mibs copy while mibs.snmplabs.com is down #7835

Merged
merged 2 commits into from
Nov 27, 2020

Conversation

pducolin
Copy link
Contributor

What does this PR do?

mibs.snmplabs.com has been down since late August, as reported in etingof/pysnmp#376. In the meantime a copy has been provided at https://github.com/projx/snmp-mibs. This PR changes the target mibs source url

We might also create our copy and point to our mibs - not sure there could be security concerns

Motivation

Fix ddev mibs resolution

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

gmarabout
gmarabout previously approved these changes Nov 24, 2020
Copy link
Contributor

@gmarabout gmarabout left a comment

Choose a reason for hiding this comment

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

Approving, but it might be interesting to consider the small update from my comment.

reader = HttpReader('mibs.snmplabs.com', 80, '/asn1/@mib@')
# As mibs.snmplabs.com is down, use a copy
# https://github.com/etingof/pysnmp/issues/376
reader = HttpReader('raw.githubusercontent.com', 80, '/projx/snmp-mibs/master/@mib@')
Copy link
Contributor

Choose a reason for hiding this comment

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

Can't we have an option to override this value, instead of hardcoded URL? By default that would remain mibs.snmplabs.com but we could override it using:

ddev meta snmp translate-profile --source-url=raw.githubusercontent.com ...

AlexandreYang
AlexandreYang previously approved these changes Nov 25, 2020
@pducolin pducolin dismissed stale reviews from AlexandreYang and gmarabout via 3697666 November 26, 2020 10:49
@pducolin pducolin force-pushed the pducolin/snmplabs-com-is-down branch from 3697666 to 6bf7496 Compare November 26, 2020 11:09
@pducolin pducolin requested a review from gmarabout November 26, 2020 13:09
@pducolin pducolin force-pushed the pducolin/snmplabs-com-is-down branch from 6bf7496 to d870352 Compare November 26, 2020 13:14
@pducolin pducolin force-pushed the pducolin/snmplabs-com-is-down branch from d870352 to 90ad3cf Compare November 26, 2020 13:17
@pducolin pducolin merged commit d4c6575 into master Nov 27, 2020
@pducolin pducolin deleted the pducolin/snmplabs-com-is-down branch November 27, 2020 09:59
github-actions bot pushed a commit that referenced this pull request Nov 27, 2020
* use snmp mibs copy while mibs.snmplabs.com is down

* add option to set custom MIB source in ddev translate profile d4c6575
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.

3 participants