Skip to content
Cloudbricks.dev logo

COA - Lab Build: Kolla-Ansible All-in-One

Part 1 of the COA series: build the Ubuntu 24.04 host, install Kolla-Ansible 22.x, deploy OpenStack 2026.1 Gazpacho, and verify a working cloud.

Kishore 7 min read

The COA is a performance exam. You need a cloud you can break, rebuild, and practise on until the commands are muscle memory. This post builds that cloud: a single-node Kolla-Ansible deployment of OpenStack 2026.1 “Gazpacho” on Ubuntu 24.04 LTS.

It is deliberately minimal. One node, default services, no high availability. The goal is a working cloud that covers every exam domain, not a production deployment.

What you need

ResourceMinimumRecommended
vCPU48
RAM8 GB16 GB
Disk60 GB100 GB
NetworkOne NIC with a static IPTwo NICs (management + provider)
OSUbuntu 24.04 LTSUbuntu 24.04 LTS

Nested virtualisation must be enabled if the lab host is itself a VM. Without it, instances will be extremely slow or fail to boot.

The host needs:

  • A static IP address and a resolvable hostname.
  • Outbound internet access during the build (container images, packages).
  • A second disk or free space for Cinder if you want to create volumes.

Prepare Ubuntu

Install Ubuntu Server 24.04, then update it:

sudo apt update && sudo apt full-upgrade -y
sudo reboot

Set the hostname and make it resolve locally:

sudo hostnamectl set-hostname coa-lab
echo "127.0.1.1 coa-lab" | sudo tee -a /etc/hosts

Disable the firewall for the lab, or open the ports Kolla-Ansible needs. The simplest path for a lab is to disable ufw:

sudo systemctl disable --now ufw

Do not copy that to production. In a real deployment, open only the ports in the Kolla-Ansible documentation and keep the firewall on.

Network

Give the host a static address. On Ubuntu 24.04, netplan configuration lives in /etc/netplan/. A minimal static config:

network:
  version: 2
  ethernets:
    ens33:
      dhcp4: false
      addresses:
        - 192.168.10.50/24
      routes:
        - to: default
          via: 192.168.10.1
      nameservers:
        addresses: [1.1.1.1, 8.8.8.8]

Apply it:

sudo netplan apply
ip -brief address

Note the interface name and address. You will put both into globals.yml.

Install dependencies

Kolla-Ansible is a Python application. Install the build dependencies and a virtual environment:

sudo apt install -y \
  python3-dev python3-venv python3-pip \
  libffi-dev gcc libssl-dev git

Create a dedicated user and virtual environment:

sudo useradd -m -s /bin/bash kolla
sudo passwd kolla
sudo su - kolla
python3 -m venv ~/kolla-venv
source ~/kolla-venv/bin/activate
pip install -U pip

Install Kolla-Ansible 22.x, the release that tracks OpenStack 2026.1:

pip install "kolla-ansible>=22,<23"
kolla-ansible --version

The version string should report 22.x. If it does not, check that you are inside the virtual environment.

Install the configuration

Kolla-Ansible ships example configuration in /usr/share/kolla-ansible/. Copy it into /etc/kolla:

