"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "nova/pci/manager.py" between
nova-22.0.0.tar.gz and nova-22.0.1.tar.gz

About: OpenStack Nova (Core Service: Compute) manages the lifecycle of compute instances in an OpenStack environment. Responsibilities include spawning, scheduling and decomissioning of machines on demand.
The "Victoria" series (latest release).

manager.py  (nova-22.0.0):manager.py  (nova-22.0.1)
skipping to change at line 227 skipping to change at line 227
# We will not sync the new properties with database # We will not sync the new properties with database
# before that. # before that.
# TODO(yjiang5): Not sure if this is a right policy, but # TODO(yjiang5): Not sure if this is a right policy, but
# at least it avoids some confusion and, if needed, # at least it avoids some confusion and, if needed,
# we can add more action like killing the instance # we can add more action like killing the instance
# by force in future. # by force in future.
self.stale[new_value['address']] = new_value self.stale[new_value['address']] = new_value
else: else:
existed.update_device(new_value) existed.update_device(new_value)
self.stats.update_device(existed)
# Track newly discovered devices. # Track newly discovered devices.
for dev in [dev for dev in devices if for dev in [dev for dev in devices if
dev['address'] in new_addrs - exist_addrs]: dev['address'] in new_addrs - exist_addrs]:
dev['compute_node_id'] = self.node_id dev['compute_node_id'] = self.node_id
dev_obj = objects.PciDevice.create(self._context, dev) dev_obj = objects.PciDevice.create(self._context, dev)
self.pci_devs.objects.append(dev_obj) self.pci_devs.objects.append(dev_obj)
self.stats.add_device(dev_obj) self.stats.add_device(dev_obj)
self._build_device_tree(self.pci_devs) self._build_device_tree(self.pci_devs)
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)