Tests For Scheduler
Bases: nova.test.TestCase
Bases: object
Bases: nova.scheduler.api.reroute_compute
Bases: object
Bases: nova.test.TestCase
Test case for scheduler
A host given as an argument does not exists.
No instance are running on the given host.
Show_host_resources() works correctly as expected.
Bases: nova.test.TestCase
Test case for simple driver
Ensures driver doesn’t find hosts before they are enabled
Ensures the host with less cores gets the next one
Ensures the host with less gigabytes gets the next one
Raise excetion when original host doen’t have compatible cpu.
Original host and dest host has different hypervisor type.
Original host and dest host has different hypervisor version.
Destination host does not exist.
Confirms exception raises in case dest host does not exist.
Confirms exception raises when dest doesn’t have enough memory.
Confirms exceptioin raises in case dest and src is same host.
Confirms method finishes with no error.
Confirms src-compute node is alive.
The instance given by instance_id is not running.
Raise exception when volume node is not alive.
Confirms this method finishes with no error.
Ensures driver can find the hosts that are up
scheduler_live_migration() works correctly as expected.
Also, checks instance state is changed from ‘running’ -> ‘migrating’.
Ensures if you set availability_zone it launches on that zone
Ensures we don’t go over max cores
Ensures we don’t go over max gigabytes
Bases: nova.scheduler.driver.Scheduler
Scheduler Driver for Tests
Bases: nova.test.TestCase
Bases: nova.test.TestCase
Test case for zone scheduler