-
Notifications
You must be signed in to change notification settings - Fork 81
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
feat: add VIP mac address input panel #894
Conversation
Signed-off-by: Ivan Sim <[email protected]>
Signed-off-by: Ivan Sim <[email protected]>
Signed-off-by: Ivan Sim <[email protected]>
@w13915984028 let me know what you think of this approach. |
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.
LGTM, thanks @ihcsim
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.
lgtm!
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.
LGTM. Thanks
Problem:
There is a parity gap between the VIP configuration of the ISO installation and the automatic installation modes. In the automatic installation mode, user can specify the VIP MAC and static IP addresses over DHCP. This allows user to use a static IP address as the cluster's VIP. This option isn't available in the ISO installation mode.
Solution:
This PR updates the VIP configuration page of the installation console with a new
MAC Address
field, to allow user to specify the VIP's MAC address in DHCP mode. The installer uses this MAC address to request for the specific static IP address over DHCP. If this field is left blank, the installer falls back to the current behaviour of determining the VIP and MAC address.On the VIP page, the subsequent input panels that will be shown are based on the method selected by the user:
Choosing
DHCP
reveals both theMAC Address
andVIP
input panels:Choosing
Static
reveals only theVIP
input panel:Related Issue:
harvester/harvester#6960.
Test plan:
Test Case 1 - Request For Static VIP Address Using Custom MAC Address
Follow the instructions in this gist to add custom MAC/IP address bindings to the local kvm dnsmasq.
On the VIP page, input the custom MAC address (
32:34:1a:75:7f:64
):192.168.122.39
) from the DHCP serverComplete the rest of the installation setup to provision Harvester.
Provision a worker node to join the cluster targeting the static VIP address.
Test Case 2 - Let Installer Determine The VIP and MAC Address
On the VIP page, leave the MAC and VIP addresses blank.
Complete the rest of the installation setup to provision Harvester.
Provision a worker node to join the cluster via the static VIP address.