nova/nova
Matt Riedemann af5df70f61 Explicitly fail if trying to attach SR-IOV port
Attaching SR-IOV ports to existing instances is not supported
since the compute service does not perform any kind of PCI
device allocation, so we should fail fast with a clear error
if attempted. Note that the compute RPC API "attach_interface"
method is an RPC call from nova-api to nova-compute so the error
raised here will result in a 400 response to the user.

Blueprint sriov-interface-attach-detach would need to be
implemented to support this use case, and could arguably involve
a microversion to indicate when the feature was made available.

A related neutron docs patch https://review.openstack.org/695409
is posted for mentioning the limitation with SR-IOV port attach
as well.

Conflicts due to no having
Ifcc327f9f97e57d3d6f0db7045b56ffe60203eb9 and
I4440a19370da9807cc8c32b681542c7048c9977e in Pike.

Change-Id: Ibbf2bd3cdd45bcd61eebff883c30ded525b2495d
Closes-Bug: #1708433
(cherry picked from commit 68011c40ae)
(cherry picked from commit e1d55af408)
(cherry picked from commit 7827890421)
2019-11-21 13:19:16 +00:00
..
CA
api Handle HostMappingNotFound when deleting a compute service 2018-07-18 09:00:44 -04:00
cells Merge "Handle uuids in os-hypervisors API" 2017-07-20 01:03:27 +00:00
cmd Merge "nova-manage - fix online_data_migrations counts" into stable/pike 2018-10-03 17:59:13 +00:00
common
compute Only nil az during shelve offload 2019-11-20 08:50:21 +00:00
conductor Merge "Fix incomplete instance data returned after build failure" into stable/pike 2019-04-22 15:13:33 +00:00
conf Document unset/reset wrinkle for *_allocation_ratio options 2019-03-25 05:42:35 +00:00
console Merge "Remove translation of log messages" 2017-08-10 11:39:03 +00:00
consoleauth Merge "Remove translation of log messages" 2017-08-10 11:39:03 +00:00
db Merge "Fix DB archiver AttributeError due to wrong table name attribute used" into stable/pike 2018-09-20 19:14:02 +00:00
hacking Remove unused variable 2017-06-12 18:19:57 +07:00
image Merge "Handle glance exception during rotating instance backup" into stable/pike 2018-03-08 15:43:26 +00:00
ipv6
keymgr Remove key_manager.api_class hack 2017-07-17 17:49:08 -04:00
locale Imported Translations from Zanata 2017-08-10 11:34:33 +00:00
network Explicitly fail if trying to attach SR-IOV port 2019-11-21 13:19:16 +00:00
notifications Fix sending legacy instance.update notification 2017-10-10 13:20:34 -04:00
objects Merge "Do not persist RequestSpec.ignore_hosts" into stable/pike 2019-04-17 02:06:03 +00:00
pci PCI: do not force remove allocated devices 2019-02-05 23:37:38 +00:00
policies Add policy rule to block image-backed servers with 0 root disk flavor 2018-06-18 14:00:35 -04:00
scheduler Do not dump all instances in the scheduler 2019-05-17 16:36:57 +00:00
servicegroup Fix service list for disabled compute using MC driver 2018-09-16 19:12:13 +00:00
tests Explicitly fail if trying to attach SR-IOV port 2019-11-21 13:19:16 +00:00
virt Implement power_off/power_on for the FakeDriver 2019-07-26 17:23:16 -04:00
vnc
volume Fix bug case by none token context 2019-03-02 20:55:48 +08:00
__init__.py Make eventlet hub use a monotonic clock 2018-01-26 18:09:18 +08:00
availability_zones.py Avoid lazy-load error when getting instance AZ 2017-05-25 15:46:22 -04:00
baserpc.py
block_device.py
cache_utils.py remove log translation tags from nova.cells 2017-04-10 14:48:07 +00:00
config.py
context.py Regenerate context during targeting 2017-10-17 00:55:48 +00:00
crypto.py
debugger.py
exception.py Explicitly fail if trying to attach SR-IOV port 2019-11-21 13:19:16 +00:00
exception_wrapper.py Remove **kwargs passing in payload __init__ 2017-06-08 08:50:40 +00:00
filters.py
hooks.py
i18n.py
loadables.py
manager.py
policy.py Add policy granularity to the Flavors API 2017-07-19 15:56:47 -04:00
profiler.py
quota.py Fix server_group_members quota check 2018-07-11 15:17:18 -04:00
rpc.py Merge "Account for compute.metrics.update in legacy notification whitelist" into stable/pike 2017-10-24 11:46:57 +00:00
safe_utils.py Allow wrapping of closures 2017-07-20 10:07:52 +01:00
service.py Make eventlet hub use a monotonic clock 2018-01-26 18:09:18 +08:00
service_auth.py Fix NoneType error when [service_user] is misconfigured 2017-12-07 12:34:37 -05:00
test.py Fix the request context in ServiceFixture 2018-09-04 20:46:18 +00:00
utils.py Move the last_bytes util method to libvirt 2017-07-26 08:36:32 +10:00
version.py
weights.py
wsgi.py