Add a compute node¶
How to add a compute node with bootstrap-servers, pull and deploy, each with --limit on the new host, and what
deploy --limit then touches: it creates the containers of the new compute, delegates tasks to a controller and, new
in 2025.1, to the first existing compute, gathers facts for all hosts, and needs the Nova API to answer. The sources
give no verification steps for the new compute beyond the one wait that deploy performs: see §3.
The scenario section is written for the assumed deployment, with compute004 as the new
host.
Warning
Existing hosts' /etc/hosts is not updated (bootstrap-servers --limit), and a full bootstrap-servers run carries
its own Docker-restart risk (R14) — see the caveats in §2.
1. Commands¶
1.1 Add a compute node¶
kolla-ansible bootstrap-servers -i multinode --limit compute004
kolla-ansible pull -i multinode --limit compute004
kolla-ansible deploy -i multinode --limit compute004
Details in §2.
- Changed in 2025.1, the CLI:
bootstrap-serversis a command of the Python CLI; it runskolla-host.ymlwithkolla_action=bootstrap-servers(kolla_ansible/cli/commands.py:158-170): facts first, then theopenstack.kolla.baremetalrole of ansible-collection-kolla on thebaremetalhosts of the limit (kolla-host.yml:1-14). The role installs the engine named bykolla_container_engine(dockerby default):openstack.kolla.{{ container_engine }}, thenopenstack.kolla.{{ container_engine }}_sdk(collectionroles/baremetal/tasks/install.yml:38,roles/baremetal/tasks/post-install.yml:7,roles/baremetal/defaults/main.yml:37; kolla-ansiblegroup_vars/all.yml:100). Use the engine of the rest of the deployment. - Facts for all hosts are still gathered, sequentially from
compute004: the second play ofgather-facts.ymlloops overkolla_ansible_delegate_facts_hosts(defaultgroups['all']) with a delegatedsetup(gather-facts.yml:34-62,group_vars/all.yml:43; loop items run one after another, ansible-core 2.18.20lib/ansible/executor/task_executor.py:299-336). Enable fact caching for large inventories: with cached facts the delegatedsetupis skipped (gather-facts.yml:60-61). - Discovery runs from the first compute of the batch, delegated to
nova-conductor[0](roles/nova-cell/tasks/deploy.yml:21-40,roles/nova-cell/tasks/wait_discover_computes.yml:42-43, :87-90,roles/nova-cell/tasks/discover_computes.yml:21). That host is outside the limit, butdelegate_toworks: Ansible looks the delegated host up in the whole inventory CODE (ansible-core 2.18.20lib/ansible/vars/manager.py:528-541). /etc/hostson existing hosts is not updated with the new compute (bootstrap-serverswas limited). Still holds in 2025.1: the file is written by theopenstack.kolla.etc_hostsrole, imported first byopenstack.kolla.baremetaland run on the play hosts only (collectionroles/baremetal/tasks/main.yml:2-3,roles/etc_hosts/tasks/main.yml:2-4,roles/etc_hosts/tasks/etc-hosts.yml:25-41;kolla-host.yml:4-14). Live migration withlibvirt_tls(hostname-based) and RabbitMQ name resolution may need a fullbootstrap-serversrun later (fact sheet E §3).- Not batched differently:
deployaccepts-e kolla_serial=N, but with one host in the limit nothing changes (F19 concernsreconfigureandupgradeonly).
2. Add a compute node¶
CODE deploy --limit compute004 (after bootstrap-servers --limit and pull --limit), read from the plays and
task files:
- On compute004: 10 containers created, one per
compare_containeritem of a compute: fluentd, kolla_toolbox, cron (common), iscsid (with Cinder and its iSCSI backend), openvswitch_db, openvswitch_vswitchd, neutron_openvswitch_agent, nova_libvirt, nova_ssh, nova_compute (roles/common/defaults/main.yml:3-32;roles/iscsi/defaults/main.yml:3-6, :62-67,group_vars/all.yml:911, playsite.yml:454-467;roles/openvswitch/defaults/main.yml:3-35;roles/neutron/defaults/main.yml:30-53;roles/nova-cell/defaults/main.yml:5-23, :55-66; groups ininventory/multinode). The count is the same as in 2024.1 (Compute scaling §2). The number of task results is NOT AVAILABLE. - New in 2025.1,
compute_id: before the containers start, the nova-cell config step lists all hypervisors throughkolla_toolboxon the first conductor. A new compute is not in that list, so the step writes/etc/kolla/nova-compute/compute_idwith a UUID derived from the host's node name (hypervisor_nodename | to_uuid), andconfig.jsoncopies it to/var/lib/nova/compute_id(roles/nova-cell/tasks/config.yml:53-110, generated at:104-110;roles/nova-cell/templates/nova-compute.json.j2:10-15). The UUID is a name-baseduuid5CODE (ansible-core 2.18.20lib/ansible/plugins/filter/core.py:350-358), so a new compute that reuses a former host's node name gets the samecompute_id. NOT AVAILABLE What Nova does when that id still belongs to a deleted compute node record; to be confirmed by the community. The list call needs the Nova API: if it fails, the new compute fails (F20). hostnqn, still holds: the nova-cell config step writes/etc/kolla/nova-compute/hostnqn,nqn.2014-08.org.nvmexpress:uuid:followed by a UUID computed fromansible_facts.hostname(roles/nova-cell/tasks/config.yml:248-257,roles/nova-cell/templates/hostnqn.j2:1);kolla_set_configscopies it to/etc/nvme/hostnqn(roles/nova-cell/templates/nova-compute.json.j2:65-70). Whether a storage backend uses it is NOT AVAILABLE.- New in 2025.1, the libvirt checks run on another compute: the version and script checks start two one-shot
containers from the
nova_libvirtimage,run_onceand delegated to the first host of thecomputegroup, an existing compute outside the limit, which must have the image or pull it (roles/nova-cell/tasks/version-check.yml:2-21,roles/nova-cell/tasks/version-check.yml:79-98). The current-version read runs only where anova_libvirtcontainer exists with another image, so not on compute004 (roles/nova-cell/tasks/version-check.yml:45-56) (F8). - Order on the new host, changed in 2025.1: the
openvswitchplay now runs beforenova.yml, and theneutronplay after it (site.yml:605-619,site.yml:667,site.yml:669-691). So on compute004openvswitch_dbandopenvswitch_vswitchdexist beforenova_computestarts, andneutron_openvswitch_agentonly after the nova plays, including the registration wait, which only looks for the compute service inopenstack compute service list(roles/nova-cell/tasks/wait_discover_computes.yml:8-43) (F13, partly no longer holds). NOT AVAILABLE Whether instances can be scheduled on compute004 successfully before the neutron play finishes (Execution flow §2.4). - Elsewhere (via
delegate_to):- a Neutron bootstrap (DB sync) container on
control01(roles/neutron/tasks/bootstrap_service.yml:2-21, imported byroles/neutron/tasks/bootstrap.yml:38;neutron-serveris a child ofcontrol,inventory/multinode:254-255); - the hypervisor list above, through
kolla_toolboxoncontrol01(roles/nova-cell/tasks/config.yml:59-73); nova-manage cell_v2 list_cells(one-shotnova_list_cellscontainer) anddiscover_hosts(throughkolla_container_engine exec -t nova_conductor) oncontrol01(roles/nova-cell/tasks/discover_computes.yml:4-23,roles/nova-cell/tasks/get_cell_settings.yml:2-21;nova-conductor→nova→control,inventory/multinode:99-100, :229-230). A failure of this block stops every host of the play (any_errors_fatal: true,roles/nova-cell/tasks/discover_computes.yml:23);openstack compute service listthroughkolla_toolboxoncontrol01, retried up to 20 times every 10 s until the new compute's service is registered (roles/nova-cell/tasks/wait_discover_computes.yml:8-43, retries at:27-28);- the two libvirt check one-shots on the first compute, above.
- a Neutron bootstrap (DB sync) container on
- Facts: gathered for all 12 hosts (the 10 of the assumed deployment, compute004 and the
localhostof[deployment],inventory/multinode:32-33). The new compute itself runs the delegatedsetuploop sequentially (gather-facts.yml:34-62). - Not touched: existing computes get no config writes or restarts; the first one runs the two one-shot containers,
and all of them get the delegated
setup. Controllers get no config writes or restarts, only delegated tasks: those listed above, the fact gathering (setupon all three controllers), and the Neutron DB and DB-user tasks (mysql_db,mysql_userrun throughkolla_toolbox) oncontrol01(roles/neutron/tasks/bootstrap.yml:2-36). The Nova plays that target controllers (API and cell DB bootstrap, thenovarole, the scheduler cell-cache refresh) have no host in the limit, so they do not run (nova.yml:29-33, :67-71, :103-109, :152-156). - Run on compute004 but aimed at shared services: the Neutron Keystone registration (
service-ks-register) runs once, with nodelegate_to, so through thekolla_toolboxof compute004 itself (roles/neutron/tasks/deploy.yml:4,roles/neutron/tasks/register.yml:2-8,roles/service-ks-register/tasks/main.yml:2-129,run_onceat:129). - Caveats:
- Existing hosts'
/etc/hostsis not updated (bootstrap-servers --limit). - With
libvirt_tls: true(hostname-based migration), the other computes'/etc/hostslacks the new host until a fullbootstrap-serversrun, which carries its own Docker-restart risk (R14): the collectiondockerrole still notifiesRestart dockerfrom its config tasks (collectionroles/docker/tasks/config.yml:52-53, :147-148, handlerroles/docker/handlers/main.yml:10-15). Thepodmanrole has no handlers (its role directory holds onlydefaults/andtasks/). NOT AVAILABLE Whether live migration to the new compute fails meanwhile (fact sheet E §3). - The Nova API must answer for the run to succeed on compute004 (hypervisor list, registration wait).
- Existing hosts'
3. Verification¶
- What the run itself checks CODE: after the new compute's containers exist,
deploywaits for the new compute's service to appear inopenstack compute service list, run throughkolla_toolboxoncontrol01and retried up to 20 times every 10 s (roles/nova-cell/tasks/wait_discover_computes.yml:8-43). Then the discovery block runsnova-manage cell_v2 discover_hosts, and a failure of that block stops every host of the play (roles/nova-cell/tasks/discover_computes.yml:4-23). This is all that this study establishes: the wait looks only for the compute service in the list (§2, "Order on the new host"). - What the study does not establish NOT AVAILABLE: that the new compute service is up and enabled, that the host
is mapped to a cell, that a resource provider exists, that the network agent is alive, that an instance can boot on
the new host, and how a missing
/etc/hostsentry would show on the existing hosts. No task of the plays read for this page checks them, and no run was used as evidence; to be confirmed by the community.
Note
Outside this study. The Academy has a page that shows these checks on a lab, with the commands and the expected
result of each: Adding a compute node to a running Kolla-Ansible
deployment, step 6, "Verify, then test with an instance". It is a
deployment pattern, status draft, written for 2026.1, not for 2025.1. It is a pointer, not evidence for 2025.1:
check the commands against your own release. The case of a host not mapped to a cell is explained in No valid host
was found, although capacity exists (runbook,
2026.1).
Related¶
- Risk register — R14 (
bootstrap-serversre-run on a live host), which this page names, and R23 (any run with--limiton a large inventory) - Nova — service cards of the roles
novaandnova-cell, what changed in 2025.1, and where to look - Technical findings — F8 (
--limitdoes not confine actions), F13 (deploy order) and F20 (compute_id) - Pre-execution checklist — the checks before every production run
- Compute scaling
§2 — work per
compute host, read from the task files: the
compare_containeritems of a compute (10, §2) - Execution flow §2.4 — compute node deployment: what one compute host experiences
- Fact sheet E §3 —
/etc/hostsgeneration - Reconfigure Nova §6 — the checks listed after a Nova
run (
openstack compute service list,nova-manage cell_v2 list_hosts); see §3 for what this page establishes