Coder Social home page Coder Social logo

Ability to remove a node about headscale HOT 11 CLOSED

juanfont avatar juanfont commented on July 24, 2024
Ability to remove a node

from headscale.

Comments (11)

juanfont avatar juanfont commented on July 24, 2024

Done! Although you might have to reload headscale for changes to take effect. We will be working on that next.

from headscale.

viq avatar viq commented on July 24, 2024

Seems also the same is true for ephemeral nodes - they get cleaned up only on headscale restart.

from headscale.

juanfont avatar juanfont commented on July 24, 2024

from headscale.

viq avatar viq commented on July 24, 2024

from headscale.

juanfont avatar juanfont commented on July 24, 2024

from headscale.

viq avatar viq commented on July 24, 2024

I just verified with tailscaled on a couple machines connecting directly to headscale's port 8000, and even when headscale logged removal of the ephemeral node, all other machines still show it listed in tailscale status. They'll get removed if I restart tailscaled and it talks to headscale for updates, but without restarts/re-connections those nodes do remain listed.

from headscale.

viq avatar viq commented on July 24, 2024

from headscale.

juanfont avatar juanfont commented on July 24, 2024

I will tag a new release as soon as #63 is merged. Apologies for the late response, busy week :(

from headscale.

viq avatar viq commented on July 24, 2024

from headscale.

juanfont avatar juanfont commented on July 24, 2024

This is fixed now :)

from headscale.

djkazic avatar djkazic commented on July 24, 2024

I'm seeing this behavior on headscale 0.22.3.

I'd register a node A, then once I see it in headscale nodes list, remove it with headscale nodes delete -i 5. Confirmed it's gone from the list, but tailscale status on my other machines would still have it there, and it could continue to network.

Only when I restart the tailscale daemon does the connection drop. If I restart the tailscale app of the removed node, similarly, it updates then.

I looked at the code and there doesn't seem to be any polling now, but rather usage of a mapper. Does that mapper suffer from the same issue as what was seen here?

Context: I wanted to write some code that would be able to eject a node from the tailnet, but this doesn't seem possible.

Update: figured out what I did wrong. I should have been calling expire prior to deleting the machines.

from headscale.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.