Skip to content

feat: Keep physical claims until IPAM releases their addresses - #966

Draft
scotwells wants to merge 1 commit into
feat/physical-attachment-admissionfrom
feat/physical-verified-release
Draft

scotwells wants to merge 1 commit into
feat/physical-attachment-admissionfrom
feat/physical-verified-release

Conversation

@scotwells

Copy link
Copy Markdown
Contributor

Summary

A provider treats a deleted physical claim as proof its address is free, but NSO let the claim go without reading IPAM back, and freed only one of the two names an address can be held under. A physical claim under Delete now stays until every IPAM claim its address could be held under in this location is gone and no IPAM allocation names one.

While it waits, the claim reports Ready false with reason ReleaseUnverified and the address still held, never NSO's internal IPAM names. Claims in every other mode release exactly as before.

Decisions for a person

  • Confirm that NSO's identity in each production environment may list IPAM allocations. The test environments grant it, the grants for production live outside this repository, and without it every physical release waits forever.
  • A physical claim that allocated an address but crashed before recording its interface is released today without a check. Physical claims cannot bind until the port-hold change that follows, which is where this gap gets closed.

Test plan

  • A physical claim stays while IPAM refuses the delete or still holds an allocation, and is deleted once IPAM lets go
  • Both names an address can be held under are freed, and another location's same-named allocation is left alone
  • Compute's claims release as before
  • Tests, lint, generated files and kustomize builds pass locally the way CI runs them

Related to #963

🤖 Generated with Claude Code

@scotwells
scotwells requested review from ecv and kevwilliams November 26, 2026 04:11
A provider reads a physical claim's absence as proof its address is
free. NSO deleted the IPAM claims and removed its finalizer without
reading IPAM back, and freed only the first of the two names an address
can be held under, so a claim could vanish while IPAM still held it.

A physical claim under Delete now stays until every IPAM claim its
addresses could be held under here is gone and no IPAM allocation
names one. Other modes release as before.

Key changes:
- verify release for physical claims before the interface is deleted
- report Ready=False ReleaseUnverified with the address still held
- skip same-named IPAM claims another location holds
- keep the reason steady across retries instead of rewriting it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@scotwells
scotwells force-pushed the feat/physical-attachment-admission branch from 45288a7 to 69dcf7b Compare November 26, 2026 22:22
@scotwells
scotwells force-pushed the feat/physical-verified-release branch from 6619a5e to 5289f4a Compare November 26, 2026 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant