nova/nova/tests/unit
Stephen Finucane f42fb1241b Add 'hw:vif_multiqueue_enabled' flavor extra spec
This mirrors the 'hw_vif_multiqueue_enabled' image metadata property.
Providing a way to set this via flavor extra specs allows admins to
enable this by default and easily enable it for existing instances
without the need to rebuild (a destructive operation).

Note that, in theory at least, the image import workflow provided by
glance should allows admins to enable this by default, but the legacy
image create workflow does not allow this and admins cannot really
control which API end users use when uploading their own images.

Also note that we could provide this behavior using a host-level
configuration option. This would be similar to what we do for other
attributes such as machine type ('hw_machine_type' image meta prop or
'[libvirt] hw_machine_type' config option) or pointer model
('hw_pointer_model' image meta prop or '[compute] pointer_model' config
option) and would be well suited to things that we don't expect to
change, such as enabling multiqueue (it's a sensible default). However,
we would need to start storing this information in system_metadata, like
we do for machine type (since Wallaby) to prevent things changing over
live migration. We have also started avoiding host-level config options
for things like this since one must ensure that the value configured are
consistent across deployments to behavior that varies depending on the
host the guest is initially created on.

Change-Id: I405d0324abe32b31a434105cf2c104876fe9c127
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-11-16 19:12:49 +00:00
..
accelerator smartnic support - reject server move and suspend 2021-08-05 15:58:41 +08:00
api Merge "Add autopep8 to tox and pre-commit" 2021-11-08 23:54:03 +00:00
cmd Add autopep8 to tox and pre-commit 2021-11-08 12:37:27 +00:00
compute Merge "objects: Remove 'bandwidth' fields from notifications" 2021-11-10 18:02:50 +00:00
conductor Add autopep8 to tox and pre-commit 2021-11-08 12:37:27 +00:00
conf Expose the mdev class 2021-08-27 14:52:01 +01:00
console Merge "console: Improve logging" 2021-09-07 14:29:08 +00:00
db Merge "db: Remove nova-network models" 2021-11-10 18:04:36 +00:00
fake_loadables
fixtures Test the NotificationFixture 2021-06-10 18:07:47 +02:00
image glance: Remove [glance]/allowed_direct_url_schemes 2021-01-28 12:46:57 +00:00
keymgr
network Query ports with admin client to get resource_request 2021-10-20 11:39:23 +02:00
notifications objects: Remove 'bandwidth' fields from notifications 2021-11-03 17:33:43 +00:00
objects Merge "objects: Remove 'bandwidth' fields from notifications" 2021-11-10 18:02:50 +00:00
pci Merge "Follow up from bp/pci-socket-affinity series" 2021-08-24 22:08:30 +00:00
policies Merge "Reject server operations with extended resource req" 2021-08-31 00:53:00 +00:00
privsep Retry lvm volume and volume group query 2021-06-15 12:39:26 +02:00
scheduler Add autopep8 to tox and pre-commit 2021-11-08 12:37:27 +00:00
servicegroup
ssl_cert
storage Avoid modifying the Mock class in test 2021-08-23 17:36:00 +02:00
virt Add 'hw:vif_multiqueue_enabled' flavor extra spec 2021-11-16 19:12:49 +00:00
volume Fix the wrong exception used to retry detach API calls 2021-09-20 11:23:40 +00:00
__init__.py
fake_block_device.py
fake_build_request.py
fake_console_auth_token.py
fake_crypto.py
fake_diagnostics.py
fake_flavor.py
fake_hosts.py
fake_instance.py Remove (almost) all references to 'instance_type' 2021-03-29 12:24:15 +01:00
fake_ldap.py Remove six.moves 2020-11-07 03:25:02 +00:00
fake_network.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
fake_network_cache_model.py Use UUID as vif and network_id in vif tests 2020-09-07 10:31:52 +02:00
fake_pci_device_pools.py
fake_policy.py virt: Remove 'reset_network' API 2020-11-23 15:55:50 +00:00
fake_processutils.py Remove six.binary_type/integer_types/string_types 2020-12-13 11:25:14 +00:00
fake_request_spec.py
fake_requests.py
fake_server_actions.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
fake_volume.py
image_fixtures.py
matchers.py Remove six.text_type (2/2) 2020-12-13 11:26:35 +00:00
test_api_validation.py api: Rename 'parameter_types.hostname' -> 'fqdn' 2021-08-19 11:16:59 +01:00
test_availability_zones.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
test_baserpc.py
test_block_device.py fup: Remove unused legacy block_device_info format 2021-08-20 13:26:46 +01:00
test_cache.py
test_cinder.py
test_conf.py db: Post reshuffle cleanup 2021-08-09 15:34:40 +01:00
test_configdrive2.py
test_context.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
test_crypto.py Remove six.moves 2020-11-07 03:25:02 +00:00
test_exception.py rpc: Rework 'get_notifier', 'wrap_exception' 2021-03-01 11:06:48 +00:00
test_exception_wrapper.py Use NotificationFixture for legacy notifications too 2021-05-24 11:00:59 +01:00
test_fixtures.py Refactor Database fixture 2021-11-04 17:18:54 +01:00
test_hacking.py Add autopep8 to tox and pre-commit 2021-11-08 12:37:27 +00:00
test_identity.py Add autopep8 to tox and pre-commit 2021-11-08 12:37:27 +00:00
test_json_ref.py Remove six.moves 2020-11-07 03:25:02 +00:00
test_loadables.py
test_matchers.py
test_metadata.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
test_notifications.py objects: Remove 'bandwidth' fields from notifications 2021-11-03 17:33:43 +00:00
test_notifier.py
test_policy.py tests: Move remaining non-libvirt fixtures 2021-05-12 16:32:43 +01:00
test_profiler.py Remove six.moves 2020-11-07 03:25:02 +00:00
test_quota.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
test_rpc.py rpc: Rework 'get_notifier', 'wrap_exception' 2021-03-01 11:06:48 +00:00
test_safeutils.py
test_service.py Add autopep8 to tox and pre-commit 2021-11-08 12:37:27 +00:00
test_service_auth.py
test_test.py Add autopep8 to tox and pre-commit 2021-11-08 12:37:27 +00:00
test_test_utils.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
test_utils.py Add autopep8 to tox and pre-commit 2021-11-08 12:37:27 +00:00
test_versions.py Change API unexpected exception message 2021-02-17 21:30:07 +00:00
test_weights.py
test_wsgi.py
utils.py Add autopep8 to tox and pre-commit 2021-11-08 12:37:27 +00:00