summaryrefslogtreecommitdiff
path: root/nova/pci
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-03-27 19:28:47 +0000
committerGerrit Code Review <review@openstack.org>2015-03-27 19:28:47 +0000
commitefce5ca36568395440f0e21b759de5ddfd108e1d (patch)
treea62b84501fc1f114bb34dff1f29cfbd8b247dd71 /nova/pci
parent9d20132a1de0f0b5f6bc21c5ec44b5ff836a74c9 (diff)
parentc3ffcd18d9fb1d999d6fa360a811b4c7fdcaba13 (diff)
downloadnova-efce5ca36568395440f0e21b759de5ddfd108e1d.tar.gz
Merge "Move ComputeNode creation at init stage in ResourceTracker"
Diffstat (limited to 'nova/pci')
-rw-r--r--nova/pci/manager.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/nova/pci/manager.py b/nova/pci/manager.py
index 2557aee806..04719f4f50 100644
--- a/nova/pci/manager.py
+++ b/nova/pci/manager.py
@@ -266,22 +266,6 @@ class PciDevTracker(object):
for dev in devs:
self._free_device(dev)
- def set_compute_node_id(self, node_id):
- """Set the compute node id that this object is tracking for.
-
- In current resource tracker implementation, the
- compute_node entry is created in the last step of
- update_available_resoruces, thus we have to lazily set the
- compute_node_id at that time.
- """
-
- if self.node_id and self.node_id != node_id:
- raise exception.PciTrackerInvalidNodeId(node_id=self.node_id,
- new_node_id=node_id)
- self.node_id = node_id
- for dev in self.pci_devs:
- dev.compute_node_id = node_id
-
def get_instance_pci_devs(inst, request_id=None):
"""Get the devices allocated to one or all requests for an instance.