my-homelab-configs/apps/opsproof/overlay/handlers/demo/show.go

36 lines
2.8 KiB
Go

package demo
import (
"go.laravel.com/inertia"
"go.laravel.com/web"
)
func Show(*web.Request) *web.Response {
return inertia.Render("Demo", inertia.Props{
"demo": inertia.Props{
"scope": "opi5", "target": "k3s-storage", "outcome": "validated",
"finding": "The Orange Pi K3s service failed after its USB SSD disappeared and the stale ext4 mount was remounted read-only.",
"diagnostic": "The mounted runtime still referenced the vanished block-device identity. The SSD later reappeared under a different Linux device name, so its name alone was not trusted.",
"proposal": "Run the constrained doctor opi5 --repair-k3s workflow only after matching the reappeared filesystem to the pinned K3s CA and cluster identity.",
"rollback": "Keep K3s stopped and leave the replacement mount disconnected if the filesystem UUID, pinned CA, or live cluster identity does not match.",
"validation": "The guarded workflow verified the pinned CA, remounted the intended filesystem read-write, started K3s, confirmed the pinned cluster identity, and observed the Orange Pi node Ready.",
"evidence": []inertia.Props{
{"id": "C01", "status": "fail", "check": "K3s service", "summary": "Service exited while its runtime filesystem was unavailable"},
{"id": "C02", "status": "fail", "check": "Runtime mount", "summary": "Stale ext4 mount was read-only and its original block device was absent"},
{"id": "C03", "status": "warn", "check": "Filesystem evidence", "summary": "Kernel journal recorded repeated ext4 directory read errors"},
{"id": "C04", "status": "ok", "check": "Identity validation", "summary": "Reappeared SSD contained the pinned K3s CA and expected cluster identity"},
{"id": "C05", "status": "ok", "check": "Post-change validation", "summary": "Filesystem was read-write, K3s was active, and the node was Ready"},
},
"fiveWhys": []string{
"K3s was unavailable because its service could not use the runtime directory.",
"The runtime directory was unavailable because the backing ext4 mount was stale and read-only.",
"The mount became stale because the USB SSD disappeared while the kernel retained the old mounted device identity.",
"The returning SSD received a different Linux device name, so an automatic name-based remount would have been unsafe.",
"Recovery must identify storage by durable filesystem and cluster identity, then validate the service and node before declaring success.",
},
"recommendation": "Keep the identity-pinned recovery in Jeannie, alert on read-only K3s storage, and investigate the USB power, cable, enclosure, and host-controller path if the disconnect recurs.",
"notice": "Sanitized fixture only. This public route has no Jeannie client, credentials, approval, or execution capability.",
},
})
}