Skip to content

Conversation

lindig
Copy link
Contributor

@lindig lindig commented Sep 22, 2025

In XSI-1969 we deal with an inconsistent Xapi DB and fail to recognise a PCI as SRIOV. Be more lenient and recognise stale PCI refs as SRIOV. Also remove a VM from a VGPU explictly on resouce cleanup.

In XSI-1969 we deal with an inconsistent Xapi DB and fail to recognise a
PCI as SRIOV. Be more lenient and recognise stale PCI refs as SRIOV.
Also remove a VM from a VGPU explictly on resouce cleanup.

Signed-off-by: Christian Lindig <[email protected]>
@last-genius
Copy link
Contributor

This is really curious and I would love it if you could provide some more context. Surely returning a reference to an object that is somehow invalid (ref = null, missing table) can't do any good further on.

What do you mean by an "inconsistent" db?

@lindig
Copy link
Contributor Author

lindig commented Sep 23, 2025

A PCI that belongs to an SRIOV vGPU does not block migration, but a pass-through PCI does. We have cases where this is happening: a stale/inbvalid PCI from an SRIOV blocks migration. Why the PCI data is stale is not clear but the PCI clearly belongs to an SRIOV vGPU but is now considered pass-throgh. So I am removing the validity check to let the migration proceed. Once migrated, we would assign new PCI devices. So I believe this improves the situation slightly and does not make it worse.

@lindig
Copy link
Contributor Author

lindig commented Sep 25, 2025

@GabrielBuica please merge this when you feel it is save

@lindig lindig added this pull request to the merge queue Sep 29, 2025
Merged via the queue into xapi-project:master with commit b2f572d Sep 29, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants