-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
feat: add ipv6 support #32960
base: master
Are you sure you want to change the base?
feat: add ipv6 support #32960
Conversation
Signed-off-by: David Pichler <david.pichler@grainger.com>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: UnyieldingOrca The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@UnyieldingOrca Please associate the related issue to the body of your Pull Request. (eg. “issue: #”) |
My suggestion, put the logic into one loop.
|
@UnyieldingOrca
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #32960 +/- ##
==========================================
- Coverage 81.79% 81.70% -0.10%
==========================================
Files 1006 1007 +1
Lines 126785 127634 +849
==========================================
+ Hits 103701 104278 +577
- Misses 19147 19364 +217
- Partials 3937 3992 +55
|
The reason I wrote this way is because this code will behave no differently for anyone currently using milvus. If they have a valid ipv4 address that one will be returned, and only if there are no ipv4 addresses will the code return an ipv6 address. I think it will be a bit safer this way.
I tested different versions of this code locally using an edited version of I only checked that there were no errors in some of the log files and that I was able to connect from my host machine using pymilvus and run a I tested this code in a dual stack network setup using docker and I was able to connect to milvus. I also tested a different version of the code where I did not attempt to run all of the python unit/integration tests though. |
@yhmo Does my latest comment address your concerns? |
@bigsheeper @godchen0212 @yhmo Is there a way to push a docker image for this commit to docker hub so that I can test using it. I have an IPv6 only kubernetes environment I can deploy a milvus cluster into using the milvus operator and can test there. If there isn't a workflow for that, would you guys be OK with approving this PR and merging it into master, with the changes and tests I'm confident this change isn't breaking for anyone and merging would allow me to use/test milvus in my environment. |
This PR updates the func utils get IP address function to support getting a IPv6 address if it is available and return it. I've tested that this works locally when running inside a docker container that has an IPv6 network address.
This PR should address #20217
Thank you for review!