Updating healthcheck for passthrough GPUs #105
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For a GPU configured as passthrough , device plugin does not update the GPU count on the node when a GPU falls off the bus.
To reproduce follow the steps
Remove the GPU from the bus
echo "1" > /sys/bus/pci/devices/<gpu_pci_id>/remove
Validated the GPU is no longer visible from the host using lspci
lspci -nnk -d 10de:
The number of GPUs exposed on k8s node doesn't change.
Watching for iommu groups under
/dev/vfio
creates a fsnotify when the GPU falls off the bus