sudo mkdir -p /etc/kolla
sudo chown $USER:$USER /etc/kolla
cp -r ~/kolla-venv/share/kolla-ansible/etc_examples/kolla/* /etc/kolla/
cp ~/kolla-venv/share/kolla-ansible/ansible/inventory/all-in-one .

You now have:

  • /etc/kolla/globals.yml — the main configuration.
  • /etc/kolla/passwords.yml — service passwords.
  • ~/all-in-one — the inventory for a single node.

Generate passwords:

kolla-genpwd

This fills every empty value in passwords.yml. Keep the file; you will need the Keystone admin password later.

Configure globals.yml

Edit /etc/kolla/globals.yml. The settings that matter for this lab:

kolla_base_distro: "ubuntu"
kolla_install_type: "source"
openstack_release: "2026.1"

kolla_internal_vip_address: "192.168.10.254"
network_interface: "ens33"
neutron_external_interface: "ens34"

neutron_plugin_agent: "ovn"

enable_horizon: "yes"
enable_cinder: "yes"
enable_cinder_backend_lvm: "yes"
cinder_volume_group: "cinder-volumes"

What each line does:

SettingMeaning
kolla_internal_vip_addressThe address the APIs and Horizon are reached on. It must be a free address on the management subnet; keepalived adds it to the interface.
network_interfaceThe interface for management and API traffic.
neutron_external_interfaceThe interface for provider/external networks. It must be a separate NIC with no IP.
neutron_plugin_agentovn is the default for current releases.
enable_cinderBlock storage, needed for the Block Storage domain.

If you only have one NIC, you can leave neutron_external_interface unset and use tenant networks only for practice. Floating IPs and provider networks need the second interface.

Cinder LVM

If you enabled the LVM backend, create the volume group on a free disk or loop device:

sudo pvcreate /dev/sdb
sudo vgcreate cinder-volumes /dev/sdb

For a lab without a spare disk, a loop device works:

sudo truncate -s 20G /var/lib/cinder-volumes.img
sudo losetup -f --show /var/lib/cinder-volumes.img
sudo pvcreate /dev/loop0
sudo vgcreate cinder-volumes /dev/loop0

A loop device does not survive a reboot unless you add it to the boot configuration. For a lab you rebuild often, that is usually acceptable; document it if you need persistence.

Bootstrap and prechecks

Activate the virtual environment and bootstrap the host:

source ~/kolla-venv/bin/activate
kolla-ansible -i ./all-in-one bootstrap-servers

This installs container runtime, configures the kernel modules, and prepares the host. Then run the prechecks:

kolla-ansible -i ./all-in-one prechecks

Prechecks validate the configuration before anything is deployed. Read every warning. The common failures are:

  • The VIP is not reachable or is already in use.
  • network_interface is wrong.
  • The external interface has an IP address.
  • Docker is not installed or the daemon is not running.
  • The host cannot resolve its own hostname.

Deploy

kolla-ansible -i ./all-in-one deploy

The first deploy pulls a large number of container images and takes 20–40 minutes on a lab connection. Do not interrupt it.

When it finishes, generate the admin credentials:

kolla-ansible -i ./all-in-one post-deploy

This writes /etc/kolla/admin-openrc.sh. Source it:

source /etc/kolla/admin-openrc.sh

Verify the cloud

Start with the token and the service catalog:

openstack token issue
openstack service list
openstack endpoint list

Then the control plane:

openstack compute service list
openstack network agent list
openstack volume service list
openstack image list

Every compute service should be enabled and up. Every network agent should be Alive. If a service is down, check its container:

sudo docker ps -a | grep nova
sudo docker logs nova_compute

Kolla-Ansible runs each service in a container named <project>_<service>. docker logs is the first place to look.

Create the external network

To launch an instance with a floating IP, create a provider network on the external interface:

openstack network create --external \
  --provider-network-type flat \
  --provider-physical-network physnet1 \
  public

openstack subnet create --network public \
  --subnet-range 192.168.10.0/24 \
  --gateway 192.168.10.1 \
  --allocation-pool start=192.168.10.100,end=192.168.10.199 \
  --no-dhcp \
  public-subnet

The physnet1 name must match the physical network mapping in the Neutron configuration. Kolla-Ansible creates that mapping from neutron_external_interface; confirm it in /etc/kolla/neutron-openvswitch-agent/ or the OVN configuration if the network fails to create.

Launch a test instance

openstack flavor create --vcpus 1 --ram 512 --disk 5 m1.tiny
openstack keypair create lab-key > lab-key.pem
chmod 600 lab-key.pem

wget https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img
openstack image create --disk-format qcow2 --container-format bare \
  --file jammy-server-cloudimg-amd64.img ubuntu-22.04

openstack network create demo-net
openstack subnet create --network demo-net --subnet-range 10.0.0.0/24 demo-subnet
openstack router create demo-router
openstack router add subnet demo-router demo-subnet
openstack router set --external-gateway public demo-router

openstack server create --flavor m1.tiny --image ubuntu-22.04 \
  --network demo-net --key-name lab-key demo-vm

Watch it become ACTIVE:

openstack server list
openstack server show demo-vm

Assign a floating IP:

openstack floating ip create public
openstack server add floating ip demo-vm <floating-ip>

Horizon

Horizon is served on the VIP:

http://192.168.10.254/

Sign in as admin with the password from /etc/kolla/passwords.yml:

grep keystone_admin_password /etc/kolla/passwords.yml

If Horizon returns a 500, check the Horizon and Keystone containers. A common cause is a mismatch between the VIP and the address Horizon is configured to reach Keystone on.

Rebuild and reset

You will break the lab. Know how to reset it:

kolla-ansible -i ./all-in-one destroy --yes-i-really-really-mean-it

That removes the containers and the deployed configuration but leaves the host prepared. A full rebuild is destroy, then deploy again. Keep the inventory and /etc/kolla under version control (with passwords.yml excluded or encrypted) so a rebuild is repeatable.

Version notes

The exam tests Caracal (2024.1). This lab runs Gazpacho (2026.1). The CLI and Horizon workflows are the same shape, but a few things can differ:

  • Default policy files and role names.
  • Horizon panel layout.
  • Neutron’s default driver (OVN is now the norm).
  • Microversion defaults for Nova and Cinder.

When a command in a later post differs from what you see in exam material, the difference is usually a flag or a default, not a concept. Check the release notes for the service in question.

Troubleshooting

  • bootstrap-servers fails on package install. Check DNS and outbound access; the host must reach the Ubuntu and container registries.
  • Prechecks fail on the VIP. The VIP must be free and reachable. On a single node, use the host’s own address.
  • Deploy hangs pulling images. Check disk space and registry connectivity. docker images shows what has arrived.
  • Nova compute is down. Check nova_compute logs and that /dev/kvm exists and is accessible.
  • Instances cannot reach the network. Check the provider network’s physical mapping and the external interface.
  • Horizon 500. Check the Horizon container logs and the Keystone endpoint URLs.