[Not bug, but Enhancement]Rename Machine won't change the name's record in [nodes ls] #276

Closed
opened 2025-12-29 01:25:48 +01:00 by adam · 3 comments
Owner

Originally created by @1itt1eB0y on GitHub (Jun 16, 2022).

I changed my kali(ID:2) to pi.
It says success and it was changed in my clients.
But it is still the old name in headscale's command output.
图片
图片

Originally created by @1itt1eB0y on GitHub (Jun 16, 2022). I changed my kali(ID:2) to pi. It says success and it was changed in my clients. But it is still the old name in headscale's command output. ![图片](https://user-images.githubusercontent.com/29831189/174085837-d67270ed-3e4a-48d9-bf7c-dbbe085858d3.png) ![图片](https://user-images.githubusercontent.com/29831189/174086013-4b30d905-e186-44bb-ba65-d8b714e500a2.png)
adam added the bug label 2025-12-29 01:25:48 +01:00
adam closed this issue 2025-12-29 01:25:49 +01:00
Author
Owner

@1itt1eB0y commented on GitHub (Jun 16, 2022):

I noticed there is a given_name in DB, so why not make it list in the output of cli?

@1itt1eB0y commented on GitHub (Jun 16, 2022): I noticed there is a `given_name` in DB, so why not make it list in the output of cli?
Author
Owner

@huskyii commented on GitHub (Jul 22, 2022):

Observe same issue, it's pretty confusing, I'd suggest add a Hostname column in the nodes ls outputs.
And the mapping is:
machine.Name -> Hostname
machine.GivenName -> Name

I've implemented this enhancement, @kradalby if you think this is ok, I can open a PR

@huskyii commented on GitHub (Jul 22, 2022): Observe same issue, it's pretty confusing, I'd suggest add a `Hostname` column in the `nodes ls` outputs. And the mapping is: machine.Name -> Hostname machine.GivenName -> Name I've implemented this enhancement, @kradalby if you think this is ok, I can open a PR
Author
Owner

@kradalby commented on GitHub (Jul 22, 2022):

Yes please

@kradalby commented on GitHub (Jul 22, 2022): Yes please
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#276