networkmanager: the watcher's health is its unit's state
The sign-in process is judged by its unit being active, on the machine without the bus, and NetworkManager's service keeps no state and no health again. The watcher exits non-zero when it cannot subscribe once the system bus came back, so its unit shows failing; uplink_health stays a tool that reads and no longer gives the names again. Builds: design 08 sign-in-page §11, §13, §14, §23, §24, §25, §27; lead answer C-2c (hq 6752a5cf)
This commit is contained in:
@@ -72,8 +72,7 @@ filtered to `mesh.seat.node-uplink.event.*.<node>`, their time in `at`.
|
||||
|
||||
Where a module holds `node-resolver` on this node (the assignments say which), the bundle calls its `uplink-names`
|
||||
with the check address's host name, so NetworkManager's own check resolves through the network it tests: at its start,
|
||||
when `check-address` changes, when its bus connection comes back, when the node-engine says that holder runs, and at
|
||||
the health look when the resolver no longer holds the names. With no holder it calls nothing, and that is no failure.
|
||||
when `check-address` changes, when its bus connection comes back and when the node-engine says that holder runs. With no holder it calls nothing, and that is no failure.
|
||||
|
||||
## Tools
|
||||
|
||||
@@ -83,6 +82,10 @@ the health look when the resolver no longer holds the names. With no holder it c
|
||||
| `uplink_names_again` | call `uplink-names` now |
|
||||
| `uplink_rating_again` | make the watcher subscribe again and act on the rating now |
|
||||
| `uplink_publish_again` | publish the kept events now |
|
||||
| `uplink_health` | the watcher's health: unhealthy while its socket does not answer, while it is not subscribed, or while the last `uplink-names` call stands failed |
|
||||
| `uplink_health` | whether the reaction works: unhealthy while the watcher's socket does not answer, while it is not subscribed, or while the last `uplink-names` call stands failed; a tool to read, not a health check |
|
||||
|
||||
The watcher's health is judged only once the tool runner has reached the bus, since its health tool is the bundle's.
|
||||
**The watcher's health is its unit's state** (`networkmanager-sign-in` active), judged on the machine without the bus,
|
||||
so it holds behind a sign-in page. When the system bus comes back and the watcher cannot subscribe on it again, it
|
||||
writes the reason to its journal and exits non-zero, so its unit shows failing and the service manager restarts it.
|
||||
`uplink_health` is a tool, not a health check; the watcher not subscribed and a failed `uplink-names` call are also
|
||||
shown by `uplink_sign_in` and written to the journal.
|
||||
|
||||
Reference in New Issue
Block a user