Faberby FaberOps

Alibaba Cloud ACK Terway ENI and vSwitch IP Exhaustion

Matches Alibaba Cloud ACK Terway ENI IP allocation failures, vSwitch InsufficientIPCount errors, and trunk ENI attachment quota errors.

Kind
Signature
Version
2.0.0
Tier
verified
Needs Faber
v2.0.0+
Digest prefix
sha256:dc50a4bd

Contract facts

Sources
3
kubernetes, loki, prometheus
Log patterns
3
RE2, replayed in CI
Kubernetes matchers
1
CEL on live objects
Samples
3 and 2
must match and must not

Inspect it

Inspect the contract and RBAC delta

$ faberctl catalog inspect signatures/alibaba-ack-terway-eni-exhausted \ --source oci://ghcr.io/faberops/catalog:v2

How it works

Sources

kubernetes, loki, prometheus

What it matches

Must match

  • Terway daemon error: InsufficientIPCount in vSwitch vsw-bp1abc123456
  • Warning FailedCreatePodSandBox: AllocIP failed to allocate ENI IP for pod apps/order-0
  • ECS API error QuotaExceeded.EniPerInstance while attaching trunk ENI

Must not match

  • Terway allocated ENI IP 172.16.12.88 from vSwitch vsw-bp1abc123456
  • PodNetworking prod-trunk status Ready

Signature source

signature.yamlFailureSignature30 lines
apiVersion: catalog.faberops.dev/v2
kind: FailureSignature
metadata:
  name: alibaba-ack-terway-eni-exhausted
spec:
  description: Matches Alibaba Cloud ACK Terway ENI IP allocation failures, vSwitch InsufficientIPCount errors, and trunk
    ENI attachment quota errors.
  sources:
  - kubernetes
  - loki
  - prometheus
  logPatterns:
  - Terway.*InsufficientIPCount|vsw-[a-z0-9]+ has no available IP
  - AllocIP.*failed to allocate ENI IP
  - QuotaExceeded\.EniPerInstance
  samples:
    match:
    - 'Terway daemon error: InsufficientIPCount in vSwitch vsw-bp1abc123456'
    - 'Warning FailedCreatePodSandBox: AllocIP failed to allocate ENI IP for pod apps/order-0'
    - ECS API error QuotaExceeded.EniPerInstance while attaching trunk ENI
    noMatch:
    - Terway allocated ENI IP 172.16.12.88 from vSwitch vsw-bp1abc123456
    - PodNetworking prod-trunk status Ready
  kubernetes:
  - apiVersion: network.alibabacloud.com/v1beta1
    kind: PodNetworking
    match: has(object.status) && has(object.status.status) && object.status.status == "Fail"
  queries:
    loki: '{namespace="kube-system", app="terway-eniip"} |= "InsufficientIPCount" or |= "failed to allocate ENI IP"'
    promql: sum by (vswitch_id) (terway_eni_ip_available) < 4
pack.yamlcatalog metadata11 lines
# Catalog metadata for signatures/alibaba-ack-terway-eni-exhausted. Not applied to the cluster.
apiVersion: catalog.faberops.dev/v2
kind: CatalogPack
metadata:
  name: alibaba-ack-terway-eni-exhausted
  category: signatures
  version: 2.0.0
spec:
  tier: verified
  minFaberVersion: v2.0.0
  digest: sha256:dc50a4bdacfcdda1e22e6913fe8f5011ecf901e4ba892a294a1c7fecca4efc36

Signatures are catalog data. A Playbook references one by name in a connector trigger. It is never applied on its own.