Repository navigation
devcloud 0.9.0: a kept or adopted host's tailnet node is removed when it leaves for good (board #118) - #342
Merged
Merged
Conversation
… a deleted host's (WIP) The departure, the spot reclaim and the release record the held node's id before the logout and remove it through the API right after (remove-node), through the rejoin's shared removal loop. The driver removes what the API still lists of a host it deleted or whose release it verified: tag:devcloud and the exact hostname, by node id. Driver tests not yet written. Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
… it leaves for good The departure, the spot reclaim and the release remove the host's own non-ephemeral node right after the logout, through #115's removal loop. The driver removes what the Tailscale API still lists of a VM it deleted or an adoption whose release it verified: tag:devcloud and the exact hostname, by node id, named on the deletion's line. Spec §4.2-§4.4, §6.5, Out of scope and Decision Log; README. Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
…me is spent The budget was checked only on entry; the secret read, token, listing and each node deletion now check it first, and nodes not reached are named in the note. Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
A response that closes before its Content-Length raises IncompleteRead, an HTTPException and not an OSError, which escaped tailnet.remove. Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
…remove never raises Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Board #118 (the api board; no closing line). It builds on #115 (PR #337): a kept or adopted devcloud host no longer leaves its tailnet node listed and expired when it leaves for good.
devcloud depart, the spot reclaim anddevcloud releaseread the held node's id before the logout and record it as pending intailnet.json; ephemeral nodes are skipped, since a logout removes those. Right after the logout, a new stepremove-noderemoves the pending ids through the Tailscale API, using SCRATCH drain repro (dp#10) — wontfix on sight #115's removal loop, factored out assteps.remove_pending. The release does this before it removes its units and credentials. A failed removal is recorded, and the run goes on.down,down --force, the reaper), and after an adopted machine's verified release,driver/tailnet.pyremoves whatever the API still lists of that host:tag:devcloudplus ahostnameexactly equal to the host's name, and removes each match by node id, named on the deletion's line.Report:
docs/doperpowers/plans/2026-10-22-devcloud-node-removal-report.md.Validation Evidence
ci-gateon fb58bc1GREEN https://github.com/SSFSKIM/doperpowers/actions/runs/39736153551, all 8 gates PASScd devcloud/tests/unit && python3 -m unittest discover -s .Ran 709 tests … OKdownleaves no node, after lease→keepup --keep --confirmed, thenlease 2h, thenlease keep --confirmed, thendown dc-nrm-09a9, with the API's device list polled every 3 sremove-nodehad removed itdown --forceon an unreachable kept VM removes its node through the driverdc-unr-9284, thendown(refused), thendown --forceadopt … --confirmedof a hand-made Ubuntu 24.04 e2-small, thendown dc-adp-ad0f, with the API polledlifecycle.logshows status read, logout, status read, then the seed's token (the client fetch), then the unit removal; tailscale "Logged out."gcloud compute instances list, the API's device listdc-nodes, from 06:30Ztest_departure(DepartNodeRemovalTest, ReleaseNodeRemovalTest),test_driver_tailnet,test_driver_adoptReleaseRemovesTheNodeTestdoperpowers:reviewer-high, 3 roundsThe live runs used the person's approvals, given through the main session on 2026-10-22: "Start, approve both (Recommended)" for one kept VM and one adoption, and "Approve (Recommended)" for a second kept VM, used for the unreachable case.
Residue
None.
Sminos-Session: devcloud setup#639ca648 (macbook on macbook)