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

Add unit test showing high CPU utilization when attempting to get /120 subnet #137

Closed

Conversation

sebastien-rosset
Copy link
Contributor

@sebastien-rosset sebastien-rosset commented Jan 31, 2022

SUMMARY

Two bugs are exposed by the unit tests, one in netaddr and one in ansible.utils. The "2600:1f1c:1b3:8f00::/56" | ipsubnet(120, 0) unit test causes the ipsubnet filter to attempt to create 18446744073709551616 subnets, this never returns.

  1. The 'IPNetwork.subnet' function can loop through 2 ^ 128 elements netaddr/netaddr#241
  2. Valid IPv6 input may cause 'ipsubnet' filter to attempt to create 2 ^ 128 values #132
ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

ipsubnet filter

ADDITIONAL INFORMATION

@@ -0,0 +1,5 @@
---
minor_changes:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
minor_changes:
doc_changes:

@NilashishC NilashishC requested a review from Qalthos February 2, 2022 13:20
@softwarefactory-project-zuul
Copy link
Contributor

Unable to freeze job graph: Job network-ee-unit-tests depends on network-ee-build-container-image which was not run.

@softwarefactory-project-zuul
Copy link
Contributor

Unable to freeze job graph: Job network-ee-unit-tests depends on network-ee-build-container-image which was not run.

@ashwini-mhatre
Copy link
Contributor

recheck

@softwarefactory-project-zuul
Copy link
Contributor

Build failed.

@Qalthos
Copy link
Contributor

Qalthos commented Nov 4, 2022

This at the very least needs a rebase, but the changelog update is also correct- no code is changing here outside of tests, so this is at best a doc_changes, or a trivial change

@Qalthos Qalthos added the waiting_on_author Waiting on the issue author to confirm label Nov 4, 2022
@KB-perByte KB-perByte self-assigned this Feb 28, 2024
@rohitthakur2590 rohitthakur2590 requested review from NilashishC and removed request for Qalthos and NilashishC July 10, 2024 09:53
@rohitthakur2590 rohitthakur2590 removed the waiting_on_author Waiting on the issue author to confirm label Jul 10, 2024
@roverflow
Copy link
Member

Closing as above changes has already been added from a different PR

@roverflow roverflow closed this Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants