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

Sure DHCP will work on VLAN interface if VLAN is configured #879

Merged
merged 3 commits into from
Nov 7, 2024

Conversation

w13915984028
Copy link
Member

@w13915984028 w13915984028 commented Nov 6, 2024

Problem:

DHCP looks to have flaws with VLAN interfaces.

Solution:

Sure the DHCP is working on VLAN interface if VLAN is configured.

This PR has 3 commits:

(1) Use VLAN interface if VLAN is configured to do DHCP
(2) Avoid preflight check if node goes to dashboard directly
(3) Pass VID

PR #878 is merged to this one.

Co-authored-by: Kiefer Chang [email protected]

Related Issue:

harvester/harvester#6959
harvester/harvester#3428

Test plan:

Per issue description

Local test:

Installer with this fix, the DHCP discovery frame is encaped with VLAN 100 ( and we did not set a DHCP server on VLAN 100)
image

Original installer without this fix, the DHCP discovery frame is NOT encaped with VLAN 100
image

@w13915984028
Copy link
Member Author

@mergify backport v1.4 v1.3

Copy link

mergify bot commented Nov 6, 2024

backport v1.4 v1.3

✅ Backports have been created

@w13915984028
Copy link
Member Author

Another hidden bug: in the code path, the VID is not copid in function configureInstallModeDHCP and passed to next level

addInstallPanel -> configureInstallModeDHCP -> applyNetworks -> UpdateManagementInterfaceConfig -> updateBridge

Signed-off-by: Jian Wang <[email protected]>

Co-authored-by: Kiefer Chang <[email protected]>
Copy link
Contributor

@tserong tserong left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@mingshuoqiu mingshuoqiu left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@starbops starbops left a comment

Choose a reason for hiding this comment

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

LGTM, thank you.

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.

5 participants