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
- 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.
Every link, as text
- devbox
eth0to Mgmt (network) - r1
Gi0/0to Mgmt (network) - eos1
Management1to Mgmt (network) - srx1
fxp0to Mgmt (network) - fgt1
port1to Mgmt (network) - r1
Gi0/1to eos1Ethernet1 - r1
Gi0/2to srx1ge-0/0/0 - eos1
Ethernet2to srx1ge-0/0/1
| Node | Device | Image in Add Node | Set to |
|---|---|---|---|
| devbox | CloudLabBox code workstation (Docker) | CloudLabBox’s own workstation image, with a browser code editor | 1 vCPU, 2,048 MB |
| r1 | Cisco IOSv | vios-adventerprisek9-m.spa.159-3.m9 | 1 vCPU, 512 MB |
| eos1 | Arista vEOS | veos-4.33.1.1F | 1 vCPU, 2,048 MB |
| srx1 | Juniper vSRX NextGen template | vsrxng-24.4R1.9 | 2 vCPU, 3,584 MB |
| fgt1 | Fortinet FortiGate | fortinet-FGT-v7.0.17.M-build0682 | 1 vCPU, 2,048 MB |
How to open this lab
Sign in to your workspace at
lab.cloudlabbox.com.In File Manager, open Shared, then the folder
Network Automation in Practice - multi-vendor professional guided labs.Open
09 - Troubleshooting tickets - the automation is brokenand 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.