tink-cli and boots model confusion about the source of the hostname property #550
Labels
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
kind/bug
Categorizes issue or PR as related to a bug.
priority/important-soon
Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Expected Behaviour
Expected that
tink hardware get
would get thehostname
value from the same place as Boots.Current Behaviour
While trying to understand why Boots was not returning the hostname to the worker I've probably found some model confusion about where the hostname should be configured from.
At some point, this was the working hardware definition with the hostname set at
.network.interfaces.dhcp.hostnam
(I've trimmed it a bit to make it fit this issue; see the full version if required):But with recent Boots, we must set the hostname at
.metadata.instance.hostname
:But doing so has a collateral effect of making
tink hardware get
return an emptyhostname
, e.g.:Which was unexpected, hence this bug report.
Possible Solution
Either fix Boots or tink-cli.
Steps to Reproduce (for bugs)
Your Environment
Operating System and version (e.g. Linux, Windows, MacOS): Ubuntu 20.04
How are you running Tinkerbell? Vagrant & Libvirt.
Link to your project or a code example to reproduce issue: https://github.com/rgl/rpi-tinkerbell-vagrant
The text was updated successfully, but these errors were encountered: