When resizing an imported VM, nova does not specify which
PCI devices needs to be attached and which needs to be detached.
Thus, all the VM's PCI devices needs to be detached, and reattached
according to the new PCI request.
Change-Id: Ia7fbb2a9bc8f5d21bf5ec4a865fc7b1368ecf136
Partial-Bug: #1663238
(cherry picked from commit a1bc0e3aec4c11fe72804c1b718928cf6a65ef34)
Reviewed: https:/ /review. openstack. org/438369 /git.openstack. org/cgit/ openstack/ os-win/ commit/ ?id=e0e92d00995 e68a3844ce9e1c7 1f37f0e7f3b656
Committed: https:/
Submitter: Jenkins
Branch: stable/ocata
commit e0e92d00995e68a 3844ce9e1c71f37 f0e7f3b656
Author: Claudiu Belu <email address hidden>
Date: Tue Feb 14 23:27:42 2017 +0200
vmutils: Adds remove_ all_pci_ devices method
When resizing an imported VM, nova does not specify which
PCI devices needs to be attached and which needs to be detached.
Thus, all the VM's PCI devices needs to be detached, and reattached
according to the new PCI request.
Change-Id: Ia7fbb2a9bc8f5d 21bf5ec4a865fc7 b1368ecf136 e72804c1b718928 cf6a65ef34)
Partial-Bug: #1663238
(cherry picked from commit a1bc0e3aec4c11f