nova/nova/tests/unit
Stephen Finucane 3b99747b42 libvirt: Don't allow "reserving" file-backed memory
When file-backed memory is configured, it is the only "memory" reported
by nova and used by instances, with RAM used in caching capacity. We
should be warning users of this and insisting they explicitly configure
the '[DEFAULT] reserved_host_memory_mb' config option to 0. However,
doing so now would be breaking change. Instead, start logging a warning
instead, failing only for the truly broken combination of reserving more
file-backed memory than we have allocated.

Change-Id: I9619338ad0f60253b628d96543f8ce3ac86242e3
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Closes-Bug: #1882821
2020-06-10 10:40:59 +00:00
..
accelerator Delete ARQs for an instance when the instance is deleted. 2020-03-24 22:44:18 -07:00
api Merge "replace the "hide_hypervisor_id" to "hw:hide_hypervisor_id"" 2020-05-26 04:08:54 +00:00
cmd Add nova-status upgrade check and reno for policy new defaults 2020-05-01 15:32:51 +00:00
compute Remove unused object_compat decorator 2020-05-21 13:30:38 +02:00
conductor Merge "Support live migration with vpmem" 2020-04-08 17:04:01 +00:00
conf Support different vGPU types per pGPU 2020-04-09 17:54:26 +02:00
console Merge "Allow TLS ciphers/protocols to be configurable for console proxies" 2020-02-24 17:27:02 +00:00
db Fix configure() called after DatabaseAtVersion fixture 2020-05-22 17:45:14 +01:00
fake_loadables
image Improve error log when snapshot fails 2019-11-06 22:54:05 +00:00
keymgr
network Add new default roles in remaining servers policies 2020-04-18 18:04:19 +00:00
notifications Remove 'nova.image.api' module 2020-02-18 11:45:39 +00:00
objects Bump hacking min version to 3.1.0 2020-05-19 08:09:43 +08:00
pci support pci numa affinity policies in flavor and image 2019-12-11 14:39:12 +00:00
policies Merge "Add new default roles in quota class policies" 2020-04-21 08:39:41 +00:00
privsep images: Make JSON the default output format of calls to qemu-img info 2020-04-16 16:38:24 +01:00
scheduler Merge "Don't recompute weighers' minval/maxval attributes" 2020-06-01 15:10:28 +00:00
servicegroup Handle ServiceNotFound in DbDriver._report_state 2019-12-04 09:50:17 -05:00
ssl_cert
virt libvirt: Don't allow "reserving" file-backed memory 2020-06-10 10:40:59 +00:00
volume Merge "Add retry to cinder API calls related to volume detach" 2020-04-20 17:36:33 +00:00
__init__.py
cast_as_call.py
conf_fixture.py Support different vGPU types per pGPU 2020-04-09 17:54:26 +02:00
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 partial support for live migration with specific resources 2020-04-07 13:12:53 +00:00
fake_ldap.py
fake_network.py nova-net: Kill it 2020-01-14 21:25:56 +00:00
fake_network_cache_model.py
fake_notifier.py
fake_pci_device_pools.py
fake_policy.py Add new default roles in remaining servers policies 2020-04-18 18:04:19 +00:00
fake_processutils.py
fake_request_spec.py
fake_requests.py
fake_server_actions.py Store instance action event exc_val fault details 2020-03-21 06:08:34 +00:00
fake_volume.py
image_fixtures.py
matchers.py
policy_fixture.py Fix the suppress of policy deprecation warnings 2020-01-07 17:58:09 +00:00
test_api_validation.py Don't hardcode Python versions in test 2019-12-12 15:16:21 +00:00
test_availability_zones.py trivial: Fetch 'Service' objects once when building AZs 2020-02-05 21:26:23 +00:00
test_baserpc.py
test_block_device.py
test_cache.py
test_cinder.py
test_conf.py test cleanup: Make base TestCase subclass oslotest 2019-11-22 22:38:22 +00:00
test_configdrive2.py
test_context.py Revert "Log CellTimeout traceback in scatter_gather_cells" 2019-10-22 17:12:28 -04:00
test_crypto.py
test_exception.py
test_fake_notifier.py
test_fixtures.py Fix configure() called after DatabaseAtVersion fixture 2020-05-22 17:45:14 +01:00
test_flavors.py
test_hacking.py hacking: Modify checks for translated logs 2020-05-27 09:41:30 +00:00
test_hooks.py
test_identity.py
test_instance_types_extra_specs.py
test_json_ref.py Tests: autospecs all the mock.patch usages 2019-08-19 09:43:10 -05:00
test_loadables.py
test_matchers.py
test_metadata.py Support large network queries towards neutron 2020-02-16 23:38:48 -08:00
test_notifications.py nova-net: Remove dependency on nova-net from fake cache 2020-01-08 13:54:12 +00:00
test_notifier.py
test_policy.py Suppress remaining policy warnings in unit tests 2020-05-08 11:43:38 -05:00
test_profiler.py Remove 'nova.image.api' module 2020-02-18 11:45:39 +00:00
test_quota.py nova-net: Convert remaining unit tests to neutron 2019-12-16 09:58:42 +00:00
test_rpc.py
test_safeutils.py
test_service.py nova-net: Remove final references to nova-network 2020-01-08 13:54:12 +00:00
test_service_auth.py
test_test.py Move selective patching of open() to nova.test for reuse 2019-05-25 02:49:40 +00:00
test_test_utils.py
test_utils.py trivial: Remove 'run_once' helper 2020-02-06 15:49:07 +00:00
test_versions.py Move selective patching of open() to nova.test for reuse 2019-05-25 02:49:40 +00:00
test_weights.py
test_wsgi.py
utils.py nova-net: Kill it 2020-01-14 21:25:56 +00:00