Skip to content

An edge route covering its holder's address breaks the attachment #1074

Closed

Description

@privateip

Summary

A provider can claim an edge route whose prefix contains its own attachment's address. The controller accepts it, but the node then refuses to set up the attachment, so the attachment stops serving every client, not only the new route.

#1073 handles a route for exactly the address's /128. A shorter prefix that covers the address still fails.

Reproduce

  1. Admit an attachment with address 2001:db8:0:1::1, from a service whose grant covers 2001:db8:0:1::/64.
  2. From the holding instance, claim a route for 2001:db8:0:1::/64 naming that attachment. The controller accepts it.
  3. Renew the lease so the route's forwarding gate opens. On the next pass the attachment reports a provisioning failure.

Acceptance criteria

  • A route that contains its holder's attachment address either forwards, or is refused at acceptance with a reason the provider can read
  • No accepted route can stop its holder's attachment from working
  • The provider contract's prefix conflict rules say which of the two applies

Activity

  1. privateip commented on Oct 24, 2026

    @privateip
    ContributorAuthor

    Where the two sides disagree, on main at 9a22fc6:

    • Core's conflict check skips the holder's own allocation when it looks for attachment addresses inside the prefix:
      for _, a := range svc.Status.Allocations {
      if a.AttachmentUID == string(att.UID) {
      continue
      }
      if addr, err := netip.ParseAddr(a.Address); err == nil && prefix.Contains(addr) {
      return refuse(ReasonPrefixConflict, "prefix %s contains %s, the address of attachment %s",
      prefix, addr, a.Attachment), nil
      }
      }
    • Once the gate opens, galactic-edge passes the prefix to hostattach, whose Attachment.validate rejects any prefix containing the attachment address:
      if p.Contains(a.Address) {
      return fmt.Errorf("hostattach: prefix %s contains attachment address %s", p, a.Address)
      }

    The attachment then reports Programmed False with reason ProvisionFailed and the message hostattach: prefix 2001:db8:0:1::/64 contains attachment address 2001:db8:0:1::1.

  2. added theissue type on Oct 24, 2026
  3. self-assigned this
    on Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions