From one host to a cloud

KVM runs guest code on a host. OpenStack gives tenants a common API for resources across many hosts. The controller side accepts requests and coordinates work. A compute node runs the guest and its local compute agent. The source also shows a network node running routing and DHCP services. These are roles in the illustrated deployment and can be arranged differently.

A user can submit a request through Horizon, the command line or the REST API. The first two use service APIs underneath. A database records resource state, while internal messages give workers tasks and carry replies. If a worker restarts, durable state can still describe the VM. Database and broker redundancy require their own design.

Follow a message

In the lecture’s RabbitMQ example, a producer publishes to topic X. The broker delivers to the subscribers for X without the producer tracking their IP addresses. A monitoring consumer can receive a copy if the routing is configured for it. For a specific compute task, a deployment can route work to the chosen host’s queue. Topic fan-out depends on routing and subscriptions.

  • rpc.cast sends work without waiting for an RPC result.
  • rpc.call waits for a reply.

The broker can itself communicate over TCP. The benefit is that application requests can be addressed through logical queues instead of opening a direct connection to each worker.

Retrieval

The create API says a request was accepted. Is the VM already running? Acceptance and initial state can be recorded before asynchronous work finishes. Check the instance status to learn the outcome.

Source: Lecture 09 - OpenStack, printed slides 5–24. See Cloud Management Systems and QEMU and KVM.