09cc7f19d4863dc97b0527fa6e7f6affebe32f4d
Implement PCI device scanner to detect and report GPUs, TPUs, and other
hardware accelerators on workload hosts at startup. The scanner follows
the same pattern as the existing OVS bridge scanner.
Key components:
- PCIDeviceScannerTask: Scans devices using lspci, filters based on
vendor/device ID combinations from region configuration, and reports
to API server
- Worker integration: Scanner initializes on worker startup and executes
on join accept
- Region-based filtering: JSON configuration allows per-region device
filters with wildcard support
- Storage: Uses existing WorkloadHostFixedResource model with type
'gpu', 'tpu', or 'accelerator'
The scanner loads filters from region config via API, executes lspci,
parses device information, applies filters, and reports matched devices
to the API endpoint /api/workload_hosts/{host_id}/pci_devices.
Includes comprehensive documentation covering implementation details,
configuration examples, testing procedures, and troubleshooting guidance.
Description
No description provided
1.9 MiB