Network
Troubleshoot Containerlab
Troubleshoot Containerlab
Runs read-only diagnostics on the containerlab hypervisor through AAP using the Containerlab SSH credential. Use this when day-2 jobs such as Backup or Report fail and you cannot export the hypervisor private key from AAP.
Prerequisites
- Containerlab hypervisor provisioned via NETWORK ǀ Deploy Containerlab Stack
- AWS credential configured for EC2 discovery
- Containerlab SSH credential populated during hypervisor provisioning
Survey prompts
| Prompt | Variable | Type | Required |
|---|---|---|---|
| AWS Region | clab_aws_region |
multiplechoice | Yes |
Options: us-east-2 (default), us-west-2.
Job templates
| Template | Playbook | Description |
|---|---|---|
| NETWORK ǀ Containerlab ǀ Troubleshoot | network/troubleshoot_containerlab.yml |
Discovers the hypervisor, probes device ports, and collects containerlab and podman status |
What it checks
- Hypervisor discovery — Finds the running EC2 instance tagged
deployment=containerlab - External port probes — Tests TCP connectivity to ports 22, 2122, and 2123 from the execution node
- Hypervisor health — Uptime, memory, and disk usage on the image volume
- containerlab status —
containerlab versionandcontainerlab inspect - Podman containers — Lists containers for both
ec2-userand root runtimes - Local device SSH probes — Checks whether n9kv and cat8kv respond on 2122 and 2123 on the hypervisor
- Recent container logs — Last 20 log lines for n9kv and cat8kv containers when inspect succeeds