nova/nova/tests/unit/compute
Matthew Booth 642c986f06 Don't check flavor disk size when booting from volume
When creating a volume from an image, cinder copies the image metadata
into volume properties. When booting from the volume, we read this
metadata from the volume and use it as image metadata once again.

While fixing the check against min_ram,
change I861a78b5c7efa71e4bf7206d388b8d0d8048c78e introduced a
regression which prevents a user from booting a volume which is larger
than the flavor's disk. As we are not creating this disk, this check
does not make sense. Similarly, it checks the image metadata's
min_disk against the flavor disk size, which is not being used.

This change leaves the image metadata check unaltered when creating a
flavor disk. When booting from a volume, we check min_disk from image
metadata against the actual size of the volume. We don't check the
volume size at all. The check against min_ram is retained unaltered.

Closes-Bug: #1457517
Closes-Bug: #1459491
Closes-Bug: #1466305
Change-Id: I264493172da20b664df571e32876030246c2a87c
2015-08-12 15:45:19 +01:00
..
monitors Use stevedore for loading monitor extensions 2015-07-13 15:23:52 -04:00
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
eventlet_utils.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
fake_resource_tracker.py Use compute_node consistently in ResourceTracker 2015-05-12 10:09:54 +00:00
test_arch.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
test_claims.py Merge "Use flavor object in compute manager" 2015-07-20 11:06:30 +00:00
test_compute_api.py Don't check flavor disk size when booting from volume 2015-08-12 15:45:19 +01:00
test_compute_cells.py Don't check flavor disk size when booting from volume 2015-08-12 15:45:19 +01:00
test_compute_mgr.py Merge "Fixes delayed instance lifecycle events issue" 2015-08-03 17:52:15 +00:00
test_compute_utils.py Convert test_compute_utils to use Instance object 2015-07-10 13:59:05 -07:00
test_compute_xen.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
test_compute.py Don't check flavor disk size when booting from volume 2015-08-12 15:45:19 +01:00
test_flavors.py Make compute unit tests inherit from test.NoDBTestCase 2015-02-24 17:54:29 +02:00
test_host_api.py Code clean up db.instance_get_all_by_host() 2015-05-12 08:16:41 +00:00
test_hvtype.py libvirt: rename parallels driver to virtuozzo 2015-07-29 18:40:12 +03:00
test_keypairs.py Fixes X509 keypair creation failure 2015-04-28 12:21:53 +03:00
test_multiple_nodes.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
test_resource_tracker.py Remove 'scheduled_at' - DB cleanup 2015-08-04 12:40:17 +05:30
test_resources.py Make compute unit tests inherit from test.NoDBTestCase 2015-02-24 17:54:29 +02:00
test_rpcapi.py Add MKS console support 2015-07-25 15:01:44 +03:00
test_shelve.py Execute _poll_shelved_instances only if shelved_offload_time is > 0 2015-07-23 01:08:50 -07:00
test_stats.py Convert nova.compute.* to use instance dot notation 2015-02-25 17:21:36 -05:00
test_tracker.py Merge "Use flavor object in compute manager" 2015-07-20 11:06:30 +00:00
test_virtapi.py Switch to moxstubout and mockpatch from oslotest 2014-12-02 08:03:42 -05:00
test_vmmode.py Convert nova.compute.* to use instance dot notation 2015-02-25 17:21:36 -05:00