-
Notifications
You must be signed in to change notification settings - Fork 121
Reapply "Use all interfaces when finding the private IP" #12439
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
Reapply "Use all interfaces when finding the private IP" #12439
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #12439 +/- ##
==========================================
+ Coverage 90.54% 90.62% +0.07%
==========================================
Files 432 430 -2
Lines 29391 29492 +101
==========================================
+ Hits 26612 26727 +115
+ Misses 2779 2765 -14
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
CodSpeed Performance ReportMerging #12439 will not alter performanceComparing Summary
|
a95f39e to
3255a46
Compare
- Add optional flag to prioritize private IPs, default false - Update tests for correct ip address fetching This reverts commit 75b190d.
b10c1b9 to
e70f52a
Compare
| PRIORITIZE_PRIVATE_IP_ADDRESS | ||
| ----------------------------- | ||
|
|
||
| The PRIORITIZE_PRIVATE_IP_ADDRESS key is used to specify if the IP address |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd be more clear with the message.
Some network setups require private IP for communication between ERT and forward models.
Also not sure if this wording is good:
This defaults to FALSE, therefore using the private IP address of the machine running Ert.
Shouldn't it be other-way around?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, youre right :)
This commit adds the new config keyword `PRIORITIZE_PRIVATE_IP_ADDRESS`, letting the user specify in their config/site_config if Ert should communicate with the fm_dispatch event reporter over the host's public or private IP address. If this setting is incorrect, the event reporter will not be able to reach Ert, and no granular forward model step updates will be available in the GUI.
e70f52a to
1804458
Compare
|
|
||
| # Select first non-empty value, based on prioritization | ||
| if prioritize_private: | ||
| selected_ip = private or public or loopback |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice, I didn't know about this ""==False :)
xjules
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice one @jonathan-eq ! 🚀
I think the release label should cover that it is user facing also.
This reverts commit 75b190d.
Issue
Resolves ##12238
Approach
Short description of the approach
(Screenshot of new behavior in GUI if applicable)
git rebase -i main --exec 'just rapid-tests')When applicable