Aktualiesen im VM Tab #65
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Ziel
Der "Aktualisieren"-Button im VM-Tab loest einen On-Demand-QEMU-Scan aller laufenden VMs der Node aus und zeigt Live-Fortschritt + eine Summary im Modal: wie viele VMs, welches OS, welche IP gefunden wurde.
Bausteine (groesstenteils vorhanden — dank #67/#66)
vm.scan(commands_async.rs:225): per-VM On-Demand-Scan, ruftclear_vm_scan_cache(vmid)→ erzwingt frischen Scan, ignoriert den Backoff (genau richtig fuer "jetzt aktualisieren").clear_vm_scan_cache(data.rs:87): leert Flag-Cache + Dead-Agent-Backoff.identity_scanliefert pro VMos/os_pretty/ip_address/agent_available→ die Modal-Daten.admin_router.py) als Vorlage fuer Live-Progress.Umsetzung
Backend — SSE-Endpoint
POST /nodes/{node}/qemu-scanlast_data["vms"](status=running) holen.vm.scanan den Node-Agent senden (Cache-Clear ist im Command bereits drin) und das Ergebnis streamen:VM <id>: <os>, <ip>bzw.VM <id>: Agent aus/keine Antwort.uebersprungen/agent offausgeben und weiter.node.qemu_scan_all(loopt agentseitig, ein Round-Trip) — weniger granulares Streaming. Empfehlung: backend-seitiger Loop mit per-VM-SSE (bessere Live-UX, nutzt vorhandenesvm.scan).Frontend — VM-Tab
Akzeptanz
Bezug
vm.scan/clear_vm_scan_cache-Primitive — Voraussetzung, bereits umgesetzt)/boot-Telemetrie mitrefreshen)Branch
feat/vm-tab-manual-qemu-scan