-
Notifications
You must be signed in to change notification settings - Fork 492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong PCI to VM association removed when migrating VM with PCI pass-through #3230
Milestone
Comments
Before executing the power-off migrate action, is the VM in running state? |
yes. the VM is running. |
christian7007
pushed a commit
to christian7007/one
that referenced
this issue
Apr 17, 2019
christian7007
pushed a commit
to christian7007/one
that referenced
this issue
Apr 17, 2019
…without poweroff flag
christian7007
pushed a commit
to christian7007/one
that referenced
this issue
Apr 22, 2019
christian7007
pushed a commit
to christian7007/one
that referenced
this issue
Apr 23, 2019
…devices without poweroff flag" This reverts commit 3c7446d.
christian7007
pushed a commit
to christian7007/one
that referenced
this issue
Apr 23, 2019
christian7007
pushed a commit
to christian7007/one
that referenced
this issue
Apr 23, 2019
christian7007
pushed a commit
to christian7007/one
that referenced
this issue
Apr 23, 2019
…VM with PCI pass-through
rsmontero
pushed a commit
that referenced
this issue
Apr 26, 2019
7 tasks
rsmontero
pushed a commit
that referenced
this issue
Oct 4, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
After power-off migrate of a VM wrong PCI to VM mapping is cleared on the source host.
To Reproduce
From the above hosts dump it is clear that:
There is a fsck routine to fix (1) but it needs stop-fsck-start of the onedb service. And it is not fixing issue (2) which break the instantiation of new VMs with pass-through because the VF that is given (and oned believe it is free) is already in use by another running VM.
Expected behavior
oned should free the old PCI addresses from the source host.
Details
Additional context
To investigate the issue I've patched oned to log
host_share.add
,host_share.del
,HostSharePCI::add
andHostSharePCI::del
. Following are the logs of the migrate session that clearly show the issue:VM 46,47 and 48 are started on hostid 1
Next the VMs were migrated to hostid 2. They has new PCI assignment on the new host (hostid 2) ...
But on the source host the new PCI address assignments(from the destination host)are removed instead of the old ones:
Progress Status
The text was updated successfully, but these errors were encountered: