nova/nova/tests/unit/api/openstack/compute
Brian Rosmaita 240d030902 Reject boot request for unsupported images
Nova has never supported direct booting of an image of an encrypted
volume uploaded to Glance via the Cinder upload-volume-to-image
process, but instead of rejecting such a request, an 'active' but
unusable instance is created.  This patch allows Nova to use image
metadata to detect such an image and reject the boot request.

Change-Id: Idf84ccff254d26fa13473fe9741ddac21cbcf321
Related-bug: #1852106
Closes-bug: #1863611
(cherry picked from commit 963fd8c0f9)
2020-04-16 11:53:02 +00:00
..
__init__.py
admin_only_action_common.py Ensure source service is up before resizing/migrating 2020-01-16 16:11:48 +00:00
dummy_schema.py
microversions.py Remove the extensions framework from wsgi.py 2018-10-18 02:01:03 +00:00
test_access_ips.py Update compute API.get() stubs in test_access_ips 2018-11-05 14:10:11 -05:00
test_admin_actions.py Remove mox in tests/unit/api/openstack/compute 2018-05-24 21:31:44 +00:00
test_admin_password.py Minimal construct plumbing for nova show when a cell is down 2018-10-31 15:22:09 -04:00
test_agents.py Multiple API cleanup changes 2019-08-12 08:52:38 -05:00
test_aggregates.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_api.py Remove unnecessary setUp function in testcase 2017-03-30 12:55:16 +08:00
test_attach_interfaces.py Handle PortLimitExceeded in POST /servers/{server_id}/os-interface 2019-04-04 14:52:20 -04:00
test_auth.py Tests: use fakes.HTTPRequest in compute tests 2016-08-24 19:03:54 +03:00
test_availability_zone.py AZ list performance optimization: avoid double service list DB fetch 2019-04-24 18:08:19 -04:00
test_baremetal_nodes.py
test_certificates.py Remove nova-cert 2017-04-27 22:28:01 -04:00
test_cloudpipe.py Replaces uuid.uuid4 with uuidutils.generate_uuid() 2017-07-25 10:45:03 +05:30
test_cloudpipe_update.py Remove cloudpipe APIs 2017-05-04 16:13:45 +08:00
test_console_auth_tokens.py Remove nova-consoleauth 2019-07-05 15:04:47 +00:00
test_console_output.py Minimal construct plumbing for nova show when a cell is down 2018-10-31 15:22:09 -04:00
test_consoles.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_create_backup.py Limit the min length of string for integer JSON-Schema 2017-05-27 10:14:28 +00:00
test_deferred_delete.py Stop handling 'InstanceUnknownCell' exception 2019-05-29 17:14:13 +01:00
test_disk_config.py Remove deprecated 'default_flavor' config option 2019-04-30 13:01:40 +00:00
test_evacuate.py Follow up (#2) for the bw resource provider series 2019-02-11 14:35:15 -05:00
test_extended_hypervisors.py Handle uuids in os-hypervisors API 2017-07-18 17:08:01 -04:00
test_extended_ips.py Merge "Remove unused init_only kwarg from wsgi app init" 2017-01-11 04:13:39 +00:00
test_extended_ips_mac.py Merge "Remove unused init_only kwarg from wsgi app init" 2017-01-11 04:13:39 +00:00
test_extension_info.py Totally freeze the extension_info API 2017-05-08 16:32:48 +08:00
test_flavor_access.py Bump to hacking 1.1.0 2019-04-12 16:23:49 +01:00
test_flavor_disabled.py Remove the caching the resource on Request object 2018-10-18 01:59:55 +00:00
test_flavor_manage.py DRY get_flavor in flavor manage tests 2019-08-12 14:06:27 +00:00
test_flavorextradata.py Remove unused init_only kwarg from wsgi app init 2016-12-29 21:51:03 -05:00
test_flavors.py Multiple API cleanup changes 2019-08-12 08:52:38 -05:00
test_flavors_extra_specs.py Mock.side_effects does not exist, use Mock.side_effect instead 2016-09-23 15:44:33 +08:00
test_floating_ip_pools.py Make test_floating_ip* pass with CONF.use_neutron=True by default 2017-01-03 20:59:36 -05:00
test_floating_ips.py Bump to hacking 1.1.0 2019-04-12 16:23:49 +01:00
test_hosts.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_hypervisor_status.py
test_hypervisors.py Fix hypervisors paginted collection_name. 2020-03-06 17:04:55 +00:00
test_image_metadata.py [proxy-api] microversion 2.39 deprecates image-metadata proxy API 2016-12-07 19:22:43 +03:00
test_images.py Merge image_size extension response into image view builder 2018-10-18 01:59:34 +00:00
test_instance_actions.py Fix an error when generating a host ID 2019-03-04 14:51:13 +09:00
test_instance_usage_audit_log.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_keypairs.py Multiple API cleanup changes 2019-08-12 08:52:38 -05:00
test_limits.py Multiple API cleanup changes 2019-08-12 08:52:38 -05:00
test_lock_server.py Microversion 2.73: Support adding the reason behind a server lock 2019-05-11 21:48:27 +00:00
test_microversions.py Remove more code related to extensions and testing 2018-10-18 02:00:15 +00:00
test_migrate_server.py Ensure source service is up before resizing/migrating 2020-01-16 16:11:48 +00:00
test_migrations.py Add user_id and project_id column to Migration 2019-09-12 16:52:12 +00:00
test_multinic.py Minimal construct plumbing for nova show when a cell is down 2018-10-31 15:22:09 -04:00
test_networks.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_neutron_security_groups.py Update compute API.get() stubs for test_*security_groups 2018-11-05 14:10:11 -05:00
test_pause_server.py Remove mox in tests/unit/api/openstack/compute 2018-05-24 21:31:44 +00:00
test_quota_classes.py Deprecate file injection 2017-12-12 09:22:21 -05:00
test_quotas.py Multiple API cleanup changes 2019-08-12 08:52:38 -05:00
test_remote_consoles.py Stop using mox stubs in test_remote_consoles.py 2017-07-18 00:39:01 +00:00
test_rescue.py Merge "Remove mox from api/openstack/compute/test_rescue.py" 2017-01-03 17:06:30 +00:00
test_security_group_default_rules.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_security_groups.py Update compute API.get() stubs for test_*security_groups 2018-11-05 14:10:11 -05:00
test_server_actions.py Ensure source service is up before resizing/migrating 2020-01-16 16:11:48 +00:00
test_server_diagnostics.py Minimal construct plumbing for nova show when a cell is down 2018-10-31 15:22:09 -04:00
test_server_external_events.py API microversion 2.76: Add 'power-update' external event 2019-08-15 13:19:44 -04:00
test_server_group_quotas.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_server_groups.py Multiple API cleanup changes 2019-08-12 08:52:38 -05:00
test_server_metadata.py Update compute API.get() mocks in test_server_metadata 2018-11-05 14:10:08 -05:00
test_server_migrations.py Add user_id and project_id column to Migration 2019-09-12 16:52:12 +00:00
test_server_password.py Remove mox in unit/api/*/test_server_password.py 2018-04-09 16:28:08 +09:00
test_server_reset_state.py Minimal construct plumbing for nova show when a cell is down 2018-10-31 15:22:09 -04:00
test_server_start_stop.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_server_tags.py Bump to hacking 1.1.0 2019-04-12 16:23:49 +01:00
test_server_topology.py Add server sub-resource topology API 2019-08-30 10:04:56 +08:00
test_serversV21.py Reject boot request for unsupported images 2020-04-16 11:53:02 +00:00
test_services.py Avoid timeout from service update api unit tests 2019-08-16 14:23:33 +02:00
test_shelve.py Avoid error 500 on shelve task_state race 2019-11-01 19:50:26 -04:00
test_simple_tenant_usage.py Multiple API cleanup changes 2019-08-12 08:52:38 -05:00
test_snapshots.py Implement query param schema for volume, snapshot API 2017-11-19 16:15:39 +03:00
test_suspend_server.py Reject live migration and suspend on SEV guests 2019-09-10 13:59:02 +01:00
test_tenant_networks.py Count networks to check quota 2017-06-19 21:51:46 +00:00
test_urlmap.py Remove the test for the route '/resources.:(format)' 2017-07-12 20:57:16 +08:00
test_versions.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_volumes.py Add delete_on_termination to volume-attach API 2019-09-05 20:54:56 +08:00