Network Agents Missing for Re-onboarded Host Due to Stale OVN Chassis Entry
Problem
Network agents for a host are missing after re-onboarding
Host does not appear correctly in:
$ openstack network agent listOVN agents (ovn-controller / metadata agent) are not visible or not alive
OVN controller logs show following error in
/var/log/pf9/ovn/ovn-controller.log:transaction error: constraint violation multiple rows in "Encap" table with same (geneve, [IP])Host networking functionality is degraded due to missing OVN registration
Environment
Private Cloud Director Virtualization - v2025.4 and Higher
Private Cloud Director Kubernetes – v2025.4 and Higher
Self-Hosted Private Cloud Director Virtualization - v2025.4 and Higher
Self-Hosted Private Cloud Director Kubernetes - v2025.4 and Higher
Component - Networking
Cause
This issue occurs specifically on re-onboarded hosts where a stale OVN chassis entry remains in the OVN Southbound database. This typically happens when the host is not properly decommissioned prior to re-onboarding, resulting in residual OVN state persisting in the control plane. To prevent such issues, ensure the host is fully deauthorized and decommissioned by following the official Platform9 documentation. More details on how deauthorization and decommission work can be found in Demystifying Deauthorization and Decommissioning of PCD Hosts.
During re-onboarding, the host attempts to register a new chassis
The old chassis entry (from before decommissioning) still exists with the same Geneve IP
This leads to a constraint violation in the OVN database
As a result:
New chassis registration fails
OVN agents do not come up
Network agents appear missing in PCD.
Diagnostics
1. Check Network Agents
Confirm that the re-onboarded host is missing or agents are not alive.
2. Check OVN Controller Logs (on the re-onboarded host)
Look for:
Resolution
Identify the existing (stale) chassis entry:
Observation:
A chassis entry already exists for the Geneve IP
This entry is stale and preventing new registration
The expected (current) host is not present in the output
Delete the stale chassis entry:
Restart OVN services on the host:
Verify new chassis registration:
Verify network agents are now visible:
Validation
Network agents for the host are visible in
openstack network agent listAgents show
Alive :-)andState UPNo constraint violation errors in OVN logs
Additional Information
To run
ovn-*commands on the hosts onboarded to PCD, execute below steps.
Create an environment file
ovs-alias.rcas below:
Export the rc file and start using the ovn commands:
Access the OVN South Bond Pod in the Management Cluster using the command below.
Always ensure that hosts are properly decommissioned before re-onboarding to avoid stale OVN entries. Refer to the official documentation.
Last updated
