Skip to content

fix: teardown removes the lease file the daemon writes - #20

Merged
CMGS merged 2 commits into
mainfrom
fix/teardown-lease-path
Sep 3, 2026
Merged

fix: teardown removes the lease file the daemon writes#20
CMGS merged 2 commits into
mainfrom
fix/teardown-lease-path

Conversation

@CMGS

@CMGS CMGS commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Teardown deleted <state-dir>/leases.json while the daemon persisted leases at its constant default /var/lib/cocoon/net/leases.json, so a custom --state-dir left the lease file behind. The default stays the constant path, independent of --state-dir (vk-cocoon's reader defaults to the same file); teardown now removes exactly that file, and the daemon creates the lease directory at start since init only creates the state dir. --lease-file still overrides the daemon and a custom file is kept on teardown.

Also: the enis: dry-run row, the reason volcengine Adopt is a no-op, and a restating comment in platform/ip_test.go.

Replaces #19, which predated the docs correction on main.

Gates: make lint 0 issues on GOOS=linux and darwin, make fmt-check, asl ./... on both GOOS, go test -race -count=1 ./....

CMGS added 2 commits September 3, 2026 14:47
Teardown deleted <state-dir>/leases.json while the daemon persisted leases at its constant default /var/lib/cocoon/net/leases.json, so a custom --state-dir left the lease file behind. The default stays the constant path, independent of --state-dir because vk-cocoon's reader defaults to the same file; teardown removes exactly that file and the daemon creates its directory at start, since init only creates the state dir.
@CMGS
CMGS merged commit a7dfdc5 into main Sep 3, 2026
2 checks passed
@CMGS
CMGS deleted the fix/teardown-lease-path branch September 3, 2026 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant