Network automation in practice lab 9 of 11

Troubleshooting tickets - the automation is broken

Four tickets against Fenwick Rail's own automation: a deploy that a template breaks, a nightly backup that fails for one device and silently saves garbage for another, an Ansible job that reports changes every night, and a play that never reaches the FortiGate. Read the errors, fix the code, and prove each job works against the devices.

Run this lab

It needs Standard: its 5 nodes are set to 6 vCPU and 10,240 MB in total. It is ready about 19 minutes after you start it. It starts already set up, with nothing to paste before the first task.

In your workspace: Shared, then Network Automation in Practice - multi-vendor professional guided labs, then 09 - Troubleshooting tickets - the automation is broken

Run it on Standard from £5 a day

  • About 19 min to be ready
  • About 70 min of tasks

The free demo isn’t offered for this lab: it is Lite size, with 6 vCPU and 8 GB, and this lab’s nodes need 6 vCPU and 10,240 MB together. Every lab plan includes every guided lab.

Level
Advanced
How you work
CLI-led
Nodes need
6 vCPU, 10,240 MB
Smallest plan
Standard

The scenario

Fenwick Rail's automation ran all weekend and none of it did its job. York's new Arista switch, eos1, should have been built by Friday night's deploy and is still empty. The backup report looks odd. The Ansible job claims to change r1 every night, and it never seems to touch the FortiGate at all. The devices are fine: this time the code is broken.

Your repository is /root/lab: render.py and deploy.py (the core build), backup.py (nightly backups into backups/), and ansible/ (the base-services job, run with ./gate.sh).

Start-up and waits. Click Start all. fgt1 is ready in about a minute, eos1 in about 3, r1 in about 4 and srx1 in about 5. r1 and srx1 start as the core already built; eos1 has only its management settings. Read the tickets while they boot. Measured on our servers: the whole lab was ready for its first task about 19 minutes after Start all, with every device booted.

How to work. Run the job named in each ticket, read its error to the line that broke, fix the code, and run the job again. Hints give the method first; the fault is behind a second hint.

What you’ll practise

  • Read Python tracebacks, NAPALM and ncclient errors and Ansible output to the line that broke
  • Find a Jinja2 whitespace bug from the configuration a device rejected
  • Make a job fail loudly instead of saving a bad backup
  • Fix a task that is never idempotent, and a wrong Ansible network OS
  • Close each ticket by running the job against the devices

The tasks

  • Ticket INC-4611: "Friday's core deploy failed on eos1"
  • Ticket INC-4612: "Backups for srx1 and fgt1 look wrong"
  • Ticket INC-4613: "Ansible changes r1 every single night"
  • Ticket INC-4614: "The Ansible job never reaches the FortiGate"
  • Close-out

The Lab Tasks pane has the scenario, these tasks, the checks to run, hints and the full solution.

Topology and devices

The network as it opens in EVE-NG, drawn from the lab’s own canvas, and the image each node runs.

Topology of Troubleshooting tickets - the automation is broken5 nodes and 1 network, 8 links. Every link is listed as text below the diagram.devboxr1eos1srx1fgt1Mgmteth0Gi0/1Ethernet1fxp0Ethernet2ge-0/0/1Gi0/0Gi0/2ge-0/0/0Management1port1
5 nodes and 1 network, with the interface names each link uses. On a narrow screen, scroll the diagram sideways.
Nodes in Troubleshooting tickets - the automation is broken, with the image each runs and the vCPU and RAM it’s set to
NodeDeviceImage in Add NodeSet to
devboxCloudLabBox code workstation (Docker)CloudLabBox’s own workstation image, with a browser code editor1 vCPU, 2,048 MB
r1Cisco IOSvvios-adventerprisek9-m.spa.159-3.m91 vCPU, 512 MB
eos1Arista vEOSveos-4.33.1.1F1 vCPU, 2,048 MB
srx1Juniper vSRX NextGen templatevsrxng-24.4R1.92 vCPU, 3,584 MB
fgt1Fortinet FortiGatefortinet-FGT-v7.0.17.M-build06821 vCPU, 2,048 MB

How to open this lab

  1. Sign in to your workspace at lab.cloudlabbox.com.

  2. In File Manager, open Shared, then the folder Network Automation in Practice - multi-vendor professional guided labs.

  3. Open 09 - Troubleshooting tickets - the automation is broken and start its nodes, then open Lab Tasks for the scenario and the steps.

The lab is read-only. You can start the nodes and configure the devices, but changes to the topology can’t be saved. To change it, rebuild it in your own folder.

More Network automation in practice labs

All Network automation in practice labs

Related labs in other courses

CloudLabBox is independent of Arista Networks, Cisco, Fortinet, Juniper Networks and Palo Alto Networks. The lab follows exam topics and isn’t vendor training material; vendor names identify the exams and the images in the workspace.