Skip to content

test & fix: add DHCPv4 client hostname resend regression test, fix hostname resend #1480

Merged
troglobit merged 3 commits intokernelkit:mainfrom
saba8814:test/dhcp-client-hostname-not-resent
Apr 28, 2026
Merged

test & fix: add DHCPv4 client hostname resend regression test, fix hostname resend #1480
troglobit merged 3 commits intokernelkit:mainfrom
saba8814:test/dhcp-client-hostname-not-resent

Conversation

@saba8814
Copy link
Copy Markdown
Contributor

@saba8814 saba8814 commented Apr 23, 2026

Description

Checklist

Tick relevant boxes, this PR is-a or has-a:

  • Bugfix
    • Regression tests
    • ChangeLog updates (for next release)
  • Feature
    • YANG model change => revision updated?
    • Regression tests added?
    • ChangeLog updates (for next release)
    • Documentation added?
  • Test changes
    • Checked in changed Readme.adoc (make test-spec)
    • Added new test to group Readme.adoc and yaml file
  • Code style update (formatting, renaming)
  • Refactoring (please detail in commit messages)
  • Build related changes
  • Documentation content changes
    • ChangeLog updated (for major changes)
  • Other (please describe):

@saba8814 saba8814 changed the title test: add DHCPv4 client hostname resend regression test test & fix: add DHCPv4 client hostname resend regression test, fix hostname resend Apr 24, 2026
@saba8814 saba8814 force-pushed the test/dhcp-client-hostname-not-resent branch from 3f2df25 to b2c4053 Compare April 26, 2026 15:44
Copy link
Copy Markdown
Contributor

@troglobit troglobit left a comment

Choose a reason for hiding this comment

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

Only a minor comment regarding the test documentation. Other than that, this looks great, nice job!

Update: also, please update doc/ChangeLog.md, the fixes section, in the style of the project. (Very brief notice only)

Comment on lines +6 to +28

Verify that updating the system hostname regenerates the DHCP client
Finit service file so subsequent DHCP requests advertise the current
hostname (option 12, RFC 2132).

Regression test for a bug where the DHCP client callback only reacts
on diffs in infix-dhcp-client, so a standalone change of
ietf-system:system/hostname leaves the previously written
/etc/finit.d/available/dhcp-client-<iface>.conf untouched and the
running udhcpc keeps announcing the old name.

==== Topology

image::topology.svg[DHCP Hostname Resend topology, align=center, scaledwidth=75%]

==== Sequence

. Set up topology and attach to target DUT
. Configure initial hostname '{HOSTNM_A}'
. Enable DHCP client sending hostname option
. Verify Finit service carries hostname '{HOSTNM_A}'
. Update system hostname to '{HOSTNM_B}'
. Verify Finit service is regenerated with '{HOSTNM_B}'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The contents are out-of-date with the test, please run make test-spec to update.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@troglobit thank you for review, should be fixed now.

Signed-off-by: Ejub Sabic <ejub1946@outlook.com>
Signed-off-by: Ejub Sabic <ejub1946@outlook.com>
@saba8814 saba8814 force-pushed the test/dhcp-client-hostname-not-resent branch from b2c4053 to 08ca47f Compare April 28, 2026 16:00
Signed-off-by: Ejub Sabic <ejub1946@outlook.com>
Copy link
Copy Markdown
Contributor

@troglobit troglobit left a comment

Choose a reason for hiding this comment

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

Awesome, thanks! I'll merge as soon as the tests pass

@troglobit troglobit merged commit 6c6dc77 into kernelkit:main Apr 28, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants