Creating Device configuration snippets [CREATED] dut_dns: initial,services [CREATED] dut_hosts: initial [CREATED] dnssrv: initial,dhcp,services,routing [CREATED] t1: initial,routing Checking Are lab devices ready to be configured? [INFO] Checking lab devices with an Ansible playbook [WARNING]: Could not match supplied host pattern, ignoring: netlab_ready_ssh [WARNING]: Found variable using reserved name: hosts PLAY [Wait for SSH servers] **************************************************** skipping: no hosts matched PLAY [Wait for device-specific conditions] ************************************* TASK [Set variables that cannot be set with VARS] ****************************** ok: [dut_dns] ok: [dut_hosts] TASK [Find device readiness script] ******************************************** ok: [dut_dns] ok: [dut_hosts] TASK [Wait for device to become ready] ***************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/readiness-check/vyos-clab.yml for dut_dns, dut_hosts TASK [wait_for_connection] ***************************************************** ok: [dut_hosts] ok: [dut_dns] TASK [wait_for] **************************************************************** ok: [dut_dns] ok: [dut_hosts] PLAY RECAP ********************************************************************* dut_dns : ok=5 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 dut_hosts : ok=5 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Config Deploying device configurations [INFO] Executing initial configuration for node dnssrv (namespace clab-ml-17-dnssrv) [INFO] Executing initial configuration for node t1 (namespace clab- ml-17-t1) [INFO] Executing routing configuration for node t1 (namespace clab- ml-17-t1) [INFO] Executing routing configuration for node dnssrv (namespace clab-ml-17-dnssrv) [INFO] Starting Ansible playbook to deploy the rest of the configurations [WARNING]: Found variable using reserved name: hosts PLAY [Deploy initial device configuration] ************************************* TASK [Set variables that cannot be set with VARS] ****************************** ok: [dut_dns] ok: [dut_hosts] TASK [Deploy initial configuration] ******************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for dut_dns, dut_hosts TASK [Figure out whether to deploy the module initial on current device] ******* ok: [dut_dns] ok: [dut_hosts] TASK [Find configuration template for initial] ********************************* ok: [dut_dns] ok: [dut_hosts] TASK [fail] ******************************************************************** skipping: [dut_dns] skipping: [dut_hosts] TASK [Find configuration deployment deploy_script for initial] ***************** ok: [dut_dns] ok: [dut_hosts] TASK [Print deployed configuration when running in verbose mode] *************** ok: [dut_dns] => { "msg": "initial configuration for dut_dns\n=========================================\nset system host-name 'dut-dns'\n\n\n\n\n\nset interfaces dummy dum0 address 10.0.0.1/32\n\n\n\n\nset interfaces ethernet eth1 description 'dut_dns -> [dut_hosts,dnssrv,t1]'\n\nset interfaces ethernet eth1 mtu 1500\n\nset interfaces ethernet eth1 address 172.16.0.1/24\n\n\n\n\nset service lldp interface all\n>/dev/null 2>/dev/null set service lldp interface eth0 disable\n>/dev/null 2>/dev/null set service lldp interface eth0 mode disable\n\n\nset service ssh\n\ncommit\n\n# Restart FRR to pick up the new hostname\nsudo service frr restart\n" } ok: [dut_hosts] => { "msg": "initial configuration for dut_hosts\n=========================================\nset system host-name 'dut-hosts'\n\n\n\n\n\nset interfaces dummy dum0 address 10.0.0.2/32\n\nset system static-host-mapping host-name dnssrv inet 172.16.0.3\nset system static-host-mapping host-name dut_dns inet 10.0.0.1\nset system static-host-mapping host-name t1 inet 172.16.0.4\n\n\n\nset interfaces ethernet eth1 description 'dut_hosts -> [dut_dns,dnssrv,t1]'\n\nset interfaces ethernet eth1 mtu 1500\n\nset interfaces ethernet eth1 address 172.16.0.2/24\n\n\n\n\nset service lldp interface all\n>/dev/null 2>/dev/null set service lldp interface eth0 disable\n>/dev/null 2>/dev/null set service lldp interface eth0 mode disable\n\n\nset service ssh\n\ncommit\n\n# Restart FRR to pick up the new hostname\nsudo service frr restart\n" } TASK [Deploy initial configuration] ******************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/vyos.yml for dut_dns, dut_hosts TASK [set_fact] **************************************************************** ok: [dut_dns] ok: [dut_hosts] TASK [template] **************************************************************** changed: [dut_hosts] changed: [dut_dns] TASK [execute config-initial.sh to deploy initial config from /work/netlab_cicd/node_files/dut_dns/initial] *** changed: [dut_dns] changed: [dut_hosts] PLAY [Deploy module-specific configurations] *********************************** TASK [Set variables that cannot be set with VARS] ****************************** ok: [dut_dns] TASK [Deploy individual configuration modules] ********************************* included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for dut_dns => (item=dhcp) included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for dut_dns => (item=services) included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for dut_dns => (item=routing) TASK [Figure out whether to deploy the module dhcp on current device] ********** ok: [dut_dns] TASK [Find configuration template for dhcp] ************************************ skipping: [dut_dns] TASK [fail] ******************************************************************** skipping: [dut_dns] TASK [Find configuration deployment deploy_script for dhcp] ******************** skipping: [dut_dns] TASK [Print deployed configuration when running in verbose mode] *************** skipping: [dut_dns] TASK [Deploy dhcp configuration] *********************************************** skipping: [dut_dns] TASK [Figure out whether to deploy the module services on current device] ****** ok: [dut_dns] TASK [Find configuration template for services] ******************************** ok: [dut_dns] TASK [fail] ******************************************************************** skipping: [dut_dns] TASK [Find configuration deployment deploy_script for services] **************** ok: [dut_dns] TASK [Print deployed configuration when running in verbose mode] *************** ok: [dut_dns] => { "msg": "services configuration for dut_dns\n=========================================\nset system name-server 172.16.0.3\nset system domain-search cicd.local\n\n" } TASK [Deploy services configuration] ******************************************* included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/vyos.yml for dut_dns TASK [set_fact] **************************************************************** ok: [dut_dns] TASK [template] **************************************************************** changed: [dut_dns] TASK [execute config-services.sh to deploy services config from /work/netlab_cicd/node_files/dut_dns/services] *** changed: [dut_dns] TASK [Figure out whether to deploy the module routing on current device] ******* ok: [dut_dns] TASK [Find configuration template for routing] ********************************* skipping: [dut_dns] TASK [fail] ******************************************************************** skipping: [dut_dns] TASK [Find configuration deployment deploy_script for routing] ***************** skipping: [dut_dns] TASK [Print deployed configuration when running in verbose mode] *************** skipping: [dut_dns] TASK [Deploy routing configuration] ******************************************** skipping: [dut_dns] PLAY [Deploy custom deployment templates] ************************************** skipping: no hosts matched PLAY RECAP ********************************************************************* dut_dns : ok=24 changed=4 unreachable=0 failed=0 skipped=12 rescued=0 ignored=0 dut_hosts : ok=10 changed=2 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Results of configuration script deployments ================================================================================ dnssrv Script: initial,routing t1 Script: initial,routing The test checks the DNS client configuration on DUT. The validate.ping entry must specify the "ping" command for all supported devices; the test performs the ping, checks for the presence of remote IP address in the output (= name resolution works), and then checks for the DNS query on the DNS server (= DNS client works).