Tests for compute resource tracking.
-
class BaseTestCase(*args, **kwargs)
Bases: nova.test.TestCase
-
setUp()
-
class BaseTrackerTestCase(*args, **kwargs)
Bases: nova.tests.compute.test_resource_tracker.BaseTestCase
-
setUp()
-
class FakeVirtDriver
Bases: nova.virt.driver.ComputeDriver
-
get_available_resource(nodename)
-
get_host_ip_addr()
-
legacy_nwinfo()
-
class InstanceClaimTestCase(*args, **kwargs)
Bases: nova.tests.compute.test_resource_tracker.BaseTrackerTestCase
-
test_additive_claims()
-
test_claim_and_abort()
-
test_claim_and_audit()
-
test_context_claim_with_exception()
-
test_cpu_stats()
-
test_instance_claim_with_oversubscription()
-
test_instance_context_claim()
-
test_skip_deleted_instances()
-
test_update_load_stats_for_instance()
-
test_update_usage_only_for_tracked()
-
class MissingComputeNodeTestCase(*args, **kwargs)
Bases: nova.tests.compute.test_resource_tracker.BaseTestCase
-
setUp()
-
test_create_compute_node()
-
test_enabled()
-
class MissingServiceTestCase(*args, **kwargs)
Bases: nova.tests.compute.test_resource_tracker.BaseTestCase
-
setUp()
-
test_missing_service()
-
class NoInstanceTypesInSysMetadata(*args, **kwargs)
Bases: nova.tests.compute.test_resource_tracker.ResizeClaimTestCase
Make sure we handle the case where the following are true:
1) Compute node C gets upgraded to code that looks for instance types in
system metadata. AND
- C already has instances in the process of migrating that do not have
stashed instance types.
bug 1164110
-
setUp()
-
class OrphanTestCase(*args, **kwargs)
Bases: nova.tests.compute.test_resource_tracker.BaseTrackerTestCase
-
test_find()
-
test_usage()
-
class ResizeClaimTestCase(*args, **kwargs)
Bases: nova.tests.compute.test_resource_tracker.BaseTrackerTestCase
-
setUp()
-
test_abort()
-
test_additive_claims()
-
test_claim()
-
test_claim_and_audit()
-
test_dupe_filter()
-
test_resize_filter()
-
test_revert()
-
test_revert_reserve_source()
-
test_same_host()
-
test_set_instance_host_and_node()
-
class TrackerTestCase(*args, **kwargs)
Bases: nova.tests.compute.test_resource_tracker.BaseTrackerTestCase
-
test_free_disk_resource_value()
-
test_free_ram_resource_value()
-
test_init()
-
test_update_compute_node()
-
class UnsupportedDriverTestCase(*args, **kwargs)
Bases: nova.tests.compute.test_resource_tracker.BaseTestCase
Resource tracking should be disabled when the virt driver doesn’t
support it.
-
setUp()
-
test_disabled()
-
test_disabled_claim()
-
test_disabled_instance_claim()
-
test_disabled_instance_context_claim()
-
test_disabled_resize_claim()
-
test_disabled_resize_context_claim()
-
test_disabled_updated_usage()
-
class UnsupportedVirtDriver
Bases: nova.virt.driver.ComputeDriver
Pretend version of a lame virt driver.
-
get_available_resource(nodename)
-
get_host_ip_addr()
-
legacy_nwinfo()