Skip to content

[release-2.0] Fix potential race in interface/volume status update - #878

Merged
mandre merged 1 commit into
release-2.0from
bp-release-2.0-e02d662
Aug 11, 2026
Merged

[release-2.0] Fix potential race in interface/volume status update#878
mandre merged 1 commit into
release-2.0from
bp-release-2.0-e02d662

Conversation

@orc-backport-bot

Copy link
Copy Markdown

Backport: #843

After a port is attached to a server, its Neutron status transitions
asynchronously from DOWN to ACTIVE. Similarly, a volume transitions
from available to in-use after attachment. The cross-controller
signaling via serverTo{Port,Volume}MapFunc is susceptible to a race
with the controller's own status write.

Add defense-in-depth polling: when the port has a device_id but
status is still DOWN, or when a volume has attachments but status
is not in-use, schedule a re-fetch via WaitingOnOpenStack. This
ensures the controller picks up the status transition regardless
of whether the cross-controller signal is lost.

Fixes #842

After a port is attached to a server, its Neutron status transitions
asynchronously from DOWN to ACTIVE. Similarly, a volume transitions
from available to in-use after attachment. The cross-controller
signaling via serverTo{Port,Volume}MapFunc is susceptible to a race
with the controller's own status write.

Add defense-in-depth polling: when the port has a device_id but
status is still DOWN, or when a volume has attachments but status
is not in-use, schedule a re-fetch via WaitingOnOpenStack. This
ensures the controller picks up the status transition regardless
of whether the cross-controller signal is lost.

Fixes #842
@orc-backport-bot
orc-backport-bot Bot requested a review from mandre August 11, 2026 15:30
@github-actions github-actions Bot added the v2.0 This PR targets v2.0 label Aug 11, 2026
@mandre
mandre added this pull request to the merge queue Aug 11, 2026
@github-actions github-actions Bot added the semver:patch No API change label Aug 11, 2026
Merged via the queue into release-2.0 with commit 6e60347 Aug 11, 2026
10 checks passed
@mandre
mandre deleted the bp-release-2.0-e02d662 branch August 11, 2026 16:47
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