gates / gates (push) Successful in 6m43s
Spike (read-only probe, tools/physdisk_probe.py): the agent-side walk (partition -> disk, dm/LVM slaves, loop -> backing file) names the right physical disk for one-disk boxes, two disks, two partitions of one disk and a pass-through USB bridge; inside a VM (Tester 1) every disk is "unknown". Today's agent lists whole disks only and calls an empty partition table "data-bearing"; the controller's Tier-2 "different disk" is st_dev. sys_drive is a folder of mp0 (backup=1), so the design gives one-disk boxes a separate internal data place outside the whole-guest copy instead. Draft only; waits on the operator's rulings D1-D6 (16 section 12). 07 section 6.1's stale mp1 cell corrected. Register 163 -> 169. Scratch loop disk and Tester 1 scratch disk removed. Claude-Session: https://claude.ai/code/session_012qRErfCoiTkvDK9N5XHbzb
8 lines
506 B
Bash
8 lines
506 B
Bash
#!/bin/bash
|
|
# agent_read.sh <path...> — READ-ONLY GETs to the agent local API, run ON the PVE host (token never leaves it)
|
|
export LC_ALL=C
|
|
B=/var/lib/felhom-agent/guests/9201/bootstrap/bootstrap.json
|
|
TOK=$(python3 -c "import json;print(json.load(open('$B'))['local_api']['token'])")
|
|
EP=$(python3 -c "import json;print(json.load(open('$B'))['local_api']['endpoint'])")
|
|
for p in "$@"; do echo "=== GET $p"; curl -sS -k -m 30 -w '\nHTTP %{http_code}\n' -H "Authorization: Bearer $TOK" "https://$EP$p"; done
|