Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,32 @@ roadmap as it read that day, and the *Done* entries keep the shape they had
there. `check_docs.py` does not check this file, for the reason its module
docstring gives: it is a record, not a claim about now.

## 2026-11-24

- **Correction to the 2026-11-23 entry on `mjolnir`'s eight silent days: the
card's event log gives the cause, and it is the move into the 32U rack
([#919](https://github.com/Gerrrt/HomeLab/issues/919)).** That entry said
the cause was not established and the log had not been read. The owner read
it on 2026-11-24. The card's clock keeps UTC−7, and the times below are
UTC.
- **2026-10-30 01:34.** All three outlet groups were commanded off,
sequenced, and the output was off at 01:36. No web or SSH user was
logged in to the card. Everything on the UPS lost power with it, which
is the silence Prometheus measured from about 01:40.
- **2026-11-04 16:29.** The card cold-started, so the UPS had been
unplugged. Its output came back on at 16:43.
- **2026-11-05 to 2026-11-06.** The card had an IPv4 lease from 20:56 on
2026-11-05 and lost it at 06:56 the next morning. It had a lease again
from 20:41, and Prometheus read it from about 22:30.
- **Still open.** NUT on `morpheus` logged *Driver not connected* until
20:59 on 2026-11-07, about 22 hours after the card answered SNMP again.
The card's log does not explain that gap.
- **Other card settings recorded in `hardware.md`.** The battery date is
right: the card stores a month and year only. SSH stays on, input
sensitivity is now medium, and group 1's load-shedding values are set so
they cannot fire. Group 1's overload shed and every group's delays are
still not read.

## 2026-11-23

- **`update-the-ups-firmware.md` is written, for #1698.** Reading the release
Expand Down
21 changes: 16 additions & 5 deletions docs/hardware.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,12 @@ left, went to the cable modem on 2026-11-22.
**The UPS's outlet groups, read at the rack on 2026-11-07:** the PDU is on
group 1, both laptops' chargers on group 2, and the MokerLink on group 3. The
Smart-UPS X's card can switch and sequence each group separately, so the PDU
— and with it every host but the laptops — is one group. **Each group's
turn-off, turn-on and load-shedding settings are not read yet**: check them
against the shutdown in
— and with it every host but the laptops — is one group. **Group 1's load
shedding was read on 2026-11-24**: shed after 32767 seconds on battery, and
shed below 0 seconds of runtime remaining. Those are the far ends of their
ranges, so neither can cut the PDU before the pack runs out, ticked or not.
**Still not read:** whether group 1 sheds when the UPS is overloaded, and each
group's turn-off and turn-on delays. Check them against the shutdown in
[ADR-0049](adr/0049-shut-down-on-the-ups-from-a-nut-server-on-the-firewall.md)
and the power-up order in the move runbook's §7, and write them here.
[`shut-down-on-the-ups.md`](runbooks/shut-down-on-the-ups.md) reads them
Expand Down Expand Up @@ -361,6 +364,13 @@ subscription, so its free ceiling is 2.5.x, and this model can't update the
UPS with its output on. [`update-the-ups-firmware.md`](runbooks/update-the-ups-firmware.md)
is the procedure for both, tracked in
[#1698](https://github.com/Gerrrt/HomeLab/issues/1698). The card answers HTTPS and SSH; its HTTP port is closed.
SSH stays on by the owner's decision of 2026-11-23. **Input sensitivity is
medium**, lowered from high by 2026-11-24. The card's event log gives the
reason. It shows three transfers to battery since 2026-10-29, and the UPS
gave the same cause for all three: distorted input, not a cut. They lasted
279 seconds on 2026-10-29, 1 second on 2026-11-07 and 82 seconds on
2026-11-21. The card's clock keeps UTC−7 all year, so since 2026-11-01 its
log reads an hour ahead of local time.

## WAN

Expand Down Expand Up @@ -395,8 +405,9 @@ the runbook rather than backed up.
- APCRBC115 replacement battery cartridge for the APC, fitted 2026-08-28,
proven by a passing self-test the same day and under a biweekly schedule on
the card ([#93](https://github.com/Gerrrt/HomeLab/issues/93)). The card's
`upsBasicBatteryLastReplaceDate` still reads `08/15/2026` and wants resetting
to the fit date — it is the only record of the pack's age
*Last Battery Replacement* takes a month and year only. It holds August
2026, the month the pack went in, and is the only record of the pack's age.
SNMP and NUT show it with a filler day, as `08/15/2026`
Comment thread
Gerrrt marked this conversation as resolved.
Resolved
- APC AP9335T temperature probe on the UPS card's universal I/O port, for rack
ambient at the bottom of the rack. Bought and plugged in by 2026-11-23, read
over the card's SNMP from then
Expand Down
18 changes: 8 additions & 10 deletions docs/runbooks/fit-the-ups-battery.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,11 @@ un-silenced by hand at the right moment.**
> `scripts/snmp-walk.sh --device mjolnir 1.3.6.1.4.1.318.1.1.1.7.2` is still how
> you read the card directly when one of those fires.
>
> **One reading that was not reset.** `upsBasicBatteryLastReplaceDate` is
> `08/15/2026` — thirteen days before the pack went in, on a date when this
> card's own self-test was still aborting over an empty bay. Step 2, item 5 asks
> for that date to come back reset and it did not, so the card's battery-age
> accounting, and the replacement date it projects from it, are keyed to
> something that did not happen. Harmless today; wrong in four years, when it is
> the only record of how old the pack is.
> **The replacement date is right.** `upsBasicBatteryLastReplaceDate` reads
> `08/15/2026`, which read as thirteen days before the pack went in. It isn't
> wrong: the card's *Last Battery Replacement* field stores a month and year
> only (read at the card on 2026-11-24), and SNMP and NUT add a filler day.
> August 2026 is the fit month, so the field is the record of the pack's age.
>
> The shelf and the switch move (step 2, items 1–3) were not done that day;
> they were done on 2026-09-08, which closed
Expand Down Expand Up @@ -187,8 +185,9 @@ the cases that genuinely need the wire, and reads the credential from SOPS.
powered off; [ADR-0034](../adr/0034-run-the-sensitive-tier-on-the-prodesk-and-make-it-the-spare-hardware.md)
makes that box the sensitive tier's host instead, and
[#404](https://github.com/Gerrrt/HomeLab/issues/404) decides where it lives.
5. **Fit the APCRBC115 pack** last, per the Smart-UPS front-bezel procedure, and
confirm the card comes back with the battery-replacement date reset.
5. **Fit the APCRBC115 pack** last, per the Smart-UPS front-bezel procedure,
then set *Configuration → UPS → Last Battery Replacement* to the month and
year of the fit. The field takes no day.

## 3. Delete the silence — immediately, not on expiry

Expand Down Expand Up @@ -410,7 +409,6 @@ moved into Done in the same pass, because its third step is now satisfied.
| File | What changes |
| --- | --- |
| `docs/images/ups-power.png` | Re-capture the set with `make screenshots`. The committed image is from 2026-08-22 and shows the original no-battery banner; it needs the decrypted Grafana password, so it is a human step |
| The NMC | Reset `upsBasicBatteryLastReplaceDate`, which still reads `08/15/2026` for a pack fitted on the 28th. A human step at the card's web UI: every SNMP path in this repository reads and none of them writes |

And when the shelf is racked, which is a separate visit and separate issue:

Expand Down
2 changes: 1 addition & 1 deletion docs/runbooks/successor-handover.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ inherits without knowing.
| **The CA key backup goes unproven** | 90 days after the last proof, and immediately after a re-mint | `CaKeyBackupUnproven`, routed to the normal alert channel. The proof is a comparison of public keys against a copy on the offline medium, keyed on the key's fingerprint so a re-minted root starts at never ([`back-up-the-ca-key.md`](back-up-the-ca-key.md)) |
| **Grafana's leaf certificate** | 825 days from issue; the APC card's own certificate expires on its own clock | `TlsCertificateExpiringSoon` at 30 days, `TlsCertificateExpiryImminent` at 7 — read off the served handshake by `blackbox-exporter`, not off a file. Let it lapse and `up{job="grafana"}` goes to 0 as well |
| **The sensitive tier's certificates**, once `trinity` exists | Seven days after step-ca last answered Caddy — every leaf there is renewed automatically and lives a week, so the tier stays up for as long as its CA does ([ADR-0037](../adr/0037-give-the-sensitive-tier-its-own-root-and-issue-beneath-it-over-acme.md)) | Nothing pages on it yet: the estate's expiry rules are sized for 825-day leaves and would fire permanently on seven-day ones, so the tier is deliberately outside them until [#426](https://github.com/Gerrrt/HomeLab/issues/426) lands. Until then a dead step-ca is found by a browser refusing the handshake, a week late |
| **The UPS battery pack** | A pack was fitted 2026-08-28 and passed its self-test; packs are consumables and this one is on a biweekly test schedule | `UpsSelfTestFailed` and `UpsBatteryUnproven` key on the self-test result, which is the single honest signal this card emits — every charge, runtime and alarm value it reports was fabricated while the bay was empty. Two things remain open: the card's test *schedule* is unwatched ([#249](https://github.com/Gerrrt/HomeLab/issues/249)), and `upsBasicBatteryLastReplaceDate` still reads a pre-fit date, so it is not a usable record of the pack's age |
| **The UPS battery pack** | A pack was fitted 2026-08-28 and passed its self-test; packs are consumables and this one is on a biweekly test schedule | `UpsSelfTestFailed` and `UpsBatteryUnproven` key on the self-test result, which is the single honest signal this card emits — every charge, runtime and alarm value it reports was fabricated while the bay was empty. `UpsSelfTestScheduleOff` and `UpsSelfTestStale` watch the test schedule ([#249](https://github.com/Gerrrt/HomeLab/issues/249)). The card's *Last Battery Replacement* holds August 2026, the fit month: it stores a month and year only, and SNMP shows it with a filler day as `08/15/2026` |
| **Mains power to the monitoring path** | Any cut | The rack is on the UPS; the switch carrying `prometheus` and `oracle` is not, so both laptops keep running and go deaf. Stated in [`security.md`](../security.md#threat-model) |
| **Container images going stale** | Continuously, once nobody merges | Dependabot proposes bumps and CI validates them, and convergence deploys a merge within the hour. An unattended estate simply stops receiving updates — nothing alerts on it |
| **The switch's HTTPS leaf certificate** | 2029-01-06 23:51 UTC, read off the switch on 2026-11-06 (issued 2026-10-05). The switch cannot renew it ([ADR-0041](../adr/0041-run-the-crs326-on-routeros-and-keep-neo-and-its-switch-lan.md)) | **Nothing pages on it, by decision.** There is no probe of the switch UI — the switch LAN is closed to VLAN 99 apart from SNMP from `prometheus` and Home Assistant's `api-ssl` ([ADR-0111](../adr/0111-read-the-switch-from-home-assistant-over-api-ssl.md)), and adding one was decided against on 2026-09-23 ([`swap-the-switch.md`](swap-the-switch.md)) — so no expiry rule sees this leaf. You find out when a browser on Hicks refuses `https://10.7.7.2/`. Reissue from the main checkout with `make certs ARGS="--host neo.matrix.elysium --ip 10.7.7.2 --force"`, then import it on the switch and bind `www-ssl` to it as [`swap-the-switch.md`](swap-the-switch.md) §1.4 does. Bind `api-ssl` to it too (`/ip/service/set api-ssl certificate=neo.matrix.elysium`) and rerun [`connect-the-switch-to-home-assistant.md`](connect-the-switch-to-home-assistant.md) §5, because Home Assistant does not verify the certificate and would not notice a lapsed one. In the diary at [`schedule-maintenance.md`](schedule-maintenance.md#what-runs-and-when) |
Expand Down