Closed mueller-tobias closed 1 year ago
The vSphere driver from rancher creates an iso image that contains the user-data and the meta-data file. The meta-data file contains the name that was taken by rancher for the vm.
As far as i know on ionos you can only supply the cloud init user-data and no meta-data therefore you've to inject a snippet, that will configure the hostname attribute in the user-data of the cloud-config. Otherwise #76 is not possible, because we can't identify the vm when our hostname is ubuntu, but the vm in ionos is named master1 for example
This should be fixed with 6.1.4, please reopen the issue if you have any more problems
Description
When I roll out a VM with the driver, I expect the hostname to be set accordingly after the rollout. Currently the VM has always the hostname ubuntu and not the name that's used by rancher
Expected behavior
After deployment, the VM should have the hostname that is stored as a name in Rancher
Environment
Rancher Machine version:
Docker Machine Driver Ionos Cloud version:
OS:
How to Reproduce
Deploy a VM the Driver, for example with the ubuntu-20.04 image and connect to the command line. The hostname is always ubuntu and not the name that rancher has used for the vm.
Error and Debug Output