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 nxos) is ready after 210.7 seconds [SSH] SSH server on node dut_hosts (device nxos) is ready after 215.7 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/nxos.yml for dut_dns, dut_hosts TASK [Wait for Eth1/1 to appear] *********************************************** ok: [dut_hosts] ok: [dut_dns] PLAY RECAP ********************************************************************* dut_dns : ok=4 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 dut_hosts : ok=4 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_hosts] ok: [dut_dns] 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=========================================\nhostname dut_dns\n!\nno ip domain-lookup\n!\nfeature lldp\n!\nusername vagrant password vagrant\n!\n!\n!\ninterface mgmt0\n no lldp transmit\n no lldp receive\n!\ninterface loopback0\n no shutdown\n ip address 10.0.0.1/32\n!\ninterface Ethernet1/1\n no shutdown\n no switchport\n mac-address caf0.0001.0001\n description dut_dns -> [dut_hosts,dnssrv,t1]\n ip address 172.16.0.1/24\n!\n" } ok: [dut_hosts] => { "msg": "initial configuration for dut_hosts\n=========================================\nhostname dut_hosts\n!\nno ip domain-lookup\n!\nfeature lldp\n!\nusername vagrant password vagrant\n!\nip host dnssrv 172.16.0.3\nip host dut_dns 10.0.0.1\nip host t1 172.16.0.4\n!\n!\ninterface mgmt0\n no lldp transmit\n no lldp receive\n!\ninterface loopback0\n no shutdown\n ip address 10.0.0.2/32\n!\ninterface Ethernet1/1\n no shutdown\n no switchport\n mac-address caf0.0002.0001\n description dut_hosts -> [dut_dns,dnssrv,t1]\n ip address 172.16.0.2/24\n!\n" } TASK [Deploy initial configuration] ******************************************** included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/nxos.yml for dut_dns, dut_hosts TASK [nxos_config: deploying initial from /work/netlab_cicd/node_files/dut_dns/initial] *** [WARNING]: To ensure idempotency and correct diff the input configuration lines should be similar to how they appear if present in the running configuration on device including the indentation 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=========================================\nip domain-lookup\n!\nip name-server 172.16.0.3\nip domain-name cicd.local\n" } TASK [Deploy services configuration] ******************************************* included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/nxos.yml for dut_dns TASK [nxos_config: deploying services 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=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).