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

Toolkit built images don't consume cloud-init files named "meta-data" from the cd-rom provider #2125

Open
robertwbl opened this issue Jul 1, 2024 · 0 comments
Labels
kind/bug Something isn't working

Comments

@robertwbl
Copy link

Is your feature request related to a problem? Please describe.
Harvester puts both user-data & meta-data files containing cloud-init config into the cloud-init drive that gets attached to VMIs (line 587-588 of cloud-init.go). user-data contains the cloud config that users specify when creating VMs, and meta-data contains instance data generated by Harvester (this is invisible to the user) such as the instance ID and machine name, which is exactly what I’m looking for in this use case. In my testing this meta-data cloud-init “data source” gets consumed correctly by other OSes such as the Tumbleweed cloud image, setting it’s hostname to whatever the VM name is in Harvester, so I thought I could simply point an Elemental derived OS at this config and be fine, except looking at the cd-rom provider in the elemental-toolkit this is hard coded to only look at files called “user-data” or “config”. I can therefore point to the cloud-init drive attached to the VM, but not the specific file within.

Describe the solution you'd like
Would there be appetite for adding “meta-data” to this list of strings given this seems to be a standard file name for cloud-init systems, or a more generic solution such as providing a mechanism for also specifying a path with the cd-rom provider?

Describe alternatives you've considered
Manually setting the hostname of Elemental VMs

Additional context
Slack thread: https://rancher-users.slack.com/archives/C028DVCAYLD/p1719215874515729

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
Status: 💡 Backlog
Development

No branches or pull requests

2 participants