Reconfigure Neutron¶
Impact Restarts on drift Critical
Lumo: pause here
This page covers an operation rated Critical in the risk register. Read its risks before you run anything, and try it on a test platform first.
What kolla-ansible -t neutron reconfigure does in 2025.1: it runs the loadbalancer play (neutron-server frontend) and
the neutron play on neutron-server, every agent group, every compute and manila-share. The page gives the restart
set per change and what is known of the impact on networking.
The scenario sections are written for the assumed deployment; the page uses the definition of drift and the notion of code guarantees and environment dependence.
Note
Key answers
-t neutron reconfigure(§2 to §5) targets every compute, all hosts in one batch, and still runs thebootstrap_neutronDB-sync container on every reconfigure CODE (§2).- Changed in 2025.1 CODE (§3): a change restarts only the containers whose own files
or definition changed (an
ml2_conf.inioverride restartsneutron_serveralone);reconfigurecannot be batched, so usedeploy -t neutron -e kolla_serial=Nor--limit(F19); Linux Bridge is gone; the first 2025.1 run recreates most neutron containers. What an agent restart does to existing connectivity is NOT AVAILABLE (§4).
Warning
R6: with enable_neutron_agent_ha (and the agent wrappers off, the default), the L3
agent wrapper runs neutron-netns-cleanup before the agent starts, at every neutron_l3_agent restart; what that
command deletes is NOT AVAILABLE — see §4.
1. Commands¶
1.1 Neutron¶
kolla-ansible reconfigure -i multinode -t neutron # server + all agents (+ computes), one batch
kolla-ansible deploy -i multinode -t neutron --limit network01 # one network node at a time
kolla-ansible deploy -i multinode -t neutron -e kolla_serial=10 # batches of 10 hosts
kolla-ansible deploy -i multinode -t openvswitch --limit compute042 # OVS on one host
-t neutrontargets every compute (the neutron play includescompute,site.yml:669-691).- Changed in 2025.1:
reconfigurepasseskolla_serial=0after your own-e, so it always takes every host of the play at once (kolla_ansible/cli/commands.py:128-140; F19).deployruns the same neutron tasks (roles/neutron/tasks/reconfigure.yml:2) and acceptskolla_serial(Write config first, apply in controlled batches §1.2). - Network nodes should be done one at a time. With
enable_neutron_agent_ha, the L3 agent wrapper runsneutron-netns-cleanupbefore the agent starts, at everyneutron_l3_agentrestart; what that command deletes is NOT AVAILABLE (R6).
2. Execution and targets¶
kolla-ansible -t neutron reconfigure runs:
- the loadbalancer play (neutron-server frontend;
site.yml:105-120, neutron includesite.yml:243-247). Changed in 2025.1: both frontends addoption httpchk(roles/neutron/defaults/main.yml:19-20,:28-29), and the frontend file is written without restarting HAProxy under-t neutron(F18); - the neutron play on
neutron-server, every agent group, every compute andmanila-share, withserial: kolla_serial(forced to0byreconfigure) andmax_fail_percentage(default100) (site.yml:669-691).
Per host the steps are (roles/neutron/tasks/deploy.yml:2-23; roles/neutron/tasks/reconfigure.yml:2 imports that
file):
- the ML2 plugin check: container facts for
neutron_openvswitch_agent/ovn_controllerand the OVN DB volumes; it fails the host if the running agent type does not matchneutron_plugin_agent(roles/neutron/tasks/neutron_plugin_agent_check.yml:2-37). New in 2025.1: the OVN condition reads the volume facts at a key the module no longer returns (Neutron); - register (run_once): it grants the neutron user the
servicerole in theserviceproject (roles/neutron/tasks/register.yml:2-8,roles/neutron/defaults/main.yml:898-901); - config-host: the kernel modules on L3 and Open vSwitch agent hosts (
roles/neutron/tasks/config-host.yml:2-13); an IPv6 check on every host, whose result no task reads (roles/neutron/tasks/config-host.yml:15-18); thegc_threshsysctl values on L3 agent hosts whenset_sysctl(defaultyes,group_vars/all.yml:816), through thesysctlrole (roles/neutron/tasks/config-host.yml:20-34,roles/sysctl/tasks/main.yml:1-20,group_vars/all.yml:819) CODE; - config, check-containers, the fake-driver config when
enable_nova_fake, bootstrap, then a flush of the handlers (roles/neutron/tasks/deploy.yml:11-23).
common does not run under -t neutron: it is its own play, tagged common only (site.yml:88-103). The bootstrap
step always runs the Neutron DB and user/grant tasks (mysql_db/mysql_user via kolla_toolbox, run_once, delegated to
neutron-server[0], skipped only with use_preconfigured_databases, roles/neutron/tasks/bootstrap.yml:2-36) CODE,
so MariaDB must be reachable.
Still holds in 2025.1: the bootstrap_neutron DB-sync container has no when, so it runs on every reconfigure
(and deploy), run_once on neutron-server[0] (roles/neutron/tasks/bootstrap.yml:38,
roles/neutron/tasks/bootstrap_service.yml:2-21). neutron_enable_rolling_upgrade
(roles/neutron/defaults/main.yml:707) is read only by roles/neutron/tasks/upgrade.yml:4-8. The container runs
neutron-db-manage --subproject neutron upgrade head, then the same for each enabled subproject in
NEUTRON_BOOTSTRAP_SERVICES (kolla docker/neutron/neutron-server/extend_start.sh:5-13;
roles/neutron/defaults/main.yml:651-663, :702). What a no-op upgrade head does to a running neutron-server is
NOT AVAILABLE.
3. What restarts CODE¶
Changed in 2025.1: no config task notifies; service-check-containers notifies Restart <service> container for
each container whose compare_container reported a change (roles/neutron/tasks/check-containers.yml:2-3; Tags
§2.4). A file change restarts a container only if that file is
copied into it by its config.json, which kolla_set_configs --check compares.
| Change | Restarted | Source |
|---|---|---|
/etc/ (meant for the server) |
neutron_server only (controllers), plus neutron_infoblox_ipam_agent where enabled. Changed in 2025.1: no longer the other neutron containers of a host that runs neutron-server. openvswitch_agent.ini does not merge ml2_conf.ini, so the agents on computes and network nodes do not restart |
roles/; roles/ |
/etc/ |
neutron_openvswitch_agent on all computes and network nodes | roles/ |
/etc/ (also global.conf, neutron/) |
every neutron container on every host (all but neutron_tls_proxy render neutron.conf) |
roles/ |
/etc/, e.g. neutron/ |
that container only, on every host that runs it | roles/ |
Files in /etc/ |
neutron_server, and neutron_openvswitch_agent on every host that runs one, computes included | roles/, roles/ |
/etc/, with enable_neutron_fwaas |
neutron_server and neutron_l3_agent (no per-host override file) | roles/ |
/etc/ (or neutron/), with enable_neutron_taas |
neutron_server and neutron_openvswitch_agent, so every compute | roles/ |
turning enable_neutron_fwaas or enable_neutron_taas on or off |
every container that renders neutron.conf (its service_plugins gains firewall_v2 or taas); TaaS also adds taas to the Open vSwitch agent extensions, FWaaS adds fwaas_v2 to the L3 agent extensions; the next bootstrap_neutron migrates the subproject (§2) |
roles/; roles/, roles/, roles/ |
/etc/ |
neutron_server and neutron_l3_agent, only with enable_neutron_vpnaas |
roles/; roles/, roles/ |
New in 2025.1: neutron_physical_networks, or the number of bridges in neutron_bridge_name |
neutron_server (ml2_conf.ini: network_vlan_ranges, flat_networks) and neutron_openvswitch_agent on every host (bridge_mappings); the ovn-controller chassis mappings follow the same variable under -t ovn |
group_vars/; roles/, :27; roles/; OVN |
New in 2025.1: neutron_agents_wrappers on or off |
neutron_dhcp_agent and neutron_l3_agent are recreated (environment, pid_mode, cgroupns_mode, engine socket volumes), and the L3 wrapper script changes |
roles/, :483-507, :646; roles/ |
| RabbitMQ/memcached membership change | every neutron container that renders neutron.conf (transport URLs, memcached list) |
group_vars/; roles/; Change control-plane membership |
First run of the 2025.1 code on a cloud deployed by 2024.1 CODE: expect most neutron containers to be recreated or restarted, computes included, even with no operator change:
- every neutron container's volume list now always has
/dev/shm(2024.1 added it only withom_enable_queue_manager, defaultfalse), and the volume list is part of the container comparison (roles/neutron/defaults/main.yml:483-599;module_utils/kolla_container_worker.py:58-65); neutron_dhcp_agentandneutron_l3_agentget three new environment variables and an explicitcgroupns_mode(roles/neutron/defaults/main.yml:54-90);neutron_metadata_agentloses its healthcheck by default (roles/neutron/defaults/main.yml:366-377);neutron.confchanges for every container that renders it: the queue options are unconditional (F17),www_authenticate_uripoints to the public Keystone URL, and booleans are written in lower case (roles/neutron/templates/neutron.conf.j2:106,:131-144);- with
kolla_copy_ca_into_containersor the TLS backend, every agent'sconfig.jsongains aca-certificatesentry (e.g.roles/neutron/templates/neutron-openvswitch-agent.json.j2:37-43;roles/neutron/defaults/main.yml:938); - and the systemd unit of every container written by 2024.1 is reported as drift at its first 2025.1 check (F16).
In an upgrade the new images recreate the containers anyway. NOT AVAILABLE Whether the first 2025.1 deploy of a
cloud whose images did not change recreates every agent on every compute at once; to be confirmed by the community.
Handlers CODE: one recreate_or_restart_container handler per container; changed in 2025.1, they are no
longer skipped when kolla_action is config (no config task notifies any more), and the Linux Bridge handler is gone
(roles/neutron/handlers/main.yml:1-296). The L3 agent handler is a chain: container facts, a group_by on whether
neutron_l3_agent runs, start of the stopped ones, a wait of neutron_l3_agent_failover_delay when both kinds exist,
then the running ones (roles/neutron/handlers/main.yml:67-134). For the running ones, each host loops over the list
of hosts with a running L3 agent and restarts only on its own item, with a pause of neutron_l3_agent_failover_delay
seconds (default 0, roles/neutron/defaults/main.yml:626) before every item but the first
(roles/neutron/handlers/main.yml:112-134; ansible-core 2.18.20 lib/ansible/executor/task_executor.py:329-331).
With the default 0 nothing spaces the restarts.
4. Impact on networking¶
| Component | On restart (code-guaranteed when drift) | Effect on existing connectivity (environment-dependent) |
|---|---|---|
| neutron-server | API unavailable during the stop/start, on all controllers at once under reconfigure (kolla_serial forced to 0, F19) |
NOT AVAILABLE Whether existing traffic is unaffected, and whether port bindings and new instances fail during the window |
| neutron-openvswitch-agent | container stop/start, or recreate at the first 2025.1 run | NOT AVAILABLE Whether flows in OVS persist while the agent is down, whether and how the agent resyncs and re-installs flows on start with the 2025.1 defaults, and whether a VM loses packets during the agent restart |
| neutron-l3-agent | stop/start; with enable_neutron_agent_ha: yes and the wrappers off, the wrapper runs neutron-netns-cleanup --force --agent-type l3 before the agent starts (the wrapper's comment: "Remove all l3 related netns"), with fwaas_driver.ini added when FWaaS is enabled (roles/) |
CODE Without the HA cleanup nothing in the wrapper deletes namespaces, and /run/netns is shared with the host (roles/). New in 2025.1: with neutron_agents_wrappers, keepalived, haproxy and radvd run in child containers (kolla docker/). NOT AVAILABLE Whether the namespaces then persist, whether the keepalived/haproxy processes (or child containers) survive the agent's container, whether with the cleanup all routers on that node lose N-S/FIP connectivity until rebuilt, and whether HA routers fail over. NOT AVAILABLE What the cleanup command deletes: it is neutron code, which is not in these sources (F12) |
| neutron-dhcp-agent | stop/start | NOT AVAILABLE Whether dnsmasq processes (or, with the wrappers, child containers) die with the container, whether VMs renewing leases in the window fail to renew, and whether new ports wait for the agent to come back |
| neutron-metadata-agent | stop/start; no healthcheck by default in 2025.1 | NOT AVAILABLE Whether metadata requests (cloud-init) fail during the window. The requests now end at the nova_metadata container (Nova) |
| Open vSwitch | not touched by -t neutron (separate play/tag, site.yml:605-619) |
– |
OVN (if neutron_plugin_agent: ovn) |
-t neutron touches neutron-server and neutron-ovn-metadata-agent (plus neutron_ovn_agent with neutron_enable_ovn_agent, default no, group_vars/). -t ovn runs both the ovn-controller and the ovn-db plays (site.yml:635-647, site.yml:649-663). The ovn-controller role re-applies br-int and the external_ids keys on every ovn-controller host, and in 2025.1 points ovn-remote at an SB relay (roles/; OVN) |
ovn-controller restart is not triggered by -t neutron |
5. Risks and verification¶
- Risks: R5, R6, R7.
- Before:
openstack network agent list(all alive);- identify the network nodes that host HA router masters;
- render with
kolla-ansible genconfig -t neutronand diffopenvswitch_agent.iniandneutron.confon a compute (andneutron_taas.confwith TaaS). If one changed, every compute will restart its agent; kolla_set_configs --checkinneutron_openvswitch_agenton a few computes: exit 1 means that container will restart (Kolla images §3); the check does not see a changed volume list or unit file, which the module compares on the host;- on the first run of the 2025.1 code, expect most neutron containers to be recreated (§3);
- expect the
bootstrap_neutronDB-sync container on neutron-server[0] even with no change (§2).
- Apply: network nodes one by one (
deploy -t neutron --limit network01, thennetwork02). Computes in batches (deploy -t neutron -e kolla_serial=N, or--limit), not withreconfigure. - After:
- agent list;
ip netnscount on network nodes matches the number of routers/networks;- ping a VM's floating IP continuously during each batch;
- a metadata request from an instance.
- NOT AVAILABLE Confirmation that an
ml2_conf.inichange restartsneutron_serveralone, and the data-plane effect of the first-run recreates on computes; to be confirmed by the community.
Related¶
- Risk register — the risks this page names: R5
(
ml2_conf.inioverride meant for neutron-server; in 2025.1 it restartsneutron_serveralone, §3), R6 (restart ofneutron_l3_agentwithenable_neutron_agent_ha: yes) and R7 (openvswitch_vswitchdrestart or recreate) - Neutron — service card, what changed in 2025.1 and where to look
- Open vSwitch — service card and where to look; Open vSwitch has a separate play and
tag and is not touched by
-t neutron - Pre-execution checklist — the checks before every production run
- Write config first, apply in controlled batches — how to apply in batches (
genconfig, thendeploy-containers --limit;deploy -e kolla_serial=N); its examples use the nova tags - Kolla images §5.3 — neutron-l3-agent: the wrapper
that runs the namespace cleanup with
enable_neutron_agent_ha - What is not known — what the sources do not establish about the network data plane