When rescuing an instance having a vGPU, we were not using the vGPU.
There would then be a race condition during the rescue where the vGPU
could be passed to another instance.
Instead, we should just make sure the vGPU would also be in the rescued
instance.
Change-Id: I7150e15694bb149ae67da37b5e43b6ea7507fe82
Closes-bug: #1762688
(cherry picked from commit 1c59397e09de5506bccba513ef31ffb8585fcdc3)
Reviewed: https:/ /review. openstack. org/579503 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=3163c9391ec 2569f77e583bccf 6163c309e45482
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 3163c9391ec2569 f77e583bccf6163 c309e45482
Author: Sylvain Bauza <email address hidden>
Date: Fri Jun 22 14:53:57 2018 +0200
libvirt: Fix the rescue race for vGPU instances
When rescuing an instance having a vGPU, we were not using the vGPU.
There would then be a race condition during the rescue where the vGPU
could be passed to another instance.
Instead, we should just make sure the vGPU would also be in the rescued
instance.
Change-Id: I7150e15694bb14 9ae67da37b5e43b 6ea7507fe82 6bccba513ef31ff b8585fcdc3)
Closes-bug: #1762688
(cherry picked from commit 1c59397e09de550