Просмотр исходного кода

docs(changelog): record the networks, backup and partial update fixes (#1935, #1936, #1937) (#1941)

Nacho 4 недель назад
Родитель
Сommit
52e703e9f8
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      CHANGELOG.md

+ 6 - 0
CHANGELOG.md

@@ -15,6 +15,12 @@ An inventory mode per unit decides what NetPulse expects from it (#1917). `auto`
 
 ### Fixed
 
+- The networks view reads the unit configuration again (#1936). The UCI probe filtered out the section type lines (`network.lan=interface`) and the parser only accepts sections that declare one, so every named interface was skipped and the card added in #1889 stayed empty on every unit, agent or SSH. The filter keeps them now, and a new test takes the pattern from the command itself and applies it to a capture of a real unit, so editing it breaks the suite instead of passing against a fixture that hand-writes the line the command could never produce.
+
+- The SSH config backup works on stock images (#1935). The archive was piped through `base64`, an applet the factory OpenWrt image does not ship, so the feature answered `ash: base64: not found` and stored nothing on units that never install extra packages. The tarball now travels raw behind a marker line, which is safe because the pool reads stdout as bytes, and the server checks the gzip header before storing it. Verified on an OpenWrt 25.12.6 unit with no agent: manual backup of 2.9 MB and the weekly pass copying the same unit over SSH.
+
+- A partial router update keeps what it was not sent (#1937). `gateway` and `agent_only` were plain booleans while every other field was a pointer, so a request that changed one setting read the missing flags as `false` and cleared them, quietly demoting the gateway or dropping the agent-only mode. Both are optional now, which is what the store already expected.
+
 - The scheduled config backup now covers units that only answer over SSH (#1924). The weekly tick walked the connected agents and sent them the command, so a unit that cannot run the agent could be backed up by hand but never on schedule, which is the case the schedule exists for. The same pass runs the SSH path afterwards for every OpenWrt unit that is not agent-only and that its own agent did not already serve, and the archive lands where the firmware page already lists it. One unreachable unit logs a line and the pass continues with the rest, the week is only marked as done when at least one unit was copied, and the SSH pass is spaced ten minutes apart so a unit that is down is not dialled twice a minute.
 
 - An agent install keeps its output even when the script fails (#1894). The install script narrates everything it does on stderr, error messages included, and the SSH pool returned stdout only and an empty string whenever the command exited non-zero, so a successful install left no line in the journal and a failed one still arrived as "exit status 1" with the reason thrown away one layer below the handler that had just been fixed to keep it. Script runs now merge both streams and return what was captured whether they succeed or fail, uninstall writes to the journal as well, and the script says what it is doing on stdout, so a normal install leaves a trace in the journal and in the box on the page.