-
Notifications
You must be signed in to change notification settings - Fork 95
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 support for TFTP-boot provisioning in IPv6 networks #3532
base: master
Are you sure you want to change the base?
Conversation
The PR preview for c8d42a9 is available at theforeman-foreman-documentation-preview-pr-3532.surge.sh The following output files are affected by this PR: |
When the PXE loader is set to `none`, {Project} does not populate the `next-server` option into the DHCP record. | ||
|
||
+ | ||
If the `next-server` option remains undefined, {Project} uses reverse DNS search to find a TFTP server address to assign, but you might encounter the following problems: |
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 know this was already there, but this behavior has changed a long time ago. In Foreman 2.0 there was theforeman/foreman@60c03b6 which deprecated the old reverse DNS lookup for Smart Proxies incapable of a new feature (for n-1 support). In Foreman 2.5 this deprecated behavior was removed with theforeman/foreman@f3231f6.
The way it now works is:
- It calls the Smart Proxy API to retrieve the serverName (as specified using
--foreman-proxy-tftp-servername
in the installer) - If this isn't returned, it uses the hostname of the Smart Proxy
It is up to the DHCP provider server to deal with a hostname and it depends on the implementation how this exactly works. For ISC DHCP the Smart Proxy now resolves the address:
https://github.com/theforeman/smart-proxy/blob/7060ce3e3951f070475e0c977fd3bf93e335d810/modules/dhcp_common/isc/omapi_provider.rb#L203-L215
And in reviewing this PR I've realized we should really use the option to set the tftp server name and let ISC DHCP deal with it.
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.
Co-authored-by: Ewoud Kohl van Wijngaarden <[email protected]>
LGTM, it looks good! |
What changes are you introducing?
Adding support for TFTP-boot provisioning in IPv6 networks
Why are you introducing these changes? (Explanation, links to references, issues, etc.)
Satellite 6.17 has to comply with US Gov. requirement for IPv6 support
Anything else to add? (Considerations, potential downsides, alternative solutions you have explored, etc.)
Checklists
Please cherry-pick my commits into: N/A