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

[NDMII-3058] Add synchronous rDNS lookup to rdnsquerier component #30002

Merged
merged 33 commits into from
Oct 28, 2024

Conversation

vicweiss
Copy link
Contributor

@vicweiss vicweiss commented Oct 9, 2024

What does this PR do?

This PR modifies the reverse DNS querier component to allow for synchronous calls.

Motivation

While this component was originally written with Netflow in mind, hence the asynchronous implementation, having a reverse DNS lookup with caching is also desired for 2 other use cases:

  • SNMP integration to enrich devices with hostname
  • Network Path to enrich private IPs with reverse DNS information

Describe how to test/QA your changes

Ensure that the asynchronous call still works and Netflow reverse DNS data is still being fetched properly. Changes to that were limited to renaming the function call.

Currently there's not a good way to QA the synchronous endpoint as this is just the addition of the synchronous call. Separate PRs will be created that actually use this code and impact the functionality of the agent.

Possible Drawbacks / Trade-offs

This isn't a perfect implementation. With more time, I would investigate refactoring the cache implementation to be more friendly to a synchronous approach. This would allow us to avoid having all of the channels to receive results.

Additional Notes

@vicweiss vicweiss changed the title Allow rdsquerier to run in snmp core check [NDMII-3058] Add rDNS hostname enrichment to SNMP corecheck Oct 9, 2024
Copy link

cit-pr-commenter bot commented Oct 9, 2024

Regression Detector

@agent-platform-auto-pr
Copy link
Contributor

agent-platform-auto-pr bot commented Oct 16, 2024

Test changes on VM

Use this command from test-infra-definitions to manually test this PR changes on a VM:

inv create-vm --pipeline-id=47487109 --os-family=ubuntu

Note: This applies to commit c704f60

@vicweiss vicweiss marked this pull request as ready for review October 21, 2024 13:50
@vicweiss vicweiss requested review from a team as code owners October 21, 2024 13:50
@vicweiss vicweiss changed the title [NDMII-3058] Add rDNS hostname enrichment to SNMP corecheck [NDMII-3058] Add synchronous rDNS lookup to rdnsquerier component Oct 23, 2024
@vicweiss vicweiss requested a review from vickenty October 24, 2024 18:30
@vicweiss vicweiss requested a review from buraizu October 24, 2024 19:30
@vickenty vickenty removed their request for review October 25, 2024 13:50
@vickenty vickenty dismissed their stale review October 25, 2024 13:51

This PR no longer includes parts that were requested to change

@ken-schneider ken-schneider dismissed buraizu’s stale review October 25, 2024 14:54

The part of this PR that adds this to SNMP has been removed, this piece doesn't need a release note.

@ken-schneider ken-schneider requested review from jmw51798 and removed request for buraizu October 25, 2024 18:07
Copy link
Member

@AlexandreYang AlexandreYang left a comment

Choose a reason for hiding this comment

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

💯

@ken-schneider
Copy link
Contributor

/merge

@dd-devflow
Copy link

dd-devflow bot commented Oct 28, 2024

🚂 MergeQueue: pull request added to the queue

The median merge time in main is 22m.

Use /merge -c to cancel this operation!

@dd-mergequeue dd-mergequeue bot merged commit d3367e3 into main Oct 28, 2024
212 checks passed
@dd-mergequeue dd-mergequeue bot deleted the vic.weiss/snmp_rdns_enrichment branch October 28, 2024 14:24
@github-actions github-actions bot added this to the 7.60.0 milestone Oct 28, 2024
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.

7 participants