4bd0909f2b
Phase B (hub half) of the restore-test warning fix. The agent v0.7.0 now passes a restore-test that emitted a benign start advisory (systemd-nesting) and carries the warning text on the wire. - hostRestoreTest gains warnings + warnings_recognized mirror fields (omitempty; absent recognized => false => louder unrecognized path) - ingest logs [INFO] passed WITH WARNINGS (recognized), [WARN] for unrecognized; FAILED still [WARN] - golden restore_tests[0] gains the keys, byte-identical with felhom-agent (sha256 e6999d77...); bidirectional key-set contract test round-trips them - no dashboard widget: no host-domain dashboard surface exists yet (log+persist only, as with pbs_snapshots) -- deferred to slice 10 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
135 lines
3.6 KiB
JSON
135 lines
3.6 KiB
JSON
{
|
|
"host_id": "demo-host-01",
|
|
"reported_at": "2026-06-08T12:00:00Z",
|
|
"agent_version": "0.3.1",
|
|
"host": {
|
|
"node": "demo-felhom",
|
|
"cpu_percent": 3.2,
|
|
"memory_total_bytes": 16777216000,
|
|
"memory_used_bytes": 4194304000,
|
|
"memory_percent": 25,
|
|
"disk_total_bytes": 152000000000,
|
|
"disk_used_bytes": 30000000000,
|
|
"disk_percent": 19.7,
|
|
"loadavg": ["0.10", "0.20", "0.15"],
|
|
"uptime_seconds": 86400
|
|
},
|
|
"guests": [
|
|
{
|
|
"vmid": 100,
|
|
"name": "felhom-cust-acme",
|
|
"status": "running",
|
|
"controller_version": "",
|
|
"spec": { "cores": 2, "memory_bytes": 2147483648, "disk_bytes": 21474836480 }
|
|
},
|
|
{
|
|
"vmid": 101,
|
|
"name": "felhom-cust-beta",
|
|
"status": "stopped",
|
|
"controller_version": ""
|
|
}
|
|
],
|
|
"storage_targets": [
|
|
{
|
|
"name": "local-lvm",
|
|
"type": "lvmthin",
|
|
"durable_id": "pve/data",
|
|
"state": "attached",
|
|
"reachable": true,
|
|
"total_bytes": 100000000000,
|
|
"used_bytes": 42000000000,
|
|
"avail_bytes": 58000000000,
|
|
"used_fraction": 0.42,
|
|
"content": "rootdir,images",
|
|
"mount_path": "",
|
|
"backing_device": "",
|
|
"class_hint": "fast",
|
|
"role": "",
|
|
"thin_pool": { "data_used_fraction": 0.42, "metadata_used_fraction": null },
|
|
"smart": {
|
|
"health": "UNKNOWN",
|
|
"temperature_c": null,
|
|
"power_on_hours": null,
|
|
"reallocated_sectors": null,
|
|
"pending_sectors": null,
|
|
"offline_uncorrectable": null,
|
|
"critical_warning": null,
|
|
"media_errors": null,
|
|
"percentage_used": null
|
|
}
|
|
},
|
|
{
|
|
"name": "usb-backup",
|
|
"type": "usb",
|
|
"durable_id": "uuid:0fc63daf-8483-4772-8e79-3d69d8477de4",
|
|
"state": "attached",
|
|
"reachable": true,
|
|
"total_bytes": 2000000000000,
|
|
"used_bytes": 500000000000,
|
|
"avail_bytes": 1500000000000,
|
|
"used_fraction": 0.25,
|
|
"content": "backup",
|
|
"mount_path": "/mnt/usb-backup",
|
|
"backing_device": "/dev/sdb1",
|
|
"class_hint": "slow",
|
|
"role": "",
|
|
"smart": {
|
|
"health": "UNKNOWN",
|
|
"temperature_c": null,
|
|
"power_on_hours": null,
|
|
"reallocated_sectors": null,
|
|
"pending_sectors": null,
|
|
"offline_uncorrectable": null,
|
|
"critical_warning": null,
|
|
"media_errors": null,
|
|
"percentage_used": null
|
|
}
|
|
}
|
|
],
|
|
"backups": [
|
|
{
|
|
"target_id": "local",
|
|
"vmid": 9001,
|
|
"archive": "local:backup/vzdump-lxc-9001-2026_06_09-11_00_00.tar.zst",
|
|
"mode": "snapshot",
|
|
"crash_consistent": true,
|
|
"size_bytes": 524288000,
|
|
"success": true,
|
|
"started_at": "2026-06-09T11:00:00Z",
|
|
"duration_seconds": 42.5,
|
|
"uncovered_volumes": ["/mnt/bulk"]
|
|
}
|
|
],
|
|
"restore_tests": [
|
|
{
|
|
"source_archive": "local:backup/vzdump-lxc-9001-2026_06_09-11_00_00.tar.zst",
|
|
"source_tier": "local",
|
|
"scratch_vmid": 990000,
|
|
"pass": true,
|
|
"verified": "boot+running",
|
|
"tested_at": "2026-06-09T11:05:00Z",
|
|
"duration_seconds": 38.2,
|
|
"warnings": [
|
|
"WARN: Systemd 257 detected. You may need to enable nesting."
|
|
],
|
|
"warnings_recognized": true
|
|
}
|
|
],
|
|
"pbs_snapshots": [
|
|
{
|
|
"namespace": "root",
|
|
"backup_type": "ct",
|
|
"backup_id": "9001",
|
|
"backup_time": "2026-06-09T14:18:33Z",
|
|
"size_bytes": 2518889256,
|
|
"owner": "felhom@pbs!n100",
|
|
"protected": false,
|
|
"encrypted": true,
|
|
"verify_state": "ok",
|
|
"verify_upid": "UPID:dooplex:00034582:5269BDD7:00000005:6A282176:verify:felhom-spike:felhom@pbs!n100:"
|
|
}
|
|
],
|
|
"cloudflared": { "status": "active" },
|
|
"audit_tail": []
|
|
}
|