The request and its destination
A flavor describes resources such as vCPUs, RAM and disk. An image provides the initial software or disk contents. An availability zone is a placement grouping exposed by the deployment. Its name alone does not establish physically independent power or networking.
For a valid server request, Nova records state and coordinates the work. Its scheduler selects a host. The Nova Compute agent on that host controls the VM lifecycle through its driver, for example using libvirt with QEMU/KVM. The guest runs on the compute host. This is a conceptual sequence because image, network and volume operations can occur at different points in a real boot.
Work a placement decision
An added example requests 4 vCPUs, 8 GiB of RAM and zone A. Assume all unlisted constraints are satisfied and the eligible hosts score only on free RAM.
| Host | Zone | Free vCPUs | Free RAM | Filter result |
|---|---|---|---|---|
| H1 | A | 8 | 16 GiB | Eligible |
| H2 | A | 8 | 10 GiB | Eligible |
| H3 | B | 16 | 32 GiB | Wrong zone |
| H4 | A | 2 | 20 GiB | Insufficient CPU |
A positive RAM weight prefers H1 and spreads work among roomier hosts. A negative RAM weight favors H2 and packs work. H3 stays excluded in either case. In the lecture’s simplified model the score combines weighted properties, so additional criteria can change the ranking.
Affinity places cooperating VMs together. Anti-affinity spreads replicas across hosts so one host failure affects fewer replicas. Placement at provisioning time does not imply continuous relocation or a global optimum across successive requests. An I/O-heavy workload can still perform poorly if its network path is unsuitable. Filter names and defaults in the slides belong to the lecture’s configuration examples.
Retrieval
A replica must run away from H1 and the request otherwise matches the table. Where can it go? H2 is the only remaining candidate. Anti-affinity changes eligibility before weights can decide.
Source: Lecture 09 - OpenStack, printed slides 25–37 and 51. See Cloud Datacenter Zones and Regions.