Using transformed lab topology from snapshot file netlab.snapshot.pickle Checking virtualization provider installation OK: libvirt installed and working correctly OK: clab installed and working correctly Starting libvirt nodes creating libvirt management network nl_mgmt_17 provider libvirt: executing flock -E 42 /tmp/netlab.lock vagrant up --provider libvirt Bringing machine 'dut' up with 'libvirt' provider... ==> dut: Checking if box 'CumulusCommunity/cumulus-vx' version '4.4.5' is up to date... [fog][WARNING] Unrecognized arguments: libvirt_ip_command ==> dut: Creating image (snapshot of base box volume). ==> dut: Creating domain with the following settings... ==> dut: -- Name: ml-17_dut ==> dut: -- Description: Source: /work/netlab_cicd/Vagrantfile ==> dut: -- Domain type: kvm ==> dut: -- Cpus: 2 ==> dut: -- Feature: acpi ==> dut: -- Feature: apic ==> dut: -- Feature: pae ==> dut: -- Clock offset: utc ==> dut: -- Memory: 1024M ==> dut: -- Management MAC: ca:fe:00:01:00:00 ==> dut: -- Base box: CumulusCommunity/cumulus-vx ==> dut: -- Storage pool: default ==> dut: -- Image(vda): /var/lib/libvirt/images/ml-17_dut.img, virtio, 6G ==> dut: -- Disk driver opts: cache='default' ==> dut: -- Graphics Type: vnc ==> dut: -- Video Type: cirrus ==> dut: -- Video VRAM: 16384 ==> dut: -- Video 3D accel: false ==> dut: -- Keymap: en-us ==> dut: -- TPM Backend: passthrough ==> dut: -- INPUT: type=mouse, bus=ps2 ==> dut: Creating shared folders metadata... ==> dut: Starting domain. ==> dut: Domain launching with graphics connection settings... ==> dut: -- Graphics Port: 5900 ==> dut: -- Graphics IP: 127.0.0.1 ==> dut: -- Graphics Password: Not defined ==> dut: -- Graphics Websocket: 5700 ==> dut: Waiting for domain to get an IP address... ==> dut: Waiting for machine to boot. This may take a few minutes... dut: SSH address: 192.168.17.101:22 dut: SSH username: vagrant dut: SSH auth method: private key dut: dut: Vagrant insecure key detected. Vagrant will automatically replace dut: this with a newly generated keypair for better security. dut: dut: Inserting generated public key within guest... dut: Removing insecure key from the guest if it's present... dut: Key inserted! Disconnecting and reconnecting using new SSH key... ==> dut: Machine booted and ready! Starting clab nodes Recreating clab-augment.yml configuration file for clab provider Created provider configuration file: clab-augment.yml provider clab: executing flock -E 42 /tmp/netlab.lock sudo -E containerlab deploy --reconfigure -t clab-augment.yml 09:51:40 INFO Containerlab started version=0.75.0 09:51:40 INFO Parsing & checking topology file=clab-augment.yml 09:51:40 INFO Removing directory path=/work/netlab_cicd/clab-ml-17 09:51:40 INFO Creating docker network name=nl_mgmt_17 IPv4 subnet=192.168.17.0/24 IPv6 subnet="" MTU=0 09:51:40 INFO Creating lab directory path=/work/netlab_cicd/clab-ml-17 09:51:40 INFO Creating container name=x1 09:51:40 INFO Created link: x1:eth1 ▪┄┄▪ virbr2:bni17n2i1 09:51:41 INFO Executed command node=x1 command="sleep 1" stdout="" 09:51:41 INFO Adding host entries path=/etc/hosts 09:51:41 INFO Adding SSH config for nodes path=/etc/ssh/ssh_config.d/clab-ml-17.conf ╭───────────────┬──────────────────────────────┬─────────┬────────────────╮ │ Name │ Kind/Image │ State │ IPv4/6 Address │ ├───────────────┼──────────────────────────────┼─────────┼────────────────┤ │ clab-ml-17-x1 │ linux │ running │ 192.168.17.102 │ │ │ quay.io/frrouting/frr:10.6.1 │ │ N/A │ ╰───────────────┴──────────────────────────────┴─────────┴────────────────╯ Reloading saved initial device configurations [INFO] Lab devices are ready to be configured initial: [INFO] Lab devices do not need the configuration normalization step [WARNING]: Found variable using reserved name: hosts PLAY [Reload saved device configurations] ************************************** TASK [Did we get the configuration directory name?] **************************** skipping: [dut] TASK [Set variables that cannot be set with VARS] ****************************** ok: [dut] ok: [x1] TASK [Remember the original deployment path(s)] ******************************** ok: [dut] ok: [x1] TASK [Do initial device configuration if needed] ******************************* included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for dut, x1 TASK [Figure out whether to deploy the module initial on current device] ******* ok: [dut] ok: [x1] TASK [Find configuration template for initial] ********************************* skipping: [x1] ok: [dut] TASK [fail] ******************************************************************** skipping: [x1] skipping: [dut] TASK [Find configuration deployment deploy_script for initial] ***************** skipping: [x1] ok: [dut] TASK [Print deployed configuration when running in verbose mode] *************** skipping: [x1] ok: [dut] => { "msg": "initial configuration for dut\n=========================================\n#!/bin/bash\n#\nset -e\n#\n# Create bash profile script\n#\ncat <<'SCRIPT' >/root/.bash_profile\n#!/bin/bash\n#\nexport PS1=\"\\h(bash)#\"\necho \"Use vtysh to connect to FRR daemon\"\necho\nSCRIPT\n#\n# Build hosts file\n#\necho \"INIT: setting hostname\"\nhostname dut\n#\n#\n# Build hosts file\n#\n#\ncat <<'SCRIPT' >/tmp/hosts\n#\n# Created by netlab initial\n#\n10.0.0.1 dut\n10.1.0.1 swp1.dut\n10.0.0.2 x1\n10.1.0.2 eth1.x1\nSCRIPT\ngrep \"Created by netlab\" /etc/hosts || uniq /tmp/hosts >>/etc/hosts\n#\n# Disable ZTP\n#\nztp --disable\n#\n#\n\necho \"INIT: Configuring system wide default MTU policy\"\ncat > /etc/network/ifupdown2/policy.d/mtu.json </etc/network/interfaces.d/10-loopback.intf </etc/network/interfaces.d/11-physical.intf <>/etc/frr/daemons\necho \"ospf6d=yes\" >>/etc/frr/daemons\n\nsystemctl enable frr.service\nsystemctl start frr.service\nsystemctl reload frr.service\n#\n# Rest of initial configuration done through VTYSH\n#\ncat >/tmp/config < x1\n!\ndo write\nCONFIG\nvtysh -f /tmp/config\n#\n# Enable LLDP\n#\necho \"INIT: enabling LLDP\"\ncat <<'CONFIG' >/etc/lldpd.d/system.conf\nconfigure lldp tx-interval 30\nconfigure lldp tx-hold 3\nconfigure system interface pattern *,!eth0,swp*\nCONFIG\nservice lldpd restart\n" } TASK [Deploy initial configuration] ******************************************** skipping: [x1] included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/cumulus.yml for dut TASK [Render device configuration from /work/netlab_cicd/node_files/dut/initial.cfg] *** ok: [dut] TASK [Create local temporary file] ********************************************* changed: [dut -> localhost] TASK [Create initial config script in local temporary file] ******************** changed: [dut -> localhost] TASK [Execute local config script on Cumulus node] ***************************** changed: [dut] TASK [Remove temporary file /tmp/ansible.dut.9gagmlc1temp] ********************* changed: [dut -> localhost] TASK [Deploy saved configuration files] **************************************** included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-custom-config.yml for dut, x1 TASK [Find configuration template] ********************************************* ok: [dut] ok: [x1] TASK [fail] ******************************************************************** skipping: [dut] skipping: [x1] TASK [Check is the configuration template is a file] *************************** ok: [x1 -> localhost] ok: [dut -> localhost] TASK [fail] ******************************************************************** skipping: [dut] skipping: [x1] TASK [Process template /work/netlab_cicd/node_files/dut/saved.cfg for dut] ***** skipping: [dut] skipping: [x1] TASK [debug] ******************************************************************* skipping: [dut] skipping: [x1] TASK [debug] ******************************************************************* skipping: [dut] skipping: [x1] TASK [Find custom configuration deployment script] ***************************** ok: [dut] ok: [x1] TASK [Run the configuration deployment script] ********************************* included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/cumulus.yml for dut included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/frr.yml for x1 TASK [Render device configuration from /work/netlab_cicd/node_files/dut/saved.cfg] *** ok: [dut] TASK [Create local temporary file] ********************************************* changed: [dut -> localhost] TASK [Create saved config script in local temporary file] ********************** changed: [dut -> localhost] TASK [Execute local config script on Cumulus node] ***************************** changed: [dut] TASK [Remove temporary file /tmp/ansible.dut.xh4d_i0btemp] ********************* changed: [dut -> localhost] TASK [template] **************************************************************** changed: [x1] TASK [set_fact] **************************************************************** ok: [x1] TASK [run /tmp/config.sh to deploy saved config from /work/netlab_cicd/node_files/x1/saved.cfg] *** skipping: [x1] TASK [run vtysh to import saved config from /work/netlab_cicd/node_files/x1/saved.cfg] *** changed: [x1] PLAY RECAP ********************************************************************* dut : ok=23 changed=8 unreachable=0 failed=0 skipped=7 rescued=0 ignored=0 x1 : ok=12 changed=2 unreachable=0 failed=0 skipped=11 rescued=0 ignored=0 [CREATED] dut: initial,saved [CREATED] x1: initial,saved OK: Saved configurations reloaded Creating Device configuration snippets [CREATED] x1: initial,ospf Config Deploying device configurations [INFO] Executing initial configuration for node x1 [INFO] Executing ospf configuration for node x1 Results of configuration script deployments ================================================================================ x1 Script: initial,ospf This topology tests the "start lab with configuration reload" functionality. You should: * Start the lab with "netlab up" * Save the configuration with "netlab collect -o saved" * Stop the lab with "netlab down" * Restart the lab with "netlab up --snapshot --reload-config saved" * Validate the results with "netlab validate"