Skip to content

OKD OpenStack lab

Stop 6 · Compare

A reproducible laboratory for learning how OpenStack is deployed, operated and maintained when its lifecycle is managed by Kubernetes operators (openstack-k8s-operators) on OKD, the community distribution of Kubernetes that powers OpenShift.

LUMO and Kest, a bearded keeper in a navy coat resting a hand on a brass lever, stand at the gate of a seaside citadel where brass arms move identical crates along rails.

It is written by and for OpenStack operators who know deployment tools such as Kolla-Ansible and want to understand the operator-based model: what a KeystoneAPI resource is, why editing a ConfigMap by hand does nothing, how a configuration change becomes a rolling restart, what an upgrade looks like, and where to look when something is stuck.

Project status: validated end to end on one environment. In November 2026 the lab was deployed from this repository on one host cloud, from the Terraform apply to an instance booted on the compute node. The operations, troubleshooting and lifecycle guides were then run against it, including database and etcd restores and a temporary scale-out to three compute nodes. Not exercised: an operator upgrade through OLM (no newer bundle was offered), the OKD upgrade, the emulation path. Every page carries a status line, and docs/versions.md states precisely what has been tested and what has not.

New here? Start with the reading guide: it gives a map of the documentation and three reading paths (one hour, one day, one week).

Note

The lab lives in docs/okd/ of ozarland-academy, with its scripts, manifests and Terraform. Clone the repository and run every command of these pages from that folder: git clone https://github.com/OzarLand/ozarland-academy && cd ozarland-academy/docs/okd.

What you get

  • A small infrastructure — three virtual machines in any OpenStack cloud project, created with Terraform, using only regular tenant permissions.
  • A single-node OKD cluster installed with the agent-based installer.
  • The OpenStack operators and a minimal OpenStack control plane (Keystone, Glance, Placement, Neutron/OVN, Nova, with Galera, RabbitMQ and Memcached) running as pods.
  • An optional compute node configured by the data plane operator, able to boot instances (with KVM when nested virtualization is available, with emulation otherwise).
  • Documentation that explains each step, each Kubernetes concept through an OpenStack example, and a set of operational scenarios and runbooks to practise on the running lab.

Architecture at a glance

flowchart TB
    ws["workstation<br/>Terraform, cloud credentials"] -- ssh --> bastion["bastion<br/>DNS, oc client, jump host"]
    bastion -- "oc / ssh" --> okd
    subgraph okd["OKD node: single-node cluster, 16 vCPU / 32 GB"]
        direction TB
        ops["OpenStack operators"] -- reconcile --> cp["OpenStack control plane (pods)<br/>Keystone, Glance, Placement, Neutron/OVN, Nova<br/>Galera, RabbitMQ, Memcached"]
        plat["OKD platform, cert-manager, MetalLB"]
    end
    subgraph compute["compute node: CentOS Stream 9, 8 vCPU / 16 GB"]
        dp["nova-compute, libvirt, ovn-controller"]
    end
    ops -- "Ansible jobs over SSH (ctlplane)" --> dp
    dp -- "RabbitMQ, OVN southbound DB (internalapi)" --> cp
    dp -. "Geneve tunnels (tenant)" .- cp

Details, sizing rationale and the constraints of running a cloud inside a cloud: docs/architecture.md.

Prerequisites

  • A project in an OpenStack cloud with about 26 vCPU, 52 GB RAM and about 255 GB of volume storage, a CentOS Stream 9 image, and the right to create networks with port security disabled.
  • A workstation with Terraform, the OpenStack client, SSH and Python 3.

Full list and pre-flight checks: docs/prerequisites.md.

Deployment

# workstation
cp config/lab.env.example lab.env
cp deployment/infrastructure/terraform.tfvars.example deployment/infrastructure/terraform.tfvars
# edit both files, then:
scripts/workstation/create-dataplane-key.sh
terraform -chdir=deployment/infrastructure init
terraform -chdir=deployment/infrastructure apply
scripts/workstation/sync-to-bastion.sh
scripts/workstation/ssh-bastion.sh scripts/bastion/01-setup-bastion.sh
scripts/workstation/ssh-bastion.sh scripts/bastion/02-create-agent-iso.sh
scripts/workstation/boot-okd-node.sh

# bastion (scripts/workstation/ssh-bastion.sh)
scripts/bastion/03-wait-for-okd.sh
scripts/bastion/04-platform-services.sh
scripts/bastion/05-openstack-operators.sh
scripts/bastion/06-openstack-controlplane.sh
scripts/bastion/07-openstack-dataplane.sh
tests/smoke-test.sh --functional

