Removes the calls to InstancePCIRequests.get_XXX() from within the
claims.Claim and claims.MoveClaim constructors and instead has the
resource tracker construct the PCI requests and pass them into the
constructor.
This allows us to remove the needlessly duplicative _test_pci() method
in claims.MoveClaim and will allow the next patch in the series to
remove the call in nova.pci.manager.PciDevTracker.claim_instance() that
re-fetches PCI requests for the supplied instance.
Related-Bug: #1368201
Related-Bug: #1582278
Change-Id: Ib2cc7c985839fbf88b5e6e437c4b395ab484b1b6
(cherry picked from commit 74fbff88639891269f6a0752e70b78340cf87e9a)
Reviewed: https:/ /review. openstack. org/317064 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=257cfb7e6f2 f3414640c632909 f78db6b71f40b3
Committed: https:/
Submitter: Jenkins
Branch: stable/mitaka
commit 257cfb7e6f2f341 4640c632909f78d b6b71f40b3
Author: Jay Pipes <email address hidden>
Date: Fri Apr 1 16:03:47 2016 -0700
pci: pass in instance PCI requests to claim
Removes the calls to InstancePCIRequ ests.get_ XXX() from within the
claims.Claim and claims.MoveClaim constructors and instead has the
resource tracker construct the PCI requests and pass them into the
constructor.
This allows us to remove the needlessly duplicative _test_pci() method manager. PciDevTracker. claim_instance( ) that
in claims.MoveClaim and will allow the next patch in the series to
remove the call in nova.pci.
re-fetches PCI requests for the supplied instance.
Related-Bug: #1368201
Related-Bug: #1582278
Change-Id: Ib2cc7c985839fb f88b5e6e437c4b3 95ab484b1b6 69f6a0752e70b78 340cf87e9a)
(cherry picked from commit 74fbff886398912