Collecting Antrea Support Bundles and Logs
search cancel

Collecting Antrea Support Bundles and Logs

book

Article ID: 426341

calendar_today

Updated On:

Products

VMware Container Networking with Antrea

Issue/Introduction

When troubleshooting network connectivity, policy enforcement issues, or Antrea component health, it is essential to collect diagnostic data from the Antrea Controller, Agents, and Open vSwitch (OVS).

This article outlines the standard procedures for generating a comprehensive support bundle.

Environment

VMware Container Networking with Antrea

Resolution

Using antctl (Recommended)

The supportbundle command is the most efficient way to capture logs from the entire cluster, including OVS status, flow tables, and configuration files.

To collect from all nodes (Remote): Run this from a machine with kubeconfig access to capture the entire cluster state:

antctl supportbundle -d ./antrea-diagnostics

To collect from a specific node: If you suspect a localized issue on a single worker node:

antctl supportbundle --node-name <node-name>

Manual Pod Log Extraction

If antctl is unavailable, you can manually inspect logs using standard Kubernetes commands.

  • Antrea Controller:

    kubectl logs -n kube-system -l app=antrea,component=antrea-controller
    
  • Antrea Agent (CNI Logic):

    kubectl logs -n kube-system <antrea-agent-pod-name> -c antrea-agent
    
  • Open vSwitch (OVS):

    kubectl logs -n kube-system <antrea-agent-pod-name> -c antrea-ovs