You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a convenient feature: You can create a HetznerBaremetalHost without specifying RootDeviceHints (WWNs).
But up to now it is a bit hard to understand how this works.
Up to now the hbmh without RootDeviceHints gets chosen for a HetznerMachine object.
When the controller starts the provisioning process, the controller detects that RootDeviceHints are nil, and interrupt with ErrorMessageMissingRootDeviceHints.
At that point the hbmh has HardwareDetails set in the Status.
The user can then set the root device hints by coping values from HardwareDetails to RootDeviceHints.
This process works, but could be improved.
Goal: Add the HardwareDetails before adding the hbmh to a cluster. This means the process would look like this:
The user creates a hbmh with just the serverId.
The controller checks which clusters the hbmh could belong to. If no cluster was found a warning-condition gets set.
If several clusters were found, the controller picks one randomly and sets a label on the hbmh, so that it is visible that the hbmh will get the HardwareDetails from that cluster. It is important to associate this with a cluster, because the robot-api-key is needed to boot the hbmh into rescue system.
The controller takes the hbmh, creates a temporary ssh-key, and boots the hbmh into the rescue system.
The controller then fetches the HardwareDetails and sets the hbmh into an invalid state.
The hbmh would be in state invalid (because RootDeviceHints are still missing). The controller would not take the hbmh for a cluster.
The user can edit the hbmh and add RootDeviceHints.
The controller validates the RootDeviceHints, and if they are valid remove the invalid status of the hbmh.
If a cluster needs a new bare-metal machine, the hbmh could be taken because it is valid.
The text was updated successfully, but these errors were encountered:
/kind feature
Describe the solution you'd like
We have a convenient feature: You can create a HetznerBaremetalHost without specifying RootDeviceHints (WWNs).
But up to now it is a bit hard to understand how this works.
Up to now the hbmh without RootDeviceHints gets chosen for a HetznerMachine object.
When the controller starts the provisioning process, the controller detects that RootDeviceHints are nil, and interrupt with ErrorMessageMissingRootDeviceHints.
At that point the hbmh has HardwareDetails set in the Status.
The user can then set the root device hints by coping values from HardwareDetails to RootDeviceHints.
This process works, but could be improved.
Goal: Add the HardwareDetails before adding the hbmh to a cluster. This means the process would look like this:
The text was updated successfully, but these errors were encountered: