Pcornel
Automation · Network Automation

Network Automation Troubleshooting

Cheat sheet · https://pcornel.dk/topic.php?topic=5603

Back to the Topic

Answer

Network Automation Troubleshooting isolates failures across source data, target selection, transport/API/model, generated operations, device responses, parsing, persistence and network acceptance without changing unrelated layers.

Remember

  • Last red task ≠ root cause boundary.
  • Retry success ≠ cause understood.
  • Automation failure ≠ network failure, and network failure ≠ automation failure.
  • Changed symptom ≠ original requirement restored.

First checks

  • ansible-playbook play.yml -vvvv --limit <dev> — verbose
  • ssh -vvv <dev> — transport debug
  • Device logs (show logging) — device side

Commands

show ip interface brief
Compact IPv4 interface/address/protocol state.

Verify in this order

controller → transport → device → command/API → error

Where it usually breaks

Troubleshooting closes only when the first failed boundary is explained and the original automation plus network acceptance test passes after a controlled correction.

Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.

Network Automation Troubleshooting Network Automation proof-boundary map

BoundaryHealthy evidenceSuspicious evidence
Intent / scopeSource revision and exact targets are explicitStale inventory, hidden selector or wrong variables change scope
Management operationTransport/model/payload and per-device response are traceableAuth/capability/parser differences hide partial or wrong execution
Device stateEffective and persistent state are read backAccepted config/API result is mistaken for convergence
Network proofOriginal control/data-plane or service test passesAutomation summary substitutes for actual network acceptance

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5603

Confirmation

Confirm action

Continue?