nova/nova
Adrian Chiris 2a3179affb Separate methods to free claimed and allocated devs
The existing PCI manager exposes a single method to free PCI resources
free_instance(), which frees both claimed and allocated PCI resources
for an instance.

This change proposes to extend the PCI manager API with two methods:
  1. free_instance_claims() : free PCI resources claims for instance.
  2. free_instance_allocations() : free PCI resources allocations for
     instance.

This change refactors free_instance() to use (1) and (2) from above.

This change is required to enable SR-IOV live migration as it is
required to free instance PCI allocations on the source node
in case of a successful migration and free instance PCI claims
on the destination node in case of an unsuccessful migration.

Change-Id: Id961f0fc219f32a2cf0282859f228e87cb36ffeb
Partial-Implements: blueprint libvirt-neutron-sriov-livemigration
2019-03-07 10:21:41 +02:00
..
api Merge "Support server create with ports having resource request" 2019-03-06 16:59:35 +00:00
cells Per aggregate scheduling weight 2019-01-21 11:48:44 +08:00
cmd Merge "Add fill_virtual_interface_list online_data_migration script" 2019-01-31 13:43:35 +00:00
common
compute Merge "Validate PCI aliases early in resize" 2019-03-06 08:42:39 +00:00
conductor Merge "fix up numa-topology live migration hypervisor check" 2019-03-01 13:46:19 +00:00
conf Merge "conf: Deprecate 'disable_libvirt_livesnapshot' option" 2019-03-01 21:56:47 +00:00
console Use X-Forwarded-Proto as origin protocol if present 2019-01-16 00:28:53 +00:00
consoleauth Fix stacktraces with redis caching backend 2018-09-27 13:15:11 -04:00
db Update mailinglist from dev to discuss 2018-12-05 09:44:35 +08:00
hacking Add a hacking rule for deprecated assertion methods 2018-10-25 11:49:10 +09:00
image Update mailinglist from dev to discuss 2018-12-05 09:44:35 +08:00
ipv6
keymgr
locale Imported Translations from Zanata 2018-09-23 06:53:32 +00:00
network Merge "Move additional IP address management to privsep." 2019-03-06 10:21:21 +00:00
notifications The field instance_name was added to InstanceCreatePayload 2019-01-15 15:27:07 +00:00
objects objects: Store InstancePCIRequest.numa_policy in DB 2019-03-06 11:02:02 +00:00
pci Separate methods to free claimed and allocated devs 2019-03-07 10:21:41 +02:00
policies Merge "Remove deprecated 'flavors' policy" 2019-02-23 06:13:00 +00:00
privsep Merge "Move additional IP address management to privsep." 2019-03-06 10:21:21 +00:00
scheduler Merge "Fix WeighedHost logging regression" 2019-03-06 12:25:50 +00:00
servicegroup Fix deprecation warning for threadgroup.add_timer 2019-02-07 09:37:00 -05:00
tests Separate methods to free claimed and allocated devs 2019-03-07 10:21:41 +02:00
virt Merge "Move set_vf_interface_vlan to be with its only caller." 2019-03-06 04:59:41 +00:00
vnc Deprecate the nova-xvpvncproxy service 2018-10-15 10:03:13 +01:00
volume Merge "Avoid BadRequest error log on volume attachment" 2019-02-27 05:13:20 +00:00
__init__.py
availability_zones.py
baserpc.py
block_device.py Add method to generate device names universally 2019-01-15 18:55:11 +00:00
cache_utils.py
config.py Configure placement DB context manager for nova-manage/status 2018-09-05 10:29:48 -04:00
context.py Remove NovaException logging from scatter_gather_cells 2018-11-21 12:43:35 -05:00
crypto.py
debugger.py
exception.py Support server create with ports having resource request 2019-03-05 17:48:29 +01:00
exception_wrapper.py Add full traceback to ExceptionPayload in versioned notifications 2018-06-19 16:46:46 +08:00
filters.py
hooks.py
i18n.py
loadables.py
manager.py
policy.py Fix string interpolations in logging calls 2019-01-29 15:06:39 +09:00
profiler.py
quota.py Merge "quota: remove defaults kwarg in get_project_quotas" 2019-02-26 13:26:24 +00:00
rc_fields.py Switch to using os-resource-classes 2019-02-07 11:11:09 +00:00
rpc.py Fix jsonutils.to_primitive UserWarning 2018-12-17 22:56:50 -05:00
safe_utils.py
service.py Move conductor wait_until_ready() delay before manager init 2018-08-31 12:50:10 -07:00
service_auth.py
test.py Merge "Use a static resource tracker in compute manager" 2019-02-04 19:53:38 +00:00
utils.py Flavor extra spec and image properties validation from API 2019-03-05 12:05:06 -06:00
version.py
weights.py Per aggregate scheduling weight 2019-01-21 11:48:44 +08:00
wsgi.py