Skip to content

[release-2.0] Fix port status not updating to ACTIVE after server interface attachment#766

Merged
mandre merged 2 commits intorelease-2.0from
bp-release-2.0-a2b2b19-31e1e0f
Apr 23, 2026
Merged

[release-2.0] Fix port status not updating to ACTIVE after server interface attachment#766
mandre merged 2 commits intorelease-2.0from
bp-release-2.0-a2b2b19-31e1e0f

Conversation

@orc-backport-bot
Copy link
Copy Markdown

Backport: #765

When the server controller attaches a port via Nova os-interface, the port's Neutron status transitions asynchronously from DOWN to ACTIVE as OVN binds the port. The port controller may reconcile after device_id is set but before the status becomes ACTIVE, writing DOWN to the port's status and setting Progressing: False.

The existing serverToPortMapFunc watch handler only triggers port re-reconciliation when DeviceID disagrees with the server's interface list. When the port controller already picked up the device_id but not the ACTIVE status, DeviceID matches and no re-reconciliation is triggered, leaving the port status permanently stale at DOWN.

Add a check for ports that are listed in the server's interfaces and have the correct DeviceID but still show status DOWN, triggering a re-reconciliation to pick up the current Neutron status.

Fixes #764

mandre added 2 commits April 23, 2026 13:03
When the server controller attaches a port via Nova os-interface, the
port's Neutron status transitions asynchronously from DOWN to ACTIVE as
OVN binds the port. The port controller may reconcile after device_id is
set but before the status becomes ACTIVE, writing DOWN to the port's
status and setting Progressing: False.

The existing serverToPortMapFunc watch handler only triggers port
re-reconciliation when DeviceID disagrees with the server's interface
list. When the port controller already picked up the device_id but not
the ACTIVE status, DeviceID matches and no re-reconciliation is
triggered, leaving the port status permanently stale at DOWN.

Add a check for ports that are listed in the server's interfaces and
have the correct DeviceID but still show status DOWN, triggering a
re-reconciliation to pick up the current Neutron status.
Apply the same fix as the port controller: when serverToVolumeMapFunc
detects a volume that is listed in the server's interfaces and already
has the correct attachment info, but the volume's Cinder status is not
in-use, trigger a re-reconciliation to pick up the current status from
Cinder.
@orc-backport-bot orc-backport-bot Bot requested a review from mandre April 23, 2026 13:03
@github-actions github-actions Bot added v2.0 This PR targets v2.0 semver:patch No API change labels Apr 23, 2026
@mandre mandre added this pull request to the merge queue Apr 23, 2026
Merged via the queue into release-2.0 with commit d8c04f8 Apr 23, 2026
10 checks passed
@mandre mandre deleted the bp-release-2.0-a2b2b19-31e1e0f branch April 23, 2026 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver:patch No API change v2.0 This PR targets v2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant