[PR #1564] [MERGED] ensure online status and route changes are propagated #2184

Closed
opened 2025-12-29 03:20:07 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/juanfont/headscale/pull/1564
Author: @kradalby
Created: 9/28/2023
Status: Merged
Merged: 12/9/2023
Merged by: @kradalby

Base: mainHead: 1561-online-issue


📝 Commits (10+)

📊 Changes

40 files changed (+3140 additions, -827 deletions)

View changed files

.github/workflows/test-integration-v2-TestHASubnetRouterFailover.yaml (+67 -0)
.github/workflows/test-integration-v2-TestNodeOnlineLastSeenStatus.yaml (+67 -0)
📝 .gitignore (+1 -0)
📝 CHANGELOG.md (+2 -0)
cmd/build-docker-img/main.go (+0 -47)
📝 cmd/headscale/cli/nodes.go (+1 -1)
📝 flake.nix (+1 -1)
📝 go.mod (+1 -1)
📝 hscontrol/app.go (+15 -16)
📝 hscontrol/auth.go (+67 -44)
📝 hscontrol/db/db.go (+4 -2)
📝 hscontrol/db/node.go (+111 -77)
📝 hscontrol/db/node_test.go (+2 -1)
📝 hscontrol/db/routes.go (+318 -135)
📝 hscontrol/db/routes_test.go (+372 -137)
📝 hscontrol/derp/server/derp_server.go (+8 -1)
📝 hscontrol/grpcv1.go (+23 -6)
📝 hscontrol/mapper/mapper.go (+120 -17)
📝 hscontrol/mapper/mapper_test.go (+0 -7)
📝 hscontrol/mapper/tail.go (+11 -5)

...and 20 more files

📄 Description

This is an attempt to address #1561.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/juanfont/headscale/pull/1564 **Author:** [@kradalby](https://github.com/kradalby) **Created:** 9/28/2023 **Status:** ✅ Merged **Merged:** 12/9/2023 **Merged by:** [@kradalby](https://github.com/kradalby) **Base:** `main` ← **Head:** `1561-online-issue` --- ### 📝 Commits (10+) - [`2e5ba99`](https://github.com/juanfont/headscale/commit/2e5ba9924b21fb05dc8bb6a90d5141e68707a85a) add vscode to gitignore - [`b1d642c`](https://github.com/juanfont/headscale/commit/b1d642c5512c5eaa6e08e6839ad8931573cbd276) remove unused image builder - [`81889da`](https://github.com/juanfont/headscale/commit/81889daa8a7457ce07f5a8fe0018cdb1ed128ba0) Rework state and online system - [`1b895c0`](https://github.com/juanfont/headscale/commit/1b895c09b7f8600e2d73da6cc98e999a3ba04008) flake hash update - [`83560e4`](https://github.com/juanfont/headscale/commit/83560e4d2ca96a9c487b8ab1a3b220afe4cfe47d) update changelog - [`495ff53`](https://github.com/juanfont/headscale/commit/495ff53573d15eae9d403018035e17a2a4275992) update nodes if services are changed - [`979569c`](https://github.com/juanfont/headscale/commit/979569c3c2542f1b1bf1503138f4f2b488149489) fix save node when routes/services - [`817fd3d`](https://github.com/juanfont/headscale/commit/817fd3dd7fb3da38b8a4660c90d78bd495209ef8) more debugging - [`70c1017`](https://github.com/juanfont/headscale/commit/70c1017bf493a206d7a67ec00a8def9d69df0649) only check online status if offline - [`af3c097`](https://github.com/juanfont/headscale/commit/af3c097e04432906db243139ba663bff734cf69e) fix test ### 📊 Changes **40 files changed** (+3140 additions, -827 deletions) <details> <summary>View changed files</summary> ➕ `.github/workflows/test-integration-v2-TestHASubnetRouterFailover.yaml` (+67 -0) ➕ `.github/workflows/test-integration-v2-TestNodeOnlineLastSeenStatus.yaml` (+67 -0) 📝 `.gitignore` (+1 -0) 📝 `CHANGELOG.md` (+2 -0) ➖ `cmd/build-docker-img/main.go` (+0 -47) 📝 `cmd/headscale/cli/nodes.go` (+1 -1) 📝 `flake.nix` (+1 -1) 📝 `go.mod` (+1 -1) 📝 `hscontrol/app.go` (+15 -16) 📝 `hscontrol/auth.go` (+67 -44) 📝 `hscontrol/db/db.go` (+4 -2) 📝 `hscontrol/db/node.go` (+111 -77) 📝 `hscontrol/db/node_test.go` (+2 -1) 📝 `hscontrol/db/routes.go` (+318 -135) 📝 `hscontrol/db/routes_test.go` (+372 -137) 📝 `hscontrol/derp/server/derp_server.go` (+8 -1) 📝 `hscontrol/grpcv1.go` (+23 -6) 📝 `hscontrol/mapper/mapper.go` (+120 -17) 📝 `hscontrol/mapper/mapper_test.go` (+0 -7) 📝 `hscontrol/mapper/tail.go` (+11 -5) _...and 20 more files_ </details> ### 📄 Description This is an attempt to address #1561. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 03:20:07 +01:00
adam closed this issue 2025-12-29 03:20:07 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#2184