Octavia¶
This page is the starting point for Octavia, the octavia role: the containers octavia_api,
octavia_health_manager, octavia_housekeeping and octavia_worker, plus octavia_driver_agent when
enable_octavia_driver_agent (default: only with neutron_plugin_agent: ovn, group_vars/all.yml:949)
(roles/octavia/defaults/main.yml:2-57), on the control
nodes of the example inventory (inventory/multinode:161-162), selected by the tag octavia (site.yml:979-994).
Still holds in 2025.1: with octavia_auto_configure (default: true when amphora is in octavia_provider_drivers,
which it is by default, group_vars/all.yml:1411, roles/octavia/defaults/main.yml:387), deploy and reconfigure
create the amphora flavor, SSH keypair, security groups, lb-mgmt network and subnet (and a router for IPv6), run_once
on octavia-api[0] (roles/octavia/tasks/deploy.yml:4-5, roles/octavia/tasks/prepare.yml:2-161) CODE. The amphora
image and the four certificate files are still the operator's (Component dependencies
§3). As in 2024.1, the amphora provider also turns on the Octavia
jobboard by default (group_vars/all.yml:950), which needs Redis or, new in 2025.1, Valkey, and a second database,
octavia_persistence CODE.
Changed in 2025.1 CODE:
- Jobboard on Valkey or Redis: with
enable_valkey, the[task_flow]section lists thevalkeyhosts withvalkey_master_passwordandvalkey_sentinel_port; otherwise, withenable_redis, theredishosts as in 2024.1 (roles/octavia/templates/octavia.conf.j2:168-186). The precheck now accepts either (roles/octavia/tasks/precheck.yml:68-74). Bothenable_redisandenable_valkeydefault tono(group_vars/all.yml:959,group_vars/all.yml:965), so a default Octavia configuration still failsprechecksuntil one of them is on orenable_octavia_jobboard: no. The sentinel name is still written askolla(roles/octavia/templates/octavia.conf.j2:183), which matches the defaultvalkey_sentinel_monitor_name(group_vars/all.yml:751) but not an override of it. upgradeno longer creates the persistence database: the two persistence tasks added toupgrade.ymlfor the 2023.2 → 2024.1 path are gone (roles/octavia/tasks/upgrade.yml:1-9);deployandreconfigurestill create it (roles/octavia/tasks/bootstrap.yml:18-32,roles/octavia/tasks/bootstrap.yml:54-72).- The OVN driver agent always talks to the OVN SB database directly:
ovn_sb_connectioninoctavia.confisovn_sb_connection_no_relay(roles/octavia/templates/octavia.conf.j2:33,group_vars/all.yml:647), so it does not follow the new OVN SB relays (OVN). [neutron] valid_interfaces = internalreplacesendpoint_type = internal(roles/octavia/templates/octavia.conf.j2:160-161).- Resource tasks use the
openstack.cloudcollection:prepare.yml,get_resources_info.yml,hm-interface.ymlandregister.ymlcallopenstack.cloud.*modules instead of the oldos_*names, and the openrc task'sbecomefollowsoctavia_openrc_become(defaulttrue). - Restarts: the config tasks notify nothing;
check-containers.ymlimportsservice-check-containers, which restarts only the containers whose configuration or definition changed (Tags §2.4); the five handlers have nokolla_action != "config"guard any more.check.yml, empty in 2024.1, runs theservice-checkrole (roles/octavia/tasks/check.yml:2-4). - No rolling reconfigure or upgrade through the CLI (F19).
- First-run changes: the queue settings and
use_queue_managerare always rendered (roles/octavia/templates/octavia.conf.j2:133-147; F17), the containers always mount/dev/shm,www_authenticate_uriiskeystone_public_urlandmemcache_security_strategya variable (roles/octavia/templates/octavia.conf.j2:57,63,74). Every octavia container restarts or is recreated. - CLI:
kolla-ansible prechecksandkolla-ansible octavia-certificates --check-expiry <days>are now Python commands (kolla_ansible/cli/commands.py:99-106,kolla_ansible/cli/commands.py:198-224); they pass the same variables as the 2024.1 shell script.
The lists below say where the study covers how to operate it, its impact, its dependencies and the evidence, what to check around a run and what stays open; the service card follows them.
Since 2024.1, still in 2025.1¶
- The jobboard and its database CODE:
octavia.confgets a[task_flow]section withpersistence_connectiontooctavia_persistence(roles/octavia/templates/octavia.conf.j2:168-186,roles/octavia/defaults/main.yml:80-82); the backend SSL options are written asssl:False(roles/octavia/templates/octavia.conf.j2:182,roles/octavia/templates/octavia.conf.j2:184). The passwordoctavia_persistence_database_passwordis a key ofetc/kolla/passwords.yml:136. The assert runs only in the precheck action: the role includes<kolla_action>.yml(roles/octavia/tasks/main.yml:2) andprecheckssetskolla_action=precheck(kolla_ansible/cli/commands.py:106);deploy,reconfigureandupgraderender the[task_flow]section whether or not the Redis or Valkey play runs (site.yml:385-411). How Octavia behaves when the jobboard points at hosts with no Redis or Valkey is NOT AVAILABLE. - The bootstrap container also runs
upgrade_persistenceCODE: withKOLLA_BOOTSTRAP, theoctavia-apiimage runsoctavia-db-manage upgrade headthenoctavia-db-manage upgrade_persistence(kolladocker/octavia/octavia-api/extend_start.sh:5-9), on every deploy, reconfigure and upgrade (roles/octavia/tasks/bootstrap_service.yml:2-20). Whatupgrade_persistencedoes when the jobboard is off is NOT AVAILABLE. kolla-ansible octavia-certificates --check-expiry <days>CODE: it adds-e octavia_certs_check_expiry=yes -e octavia_certs_expiry_limit=<days>(kolla_ansible/cli/commands.py:217-222); theoctavia-certificatesrole, unchanged since 2024.1, then only readsserver_ca.cert.pem,client_ca.cert.pemandclient.cert-and-key.pemin/etc/kolla/config/octavia/and asserts that each one is still valid in<days>days (roles/octavia-certificates/tasks/main.yml:10-12,roles/octavia-certificates/tasks/check_expiry.yml:2-24). The CA private keyserver_ca.key.pemis not checked. The default validity is 365 days for the client certificate and 3650 days for both CAs (roles/octavia-certificates/defaults/main.yml:22,roles/octavia-certificates/defaults/main.yml:30,roles/octavia-certificates/defaults/main.yml:38).- Notifications CODE:
driver = messagingv2andtopics = notificationsonly with Ceilometer, otherwisedriver = noop(roles/octavia/templates/octavia.conf.j2:125-129).
Where to look¶
Operate¶
No operation page gives a command line for the octavia tag, and the tag has no row of its own in Tags
§3 or in the Tag index. What the
study says about running it is in fact sheet D: the plays the tag selects
(§2.1) and the task flow per action
(§2.3). The certificate expiry
check is the command kolla-ansible octavia-certificates --check-expiry <days> (above); it runs on localhost only
(ansible/octavia-certificates.yml:1-5).
Dependencies¶
- Dependencies: Component dependencies §3
- Redis or Valkey CODE: with the default jobboard, Octavia's config lists the
valkeyhosts, or else theredishosts (roles/octavia/templates/octavia.conf.j2:172,roles/octavia/templates/octavia.conf.j2:176), andprechecksrequiresenable_redisorenable_valkey(roles/octavia/tasks/precheck.yml:68-74). Insite.ymlthe redis and valkey plays come before the octavia play (site.yml:385,site.yml:399,site.yml:979-994).
Evidence¶
- Fact sheet: fact sheet D §2
- Image side: Kolla images
§4 (row
octavia-api), Kolla images §5
Before and after a run¶
- Before
prechecks,deployorupgradewith the amphora provider, decide on the jobboard:enable_valkey: yesorenable_redis: yes(deployed by its own play) orenable_octavia_jobboard: no; and make surepasswords.ymlhasoctavia_persistence_database_password(see Since 2024.1) CODE. Switching an existing jobboard from Redis to Valkey changesoctavia.confon every octavia host; what happens to jobs in flight is NOT AVAILABLE, to be confirmed by the community. - fact sheet D §2.5, "OpenStack resources: Kolla creates none": still not true in 2025.1 with the
default
octavia_auto_configure. The role then creates the flavor (amphora, 1 vCPU, 1024 MB, 5 GB), the keypair, the security groups,lb-mgmt-net/lb-mgmt-subnet(10.1.0.0/24by default) and, for IPv6,lb-mgmt-router, andoctavia.conftakesamp_boot_network_list,amp_secgroup_listandamp_flavor_idfrom what it looked up (roles/octavia/tasks/prepare.yml:2-161,roles/octavia/tasks/get_resources_info.yml:2-75,roles/octavia/tasks/config.yml:2-3,roles/octavia/templates/octavia.conf.j2:91-109,roles/octavia/defaults/main.yml:320-325,roles/octavia/defaults/main.yml:370-383) CODE. It does not create the amphora image (amp_image_tag = amphora,roles/octavia/templates/octavia.conf.j2:89,roles/octavia/defaults/main.yml:296). The certificates come fromkolla-ansible octavia-certificatesor the operator; a precheck fails when one of the four files is missing from/etc/kolla/config/octavia/(roles/octavia/tasks/precheck.yml:41-55). Withoctavia_auto_configure: no, the fouramp_*options are written only if the operator defines them (roles/octavia/templates/octavia.conf.j2:91-103), with no precheck. octavia_auto_configureand older upgrades: the comment that says to set it tonowhen upgrading from Ussuri is still there (group_vars/all.yml:1409-1410), although 2025.1 upgrades from 2024.1. With it left at its default,upgraderunsconfig.yml, whose first step looks up the flavor, project, security groups and network by name (roles/octavia/tasks/upgrade.yml:2,roles/octavia/tasks/config.yml:2-3,roles/octavia/tasks/get_resources_info.yml:2-75) CODE; what happens when resources created by hand have other names is NOT AVAILABLE (theopenstack.cloudmodules are not in these sources).- fact sheet D §2.6, health-manager network requirements: every octavia host (api, worker and housekeeping
too) must have
octavia_network_interfacewith an address, or templating fails (roles/octavia/templates/octavia.conf.j2:80-82,group_vars/all.yml:303,group_vars/all.yml:326). With the defaultoctavia_network_type: provider(group_vars/all.yml:1419), the interface defaults toapi_interfaceand Kolla creates nothing on the controllers. Withoctavia_network_type: tenant(andoctavia_auto_configure), the interface defaults too-hm0, and on each health-manager host Kolla creates a Neutron port, adds it tobr-intwith<engine> exec openvswitch_vswitchd ovs-vsctl, and installs and starts anoctavia-interfacesystemd unit (roles/octavia/tasks/config-host.yml:2-6,roles/octavia/tasks/hm-interface.yml:2-100); a precheck rejectstenantunlessneutron_plugin_agentisopenvswitch(roles/octavia/tasks/precheck.yml:57-66) CODE. - fact sheet D §2.3:
reconfigure=deploy, so the database creation (two databases), the DB sync, keystone registration and, withoctavia_auto_configure, the resource creation re-run;upgraderuns neitherregister.ymlnorprepare.ymlnorconfig-host.yml(roles/octavia/tasks/reconfigure.yml:2,roles/octavia/tasks/deploy.yml:2-19,roles/octavia/tasks/upgrade.yml:1-9) CODE. - fact sheet C §4.2: enabling or disabling a service that has a horizon plugin (designate, octavia,
magnum, …) changes the horizon container environment. For Octavia this is
ENABLE_OCTAVIA, fromenable_horizon_octavia, which followsenable_octavia(roles/horizon/defaults/main.yml:20,group_vars/all.yml:899); the horizon check compares the environment (roles/service-check-containers/tasks/main.yml:19,module_utils/kolla_container_worker.py:84), so the horizon container is recreated on the next deploy/reconfigure even if no horizon config changed CODE.
Known limits and open points¶
- Known bugs and limitations, row
octavia: both Ussuri items stay gone in 2025.1.upgrade.ymlhas no "Removing octavia user from admin project" task (roles/octavia/tasks/upgrade.yml:1-9), and amphora resources other than the image are created whenoctavia_auto_configureis on (above). Status: CODE. - Since 2024.1: the Redis (in 2025.1, Redis or Valkey) requirement of the jobboard is checked only by
prechecks; anupgradeordeployrun withoutprechecksrenders a jobboard configuration whether or not either is deployed (roles/octavia/tasks/precheck.yml:68-74,roles/octavia/templates/octavia.conf.j2:168-186) CODE. The effect on the Octavia services is NOT AVAILABLE. - fact sheet D §2.6: adding or removing a health-manager host changes octavia.conf on all octavia hosts
and restarts them (
controller_ip_port_listloops overoctavia-health-manager,roles/octavia/templates/octavia.conf.j2:82) CODE. NOT AVAILABLE: whether the controller list is written into an amphora at boot, so that existing amphorae keep the old list until failover. Likewise, a change of thevalkeyorredisgroup changesjobboard_backend_hosts(roles/octavia/templates/octavia.conf.j2:172,roles/octavia/templates/octavia.conf.j2:176) and so octavia.conf on all octavia hosts CODE. - fact sheet D
§7, item
5, read against 2025.1:
heartbeat_key = insecureis still hard-coded (roles/octavia/templates/octavia.conf.j2:81); the amp network, secgroup and flavor are filled in by default (octavia_auto_configure) and stay unchecked only with it off; the admin-role removal on upgrade is gone; the HM precheck still tests the port onapi_interface_addresswhile the health manager bindsoctavia_network_interface_address(roles/octavia/tasks/precheck.yml:30-39,roles/octavia/templates/octavia.conf.j2:80), which differ only whenoctavia_network_interfaceis notapi_interface(e.g.tenant); the CA private key (server_ca.key.pem) is still copied to worker, housekeeping and health-manager (roles/octavia/tasks/config.yml:99-138) CODE. Since 2024.1: the jobboard section writesssl:Falsefor both the Redis backend and the sentinel (roles/octavia/templates/octavia.conf.j2:182,roles/octavia/templates/octavia.conf.j2:184) CODE. - fact sheet D §2.5: if
enable_barbican, the region and endpoint for the cert manager are set inoctavia.conf(roles/octavia/templates/octavia.conf.j2:21-25). NOT AVAILABLE: whether TLS-terminated listeners need barbican. - fact sheet D §8: NOT AVAILABLE: Octavia amphora behaviour after a change in the health-manager host list.
- fact sheet D
§7, item
15: Barbican and other bootstraps (octavia, manila, ceilometer, masakari, zun, cyborg) re-run their DB sync container
on every deploy/reconfigure. For Octavia this now includes
upgrade_persistence(kolladocker/octavia/octavia-api/extend_start.sh:5-9) CODE. - F5, "
reconfigure=deploy": a reconfigure re-runs Keystone registration, DB creation/grants and the DB-sync bootstrap containers of most services CODE. - What is not known: fact sheet D has its own NOT AVAILABLE list, and its §2.3, §2.5 and §2.6 are among the sections that contain NOT AVAILABLE marks.
- Open questions and Findings have no entry on
Octavia. What the amphora resources created by
prepare.ymldo when they already exist with other settings (theopenstack.cloudmodules run withstate: present,roles/octavia/tasks/prepare.yml:12) is NOT AVAILABLE: the modules are not in these sources.
Service card¶
The rows of the card are explained on the Components page.
| Item | Value |
|---|---|
| Play | site.yml:979 |
| Tags | octavia |
| Play host patterns | octavia-api, octavia-health-manager, octavia-housekeeping, octavia-worker |
| Node types in play (example inventory) | control |
| Node types running its containers | control |
| Containers | octavia_api, octavia_driver_agent, octavia_health_manager, octavia_housekeeping, octavia_worker |
deploy/reconfigure flow (tasks/) |
register → prepare (if) → config-host → config → check-containers → clone (if) → bootstrap → flush handlers |
| Task files | bootstrap.yml, bootstrap_service.yml, check-containers.yml, check.yml, clone.yml, config-host.yml, config.yml, config_validate.yml, copy-certs.yml, deploy-containers.yml, deploy.yml, get_resources_info.yml, hm-interface.yml, loadbalancer.yml, main.yml, openrc.yml, precheck.yml, prepare.yml, pull.yml, reconfigure.yml, register.yml, stop.yml, upgrade.yml |
| Templates | octavia-api.json.j2, octavia-driver-agent.json.j2, octavia-health-manager.json.j2, octavia-housekeeping.json.j2, octavia-interface.service.j2, octavia-openrc.sh.j2, octavia-ssh-key.j2, octavia-worker.json.j2, octavia-wsgi.conf.j2, octavia.conf.j2 |
| Handlers (definition order) | Restart octavia-api container; Restart octavia-driver-agent container; Restart octavia-health-manager container; Restart octavia-housekeeping container; Restart octavia-worker container |
| Key variables | enable_octavia, octavia_amp_*, octavia_network_interface |
| Role dependencies | none |
Related¶
- fact sheet D §2 — the per-role evidence: plays, services, task flow, config files and handlers, health-manager network requirements
- Horizon — octavia is one of the services with a horizon plugin: enabling or disabling it recreates the horizon container on the next deploy/reconfigure
- Barbican — if
enable_barbican,octavia.confgets the region and endpoint for the cert manager - Component dependencies §3 — Octavia's config references Nova, Neutron and Glance, and Redis or Valkey for the jobboard
- Execution flow §2.2 — Octavia is near the end of the deployment order
- Kolla images §4 — what the
bootstrap_octaviacontainer runs, includingupgrade_persistence - Components — the other component pages