You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Worker routed links fail on attachments CNI attached #1494
A routed link claim never becomes ready when CNI attached its attachment. Worker names the claim's return advertisement after the attachment, finds the advertisement CNI already wrote under that name, and refuses to replace it.
The lab's combined Worker check fails on this step, so the combined profile has no passing run on the integration branch. A proxy attachment that CNI also attached would lose its return path the same way.
Acceptance criteria
The combined Worker lab check passes, including its routed link step
A routed link or socket claim on an attachment CNI already advertises either becomes ready or reports why, and CNI's advertisement is left untouched
Evidence from one lab run of worker:verify PROFILE=combined on the integration branch at 35dc24b, before the branch was rebased onto main.
The local destination of the TAP claim became ready. The routed link claim on ns80-tap/vpc-b-tap then reported:
Programmed=False ProgrammingFailed: advertise claim addresses: BGPAdvertisement <vpc>-<attachment>-<node> exists and is not Worker's; not replacing it
The check timed out waiting for the destination and exited during cleanup. The dedicated profile, which makes no routed link claim, passed on the same deploy.
The naming came from 7d7c0d6 (now 1fe6518 on the rebased branch), which names a routed link or socket claim's advertisement after the attachment's tenant advertisement. Its message and docs/worker/contract.md both assume CNI never names an advertisement for a proxy attachment. In the combined fixture the routed link sits on a TAP attachment that CNI attached, so that assumption does not hold. applyAdvertisement in internal/worker/hostscope/advertise.go then refuses the name because the existing object lacks Worker's VPC label.
Not established: whether the right fix is in Worker's naming, in the fixture's choice of attachment, or in the contract.
Confirmed on the current Worker integration branch at 3f306c24. Worker and CNI both derive the tenant BGPAdvertisement name from the VPC, attachment identifier, and node. When CNI owns that name, Worker declines the write, and the return route step fails. Worker naming and ownership check · CNI publication
I reproduced the failure with a focused hostscope test that pre-creates a CNI advertisement and submits a Worker return prefix for the same attachment. The test fails at Worker publication with the ownership error, while the existing attachment naming test passes. The full combined lab check remains to be rerun. The Worker code is currently on the integration branch.
Approved fix plan for the Worker integration branch
When CNI owns the tenant advertisement name, Worker will publish its return prefixes under its attachment-UID name. Publication and reconciliation will use the same name selection, and Worker will check ownership on the object being updated. Worker-only proxy attachments will keep the canonical name used for attachment status projection.
The focused regression will check coexistence, CNI preservation through Worker cleanup, and proxy naming. The Worker contract will document the two cases. Verification includes lint, build, unit tests, and the combined Worker lab profile.
The first combined run with the naming fix reached return-route publication. The Kubernetes API then denied creation of the separate BGPAdvertisement. The routed-link profile includes the capabilities to configure the link and currently lacks the RBAC verbs the advertisement writer requires.
The fix now includes namespace-scoped BGPAdvertisement create and update in the opt-in routed-link Component. The manifest test and lab authorization checks cover the grant and verify that it is absent from the dedicated profile. The next combined run will use the integration revision that includes #1496's fixture teardown change.
Fixed by #1499, merged into the Worker integration branch at 22470fdd. The regression tests cover both publication orders, and the combined Worker lab verified routed-link readiness and restored the baseline. Please reopen if the problem recurs on a revision containing the fix.
Activity
privateip commentedon Nov 24, 2026
Evidence from one lab run of
worker:verify PROFILE=combinedon the integration branch at 35dc24b, before the branch was rebased onto main.The local destination of the TAP claim became ready. The routed link claim on
ns80-tap/vpc-b-tapthen reported:The check timed out waiting for the destination and exited during cleanup. The dedicated profile, which makes no routed link claim, passed on the same deploy.
The naming came from 7d7c0d6 (now 1fe6518 on the rebased branch), which names a routed link or socket claim's advertisement after the attachment's tenant advertisement. Its message and
docs/worker/contract.mdboth assume CNI never names an advertisement for a proxy attachment. In the combined fixture the routed link sits on a TAP attachment that CNI attached, so that assumption does not hold.applyAdvertisementininternal/worker/hostscope/advertise.gothen refuses the name because the existing object lacks Worker's VPC label.Not established: whether the right fix is in Worker's naming, in the fixture's choice of attachment, or in the contract.
privateip commentedon Nov 24, 2026
Confirmed on the current Worker integration branch at 3f306c24. Worker and CNI both derive the tenant BGPAdvertisement name from the VPC, attachment identifier, and node. When CNI owns that name, Worker declines the write, and the return route step fails. Worker naming and ownership check · CNI publication
I reproduced the failure with a focused hostscope test that pre-creates a CNI advertisement and submits a Worker return prefix for the same attachment. The test fails at Worker publication with the ownership error, while the existing attachment naming test passes. The full combined lab check remains to be rerun. The Worker code is currently on the integration branch.
privateip commentedon Nov 24, 2026
Approved fix plan for the Worker integration branch
When CNI owns the tenant advertisement name, Worker will publish its return prefixes under its attachment-UID name. Publication and reconciliation will use the same name selection, and Worker will check ownership on the object being updated. Worker-only proxy attachments will keep the canonical name used for attachment status projection.
The focused regression will check coexistence, CNI preservation through Worker cleanup, and proxy naming. The Worker contract will document the two cases. Verification includes lint, build, unit tests, and the combined Worker lab profile.
privateip commentedon Nov 24, 2026
The first combined run with the naming fix reached return-route publication. The Kubernetes API then denied creation of the separate BGPAdvertisement. The routed-link profile includes the capabilities to configure the link and currently lacks the RBAC verbs the advertisement writer requires.
The fix now includes namespace-scoped BGPAdvertisement create and update in the opt-in routed-link Component. The manifest test and lab authorization checks cover the grant and verify that it is absent from the dedicated profile. The next combined run will use the integration revision that includes #1496's fixture teardown change.
privateip commentedon Nov 24, 2026
Fixed by #1499, merged into the Worker integration branch at
22470fdd. The regression tests cover both publication orders, and the combined Worker lab verified routed-link readiness and restored the baseline. Please reopen if the problem recurs on a revision containing the fix.fix(worker): Publish return routes alongside CNI
fix(worker): Publish return routes alongside CNI