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

Elemental CAPI hostname management #1038

Open
anmazzotti opened this issue Oct 9, 2023 · 1 comment
Open

Elemental CAPI hostname management #1038

anmazzotti opened this issue Oct 9, 2023 · 1 comment

Comments

@anmazzotti
Copy link
Contributor

anmazzotti commented Oct 9, 2023

This issue is about configuring a machine hostname using the elemental-agent.

Currently a simple useExisting flag was implemented. If on it will use the current hostname value, otherwise it will generate a random UUID.

There are a few issues with this implementation.

  • The SMBIOS data can not be specified as input. This functionality must be supported since it's present in the current elemental-register implementation and is also important to generate predictable hostnames.

  • The current implementation of useExisting breaks the elemental-agent --reset workflow. It will not be possible to restore the original hostname while resetting.

It would be better to expand this setting.
For example by copying the current machineName formatting implementation.
Instead of using the existing hostname, it would be wiser to explicitly allow for a DHCP server driven hostname. For example allowing a ${DHCP/Domain} value.

Using the current hostname should be removed completely, as it will no longer be an accurate value after reset and we do not want to persist this information so that the elemental-agent can continue to be (mostly) stateless.

Edit: Since this involves network setups and dependency with DHCP, do not forget to take rancher-sandbox/cluster-api-provider-elemental#28 in consideration.

@anmazzotti
Copy link
Contributor Author

anmazzotti commented Oct 9, 2023

Linking parent epic: #968

@ldevulder FYI

@anmazzotti anmazzotti changed the title CAPI Elemental hostname management Elemental CAPI hostname management Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant