Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

Node is not given a hostname on first boot after install #31

Closed
agracey opened this issue May 21, 2022 · 5 comments
Closed

Node is not given a hostname on first boot after install #31

agracey opened this issue May 21, 2022 · 5 comments

Comments

@agracey
Copy link

agracey commented May 21, 2022

You need an extra reboot for the hostname to get set. This causes issues with the k3s node name getting changed.

I'm not sure this is the right place to file this ticket.

@kkaempf kkaempf changed the title Node is note given a hostname on first boot after install Node is not given a hostname on first boot after install May 23, 2022
@kkaempf
Copy link
Contributor

kkaempf commented May 23, 2022

Where and when are you trying to set the hostname ?

@kkaempf
Copy link
Contributor

kkaempf commented May 23, 2022

We now usually put

spec:
  cloudConfig:
    hostname: ros-node-{{ trunc 4 .MachineID }}

into the machine registration to have the hostname set during initial deployment.

Maybe this should be made standard in all examples ? (It certainly needs more documentation 😉)

@agracey
Copy link
Author

agracey commented May 23, 2022

I hadn't set anything so was just taking the default rancher-xxxxx that got added. I'll add the specific line to see if it changes the behavior in my set up.

@agracey
Copy link
Author

agracey commented May 24, 2022

Confirmed this is not an issue when the hostname is set in the cloudConfig settings

@agracey agracey closed this as completed May 24, 2022
@mudler
Copy link
Contributor

mudler commented May 24, 2022

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants