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

Support configurable dynamic port range #11167

Merged
merged 8 commits into from
Oct 13, 2021
Merged

Conversation

a-zagaevskiy
Copy link
Contributor

@a-zagaevskiy a-zagaevskiy commented Sep 10, 2021

This changes make it possible to configure the range that is used for assigning dynamic ports (#8186).

@jrasell
Copy link
Member

jrasell commented Sep 10, 2021

Hi @a-zagaevskiy and thanks so much for this. I have marked this for our next major release meaning we won't review this immediately, but will perform this once that development cycle is open to merging into main.

@a-zagaevskiy
Copy link
Contributor Author

Hi @jrasell ! No problem !

@jrasell jrasell self-requested a review September 30, 2021 13:17
@jrasell jrasell self-assigned this Sep 30, 2021
Also add a little more min/max port testing and add the consts back that
had been removed: but unexported and as defaults.
@schmichael
Copy link
Member

@a-zagaevskiy Thanks for the contribution! I added the api package component and a couple other minor things, please let me know if it looks good to you.

@jrasell Mind giving this a review?

@a-zagaevskiy
Copy link
Contributor Author

@schmichael It looks great! Thank you very much!

@schmichael
Copy link
Member

I'm still cleaning up client tests locally.

- Fix test broken due to being improperly setup.
- Include min/max ports in default client config.
@schmichael
Copy link
Member

@jrasell Tests are happy! Ready for a review.

Copy link
Member

@jrasell jrasell left a comment

Choose a reason for hiding this comment

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

Hi @a-zagaevskiy and thanks so much for raising this PR. It looks great, however, the one inline comment I made feels like a blocker at the moment. Please let me know if you have any questions, or whether you want me to take over this additional change due to constraints on your end.

command/agent/command.go Outdated Show resolved Hide resolved
Copy link
Member

@jrasell jrasell left a comment

Choose a reason for hiding this comment

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

LGTM, thanks a lot @a-zagaevskiy! @schmichael any last thoughts before merging this in from you particularly around the plan applier?

@schmichael
Copy link
Member

@schmichael any last thoughts before merging this in from you particularly around the plan applier?

Thanks for reminding me! I confirmed both the scheduler worker and plan applier use the same NetworkIndex code that @a-zagaevskiy altered to support these new configuration parameters.

All that to say: it looks good to me! I expanded the error messages and added some more tests and will merge!

@schmichael schmichael merged commit 6a0dede into hashicorp:main Oct 13, 2021
jrasell added a commit that referenced this pull request Nov 4, 2021
jrasell added a commit that referenced this pull request Nov 4, 2021
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants