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 SSH server(s) on dut_dns,dut_hosts [SSH] SSH server on node dut_dns (device vjunos-switch) is ready after 139.4 seconds [SSH] SSH server on node dut_hosts (device vjunos-switch) is ready after 139.9 seconds [INFO] Checking lab devices with an Ansible playbook [WARNING]: Found variable using reserved name: hosts PLAY [Wait for SSH servers] **************************************************** 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/junos.yml for dut_dns, dut_hosts TASK [set_fact] **************************************************************** ok: [dut_dns] ok: [dut_hosts] TASK [Wait for first interface (ge-0/0/0)] ************************************* 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-31-dnssrv) [INFO] Executing initial configuration for node t1 (namespace clab- ml-31-t1) [INFO] Executing routing configuration for node dnssrv (namespace clab-ml-31-dnssrv) [INFO] Executing routing configuration for node t1 (namespace clab- ml-31-t1) [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=========================================\nsystem {\n host-name dut_dns;\n}\n\ninterfaces {\n ge-0/0/0 {\n mtu 1514;\n }\n\n lo0.0 {\n\n family inet {\n address 10.0.0.1/32;\n }\n }\n ge-0/0/0.0 {\n description \"dut_dns -> [dut_hosts,dnssrv,t1]\";\n\n family inet {\n address 172.16.0.1/24;\n }\n }\n}\nprotocols {\n lldp {\n interface fxp0 {\n disable;\n }\n interface all;\n }\n}\n" } ok: [dut_hosts] => { "msg": "initial configuration for dut_hosts\n=========================================\nsystem {\n host-name dut_hosts;\n static-host-mapping {\n dutdns inet 10.0.0.1;\n dnssrv inet 172.16.0.3;\n t1 inet 172.16.0.4;\n }\n}\n\ninterfaces {\n ge-0/0/0 {\n mtu 1514;\n }\n\n lo0.0 {\n\n family inet {\n address 10.0.0.2/32;\n }\n }\n ge-0/0/0.0 {\n description \"dut_hosts -> [dut_dns,dnssrv,t1]\";\n\n family inet {\n address 172.16.0.2/24;\n }\n }\n}\nprotocols {\n lldp {\n interface fxp0 {\n disable;\n }\n interface all;\n }\n}\n" } TASK [Deploy initial configuration] ******************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/junos.yml for dut_dns, dut_hosts TASK [junos_config: deploying initial from /work/netlab_cicd/junos/node_files/dut_dns/initial] *** changed: [dut_hosts] changed: [dut_dns] 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=========================================\nsystem {\n domain-name netlab.local;\n name-server {\n 172.16.0.3;\n }\n}\n" } TASK [Deploy services configuration] ******************************************* included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/junos.yml for dut_dns TASK [junos_config: deploying services from /work/netlab_cicd/junos/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=20 changed=2 unreachable=0 failed=0 skipped=12 rescued=0 ignored=0 dut_hosts : ok=8 changed=1 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).