Reviewed: https://review.openstack.org/317065 Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=2150d5d8e17323bc9fce11903da3afffda211d26 Submitter: Jenkins Branch: stable/mitaka
commit 2150d5d8e17323bc9fce11903da3afffda211d26 Author: Jay Pipes <jaypi...@gmail.com> Date: Mon Apr 4 12:32:56 2016 -0700 pci: eliminate DB lookup PCI requests during claim The nova.pci.manager.PciDevTracker.claim_instance() accepted an Instance object and called nova.objects.InstancePCIRequests.get_by_instance() to retrieve the PCI requests for the instance. This caused a DB lookup of the PCI requests for that instance, even though in all situations other than for migration/resize, the instance's PCI requests were already retrieved by the resource tracker. This change removes that additional DB lookup during claim_instance() by changing the instance parameter to instead be an InstancePCIRequests object and an InstanceNUMATopology object. Also in this patch is a change to nova.objects.PciDevice.claim() that changes the single parameter to an instance UUID instead of an Instance object, since nothing other than the instance's UUID was used in the method. Closes-Bug: #1582278 Related-Bug: #1368201 Change-Id: I9ab10c3035628f083233114b47b43a9b9ecdd166 (cherry picked from commit 1f259e2a9423a4777f79ca561d5e6a74747a5019) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1582278 Title: [SR-IOV][CPU Pinning] nova compute can try to boot VM with CPUs from one NUMA node and PCI device from another NUMA node. To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1582278/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs