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

net/dhcp: add udhcpc support #2125

Closed
wants to merge 1 commit into from
Closed

Conversation

jfroche
Copy link
Contributor

@jfroche jfroche commented Apr 14, 2023

The currently used dhcp client, dhclient, is coming from the unmaintained package, isc-dhcp-client (refer https://www.isc.org/dhcp/) which ended support in 2022.

This change introduce support for the dhcp client, udhcpc, from the busybox project. Busybox advantages are that it is available across many distributions and comes with lightweight executables.

It might be useful to rebase this PR once #2122 is merged.

Checklist:

  • My code follows the process laid out in the documentation
  • I have updated or added any unit tests accordingly
  • I have updated or added any documentation accordingly

The currently used dhcp client, dhclient, is coming from the unmaintained package, isc-dhcp-client (refer https://www.isc.org/dhcp/)
which ended support in 2022.

This change introduce support for the dhcp client, udhcpc, sourced from the busybox project.
Busybox advantages are that it is available across many distributions and comes with lightweight executables.
jfroche added a commit to jfroche/nixpkgs that referenced this pull request Apr 14, 2023
Cloud-init use as dhcp client, dhclient, which is coming from the unmaintained package, isc-dhcp-client (refer https://www.isc.org/dhcp/) which ended support in 2022. dhclient is deprecated in nixos

Add patch to use `udhcpc` dhcp client coming from busybox instead.

PR based on NixOS#226173

refs NixOS#215571

upstream PR: canonical/cloud-init#2125
jfroche added a commit to jfroche/nixpkgs that referenced this pull request Apr 16, 2023
Cloud-init use as dhcp client, dhclient, which is coming from the unmaintained package, isc-dhcp-client (refer https://www.isc.org/dhcp/) which ended support in 2022. dhclient is deprecated in nixos

Add patch to use `udhcpc` dhcp client coming from busybox instead.

PR based on NixOS#226173

refs NixOS#215571

upstream PR: canonical/cloud-init#2125
jfroche added a commit to jfroche/nixpkgs that referenced this pull request Apr 16, 2023
Cloud-init use as dhcp client, dhclient, which is coming from the unmaintained package, isc-dhcp-client (refer https://www.isc.org/dhcp/) which ended support in 2022. dhclient is deprecated in nixos

Add patch to use `udhcpc` dhcp client coming from busybox instead.

PR based on NixOS#226173

refs NixOS#215571

upstream PR: canonical/cloud-init#2125
Copy link
Member

@holmanb holmanb left a comment

Choose a reason for hiding this comment

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

Thanks for this submission @jfroche, and for signing the CLA. I'll make sure to drop a comment here once PR: #2122 is resolved so that this can be refactored.

I haven't tested this, but it looks like a step in the right direction.

In the meantime, I'll note that this handles the most common dhclient case, however there are a couple of other (albeit datasource specific) dhclient requirements in the codebase that are missing from this PR.

@holmanb holmanb self-assigned this Apr 17, 2023
zimbatm pushed a commit to NixOS/nixpkgs that referenced this pull request Apr 25, 2023
* cloud-init: 22.4 -> 23.1.1

* cloud-init: add udhcpc support

Cloud-init use as dhcp client, dhclient, which is coming from the unmaintained package, isc-dhcp-client (refer https://www.isc.org/dhcp/) which ended support in 2022. dhclient is deprecated in nixos

Add patch to use `udhcpc` dhcp client coming from busybox instead.

PR based on #226173

refs #215571

upstream PR: canonical/cloud-init#2125
@zimbatm zimbatm mentioned this pull request Apr 30, 2023
3 tasks
@github-actions
Copy link

github-actions bot commented May 2, 2023

Hello! Thank you for this proposed change to cloud-init. This pull request is now marked as stale as it has not seen any activity in 14 days. If no activity occurs within the next 7 days, this pull request will automatically close.

If you are waiting for code review and you are seeing this message, apologies! Please reply, tagging TheRealFalcon, and he will ensure that someone takes a look soon.

(If the pull request is closed and you would like to continue working on it, please do tag TheRealFalcon to reopen it.)

@github-actions github-actions bot added the stale-pr Pull request is stale; will be auto-closed soon label May 2, 2023
@jfroche
Copy link
Contributor Author

jfroche commented May 2, 2023

Thanks for this submission @jfroche, and for signing the CLA. I'll make sure to drop a comment here once PR: #2122 is resolved so that this can be refactored.

@holmanb Should I rebase now that #2122 has been merged ?

I haven't tested this, but it looks like a step in the right direction.

In the meantime, I'll note that this handles the most common dhclient case, however there are a couple of other (albeit datasource specific) dhclient requirements in the codebase that are missing from this PR.

I am interested to know what kind of extra dhcp features do we rely on ? Do you have some pointers ?

Also can you remove the stale status ?

Thank you !

@holmanb holmanb removed the stale-pr Pull request is stale; will be auto-closed soon label May 3, 2023
@holmanb
Copy link
Member

holmanb commented May 3, 2023

@holmanb Should I rebase now that #2122 has been merged ?

Yes

I am interested to know what kind of extra dhcp features do we rely on ? Do you have some pointers ?

A couple of specific features include parsing options parsing for Azure, and InfinBand support via dhcp-client-identifier.

To ensure that parity with isc-dhcp-client is achieved, implementing all of the same methods that IscDhclient has should be done.

Also can you remove the stale status ?

No problem, done.

@github-actions
Copy link

Hello! Thank you for this proposed change to cloud-init. This pull request is now marked as stale as it has not seen any activity in 14 days. If no activity occurs within the next 7 days, this pull request will automatically close.

If you are waiting for code review and you are seeing this message, apologies! Please reply, tagging TheRealFalcon, and he will ensure that someone takes a look soon.

(If the pull request is closed and you would like to continue working on it, please do tag TheRealFalcon to reopen it.)

@github-actions github-actions bot added the stale-pr Pull request is stale; will be auto-closed soon label May 18, 2023
@TheRealFalcon TheRealFalcon removed the stale-pr Pull request is stale; will be auto-closed soon label May 19, 2023
@github-actions
Copy link

github-actions bot commented Jun 3, 2023

Hello! Thank you for this proposed change to cloud-init. This pull request is now marked as stale as it has not seen any activity in 14 days. If no activity occurs within the next 7 days, this pull request will automatically close.

If you are waiting for code review and you are seeing this message, apologies! Please reply, tagging TheRealFalcon, and he will ensure that someone takes a look soon.

(If the pull request is closed and you would like to continue working on it, please do tag TheRealFalcon to reopen it.)

@github-actions github-actions bot added the stale-pr Pull request is stale; will be auto-closed soon label Jun 3, 2023
@github-actions github-actions bot closed this Jun 11, 2023
@jfroche jfroche mentioned this pull request Jun 19, 2023
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale-pr Pull request is stale; will be auto-closed soon
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants