nova/nova
Matt Riedemann 75a7e6fc7d Remove unused os-pci API
The os-pci API was never part of the v2.0 API and was added
to the v3 API, but when the v3 API turned into the v2.1 API
which is backward compatible with the v2.0 API, the os-pci
API was removed from v2.1. The original intent was to enable
it in a microversion but that never happened.

We should just delete this API since it has a number of issues
anyway:

1. It's not documented (which makes sense since it's not enabled).
2. The PciHypervisorController just takes the compute_nodes.pci_stats
   dict and dumps it to json out of the REST API with no control over
   the keys in the response. That means if we ever change the fields
   in the PciDevicePool object, we implicitly introduce a backward
   incompatible change in the REST API.
3. We don't want to be reporting host stats out of the API [1].
4. To make the os-hypervisors extension work in a multi-cell environment
   we'd have to add uuids to the PciDevices model and change the API to
   return and take in uuids to identify the devices for GET requests.
5. And last but not least, no one has asked for this in over two years.

As a result of removing this API we can also remove the join on the
pci_devices table when showing details about an instance or listing
instances, which were added years ago because of the PciServerController:

Id3c8a0b187e399ce2acecd4aaa37ac95e731d46c

Id3e60c3c56c2eb4209e8aca8a2c26881ca86b435

[1] https://docs.openstack.org/developer/nova/policies.html?#metrics-gathering

Closes-Bug: #1426241
Closes-Bug: #1673869

Change-Id: I9099744264eeec175672d10d04da69648dec1a9d
2017-04-18 23:47:40 -04:00
..
CA
api Remove unused os-pci API 2017-04-18 23:47:40 -04:00
cells remove unused parameter in rpc call 2017-04-17 08:27:20 -06:00
cert Add RPC version aliases for Ocata 2017-02-27 18:37:48 +04:00
cloudpipe
cmd Merge "Remove aggregate uuid generation on load from DB" 2017-04-18 12:51:45 +00:00
common
compute Merge "Teach HostAPI about cells" 2017-04-10 22:49:17 +00:00
conductor Make conductor ask scheduler to limit migrates to same cell 2017-03-29 07:12:31 -07:00
conf Merge "Expand help text for [libvirt]/disk_cachemodes" 2017-04-18 12:57:09 +00:00
console Add RPC version aliases for Ocata 2017-02-27 18:37:48 +04:00
consoleauth Make consoleauth target the proper cell 2017-03-07 15:33:50 -08:00
db Merge "Remove aggregate uuid generation on load from DB" 2017-04-18 12:51:45 +00:00
hacking remove hacking rule that enforces log translation 2017-03-16 09:56:21 -04:00
image Use cursive for signature verification 2017-03-28 01:41:41 -07:00
ipv6
keymgr
locale Imported Translations from Zanata 2017-03-03 10:09:38 +00:00
network Update network metadata type field for IPv6 2017-04-12 13:55:13 +00:00
notifications Merge "Short circuit notifications when not enabled" 2017-03-31 01:22:42 +00:00
objects Merge "Remove aggregate uuid generation on load from DB" 2017-04-18 12:51:45 +00:00
pci Modify PciPassthroughFilter to accept lists 2017-04-11 19:49:07 +00:00
policies Remove unused os-pci API 2017-04-18 23:47:40 -04:00
scheduler Merge "Stop using ResourceProvider in scheduler and RT" 2017-04-07 16:24:20 +00:00
servicegroup Don't use 'updated_at' to check service's status 2016-12-08 09:51:03 +00:00
tests Remove unused os-pci API 2017-04-18 23:47:40 -04:00
virt Merge "Spelling error "paramenter"" 2017-04-18 03:54:33 +00:00
vnc
volume Deprecate the Cinder API v2 support 2017-04-06 09:55:39 -07:00
wsgi Clarify the language in the apache wsgi sample 2017-02-02 15:43:25 -08:00
__init__.py
availability_zones.py Make os-availability-zones know about cells 2017-03-15 11:02:58 -07:00
baserpc.py
block_device.py db: Add attachment_id to block_device_mapping 2017-03-16 15:26:33 -04:00
cache_utils.py
config.py Integrate OSProfiler and Nova 2017-01-18 15:00:14 +07:00
context.py Temporarily untarget context when deleting from cell0 2017-03-13 13:45:03 -04:00
crypto.py
debugger.py
exception.py Merge "Teach HostAPI about cells" 2017-04-10 22:49:17 +00:00
exception_wrapper.py Short circuit notifications when not enabled 2017-03-30 22:32:14 +00:00
filters.py
hooks.py
i18n.py
loadables.py
manager.py Integrate OSProfiler and Nova 2017-01-18 15:00:14 +07:00
policy.py [2/3]Replace six.iteritems() with .items() 2017-01-09 09:11:00 +00:00
profiler.py Integrate OSProfiler and Nova 2017-01-18 15:00:14 +07:00
quota.py [2/3]Replace six.iteritems() with .items() 2017-01-09 09:11:00 +00:00
rpc.py Short circuit notifications when not enabled 2017-03-30 22:32:14 +00:00
safe_utils.py
service.py Integrate OSProfiler and Nova 2017-01-18 15:00:14 +07:00
service_auth.py Add service_token for nova-cinder interaction 2017-01-11 15:49:16 +00:00
test.py Remove usage of parameter enforce_type 2017-04-17 20:23:19 +08:00
utils.py Fix some reST field lists in docstrings 2017-03-23 09:25:37 +08:00
version.py
weights.py Correct some spelling errors 2017-02-25 02:45:30 +00:00
wsgi.py [2/3]Replace six.iteritems() with .items() 2017-01-09 09:11:00 +00:00