Each command is explained — what it deploys, why, how to verify it, what to check when it fails — in the installation guide.

Documentation

Section Content
Reading guide Map of the documentation, reading paths, where to find what
Architecture Design, sizing, networks, nested-cloud constraints, alternatives
Prerequisites Quota, features and pre-flight checks
Versions and status Selected versions, compatibility reasoning, what is tested, limitations
Installation Seven explained steps from empty project to running cloud
Concepts Kubernetes, OKD and operators explained to OpenStack operators
Operations Day-2 guide: status, logs, restarts, configuration changes
Troubleshooting Runbooks by symptom, with fault reproduction
Lifecycle Updates, operator upgrades, backup and restore, OKD maintenance
Knowledge base Tested answers to day-to-day OpenStack and OKD administration questions, cheat sheet, open questions
Upstream contributions Method, candidate subjects with evidence and journal for contributing back to the operators and OKD
Publication readiness Review of secrets, history, licensing and open points before a public release

Learning roadmap

LUMO in a navy cape holds a book and a full-size brass lantern, with a small brass key hanging from the belt.

Phase Goal Material
1. Understand the architecture How OKD hosts OpenStack; operators, CRDs, reconciliation Architecture, Concepts, installation steps 3–6
2. Operate OpenStack Inspect, read logs, restart, reconfigure, troubleshoot Operations, Troubleshooting
3. Manage the lifecycle Updates, operator upgrades, backup, rollback limits Lifecycle
4. Deepen OKD skills Cluster networking, storage, scheduling, upgrades OKD in brief, OKD upgrade, node and OKD runbook

The order is deliberate: the lab keeps the OKD layer minimal so that the first weeks are spent on OpenStack operations.

Tested versions and limitations

Component Version
OKD 4.22.0-okd-scos.10 (Kubernetes 1.35)
OpenStack operators 18-stable
OpenStack services 2023.1 Antelope
Compute node OS CentOS Stream 9

Validated on one deployment (KVM compute node, behind an HTTPS proxy):

  • Executed successfully: infrastructure, bastion, OKD installation, platform services, operators, control plane, data plane, smoke and functional tests; the day-2 operations that do not risk the lab (see the status line of each page); a staged minor update of the control plane and the data plane (with a simulated newer version); all backup procedures; a database restore and an etcd restore; node reboot and full shutdown/restart of the lab; scale-out to two and three compute nodes and back, with migration and gateway failover.
  • Not executed: a volume-snapshot rollback, an operator upgrade through OLM, the OKD upgrade to 5.0, rotation of the database passwords, faults that could leave the lab unrecoverable, the QEMU emulation path and the deployment without floating IPs.

The operator catalog is pinned to the digest that was validated; that digest, the status of every part of the lab and the list of known limitations are maintained in docs/versions.md. In short: single node (no high availability), no Cinder/Swift, instances reachable from inside the lab only.

What to take away if you run Kolla-Ansible

This module describes one model and what was observed on one lab. It makes no recommendation for or against either approach. What it does establish, and what it does not:

  • The model, mapped to what you know. Most Kolla-Ansible actions have a counterpart (configuration, restart, backup, upgrade): see the translation table. The biggest difference is that the operators keep reconciling the desired state, so a manual edit of a ConfigMap is reverted (manual changes reverted).
  • Rollback is different. "Redeploy the previous tag" has no equivalent for three of the four version axes; the lab could not test a downgrade (rollback limitations).
  • One node, one replica. With one replica, a restart is an outage of that service of 20 to 60 seconds on the lab (restart a service). Nothing here measures behaviour with several nodes or replicas under load (known limitations).
  • Not exercised. An operator upgrade through OLM, the OKD upgrade, and the volume snapshot rollback were not executed; the minor update used a simulated newer version (validation status, minor update).
  • Release and network back end. The services are 2023.1 "Antelope" images with OVN, deployed by 18-stable operators (versions). The other modules of the Academy were observed on 2026.1, mostly with ML2/OVS (VM runbooks). The module does not say which of its findings hold on a newer release: treat the operator model and its mechanics as the lesson, and re-test the numbers on the release you run.
  • One environment. Everything was validated on one deployment, on one host cloud (known limitations).

Contributing

See CONTRIBUTING.md. Corrections from operators running the lab on other clouds are especially welcome.

Acknowledgements

The control plane, data plane and network manifests are derived from the samples of the upstream openstack-operator and install_yamls projects (Apache License 2.0). Each derived file names its source.

License

Apache License 2.0.