Skip to content

Hashed egress drops all tenant ingress when the EgressShard watch cannot start #1084

Closed

Description

@privateip

Summary

With GALACTIC_CNI_EGRESS_MODE=hashed and interface traffic policy enforced, a galactic-cni that starts without a working EgressShard watch drops every packet arriving for the node's tenant workloads. Tenant egress still leaves through the shards, but replies and private traffic from other nodes are dropped at the workload's interface with traffic-policy fallback reason classification_error. The node stays like this until the watch syncs.

In hashed mode the installer gives traffic policy its NAT locators only once the EgressShard watch has listed the shards (state.egressGroup.natLocators = state.trafficPolicy.setNATLocators in internal/installer/installer.go). Ordered mode sets them at startup from the configured shard SIDs. When the watch cannot start, nothing ever sets them, and ingress classification fails for every packet.

verify:nat-active-active step 8 covers this case and fails: it removes galactic-cni's EgressShard permissions, restarts it in hashed mode, and expects tenants to keep forwarding.

Steps to reproduce

  1. Deploy the containerlab lab from main, which enforces interface traffic policy.
  2. Run task verify:nat-active-active.

What happens

Step 8 reports galactic_cni_egress_shard_watch_synced 0 and the published group still enabled, as expected, but every tenant on the compute node fails its TCP probe. A capture on the node shows each SYN encapsulated to a shard and its SYN-ACK arriving back, then never delivered to the workload. galactic-router counts the drops in galactic_cni_traffic_policy_fallback_packets_total{direction="ingress",reason="classification_error"}. Private traffic between sites fails the same way. No galactic_usid_drops_total reason moves.

Expected

As step 8 states: without its watch, galactic-cni says so and keeps forwarding with the shards it already knows, and traffic-policy classification keeps working.

Possible fix

Seed traffic policy's NAT locators in hashed mode from the configured shard SIDs, or from the shard group's last published members, before the watch syncs, so classification never runs with no locators. A test should restart galactic-cni in hashed mode with the watch denied and assert that tenant ingress is still classified and delivered.

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