2025-07-21 13:45:20,742 - INFO - Domain Default found not creating
2025-07-21 13:45:21,135 - INFO - Project ctest-TestvDNSBasic0-10084214 not found, creating it
2025-07-21 13:45:22,050 - INFO - Created Project:ctest-TestvDNSBasic0-10084214, ID : 8be80588-277c-4887-ab52-225317b1d274
2025-07-21 13:45:24,413 - INFO - ================================================================================
2025-07-21 13:45:24,414 - INFO - STARTING TEST : test_vdns_ping_same_vn
2025-07-21 13:45:24,414 - INFO - TEST DESCRIPTION :
Test:- Test vdns functionality. On VM launch agent should dynamically update dns records to dns agent
1. Create vDNS server
2. Create IPAM using above vDNS data
3. Create VN using above IPAM and launch 2 VM's within it
4. Ping between these 2 VM's using dns name
5. Try to delete vDNS server which has IPAM back-reference[Negative case]
6. Add CNAME VDNS record for vm1-test and verify we able to ping by alias name
Pass criteria: Step 4,5 and 6 should pass
Maintainer: cf-test@juniper.net
2025-07-21 13:45:24,744 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-07-21 13:45:24,744 - INFO - Initial checks done. Running the testcase now
2025-07-21 13:45:24,744 - INFO -
2025-07-21 13:45:25,667 - INFO - Using existing project ['default-domain', 'ctest-TestvDNSBasic0-10084214'](8be80588-277c-4887-ab52-225317b1d274)
2025-07-21 13:45:25,724 - DEBUG - Creating VDNS : ctest-vdns1-67841227
2025-07-21 13:45:25,997 - DEBUG - VDNS: ['default-domain', 'ctest-vdns1-67841227'] created succesfully
2025-07-21 13:45:25,997 - DEBUG - Verify VDNS entry is shown in control node
2025-07-21 13:45:26,013 - DEBUG - Verify VDNS entry is shown in the API server
2025-07-21 13:45:26,013 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-21 13:45:26,380 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-21 13:45:26,417 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6f2dbf83-3a1f-4a4f-8676-305ebe4efd33
2025-07-21 13:45:26,443 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-DNS/71fe2c5e-e5ec-4678-a0d9-4cd1258a99f1
2025-07-21 13:45:27,338 - DEBUG - Response for create_network : {'network': {'id': 'c53a328e-f040-4a84-85d3-831ebe605290', 'name': 'ctest-vn1-vdns-26841543', 'tenant_id': '8be80588277c4887ab52225317b1d274', 'project_id': '8be80588277c4887ab52225317b1d274', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestvDNSBasic0-10084214', 'ctest-vn1-vdns-26841543'], 'port_security_enabled': True, 'description': ''}}
2025-07-21 13:45:27,559 - DEBUG - Response for create_subnet : {'subnet': {'id': '6d901695-9b87-4f38-b274-fd56b16b52d0', 'name': '', 'tenant_id': '8be80588277c4887ab52225317b1d274', 'network_id': 'c53a328e-f040-4a84-85d3-831ebe605290', 'ip_version': 4, 'cidr': '10.10.10.0/24', 'allocation_pools': [{'start': '10.10.10.2', 'end': '10.10.10.254'}], 'gateway_ip': '10.10.10.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '10.10.10.2', 'tags': [], 'project_id': '8be80588277c4887ab52225317b1d274'}}
2025-07-21 13:45:27,581 - INFO - Created VN ctest-vn1-vdns-26841543
2025-07-21 13:45:27,641 - DEBUG - VN ctest-vn1-vdns-26841543 UUID is c53a328e-f040-4a84-85d3-831ebe605290
2025-07-21 13:45:28,073 - DEBUG - Services list from nova: [, , ]
2025-07-21 13:45:29,823 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3677-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3677-1)
2025-07-21 13:45:29,823 - INFO - Waiting for VM ctest-vm1-test-10350149 to be up..
2025-07-21 13:45:29,940 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2025-07-21 13:45:35,042 - DEBUG - VM is in ACTIVE state now
2025-07-21 13:45:35,042 - INFO - VM name : ctest-vm1-test-10350149
2025-07-21 13:45:35,122 - DEBUG - VM ctest-vm1-test-10350149 ID is 3fc5e2f8-b54f-4247-8735-647289b02460
2025-07-21 13:45:35,123 - DEBUG - VM ctest-vm1-test-10350149 launched on Node cn-jenkins-deploy-platform-ansible-os-3677-1.
2025-07-21 13:45:35,215 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/3fc5e2f8-b54f-4247-8735-647289b02460
2025-07-21 13:45:35,224 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/2714e5b5-9c97-4be6-a7a1-8975d1a54795
2025-07-21 13:45:38,518 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1024ms')
2025-07-21 13:45:38,518 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-10350149 failed!
2025-07-21 13:45:38,598 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-10084214:ctest-vn1-vdns-26841543 is 10.10.10.1 and allocation pool is NOT set
2025-07-21 13:45:42,715 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1035ms')
2025-07-21 13:45:42,716 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-10350149 failed!
2025-07-21 13:45:42,785 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-10084214:ctest-vn1-vdns-26841543 is 10.10.10.1 and allocation pool is NOT set
2025-07-21 13:45:46,874 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1014ms')
2025-07-21 13:45:46,874 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-10350149 failed!
2025-07-21 13:45:46,937 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-10084214:ctest-vn1-vdns-26841543 is 10.10.10.1 and allocation pool is NOT set
2025-07-21 13:45:51,033 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1017ms')
2025-07-21 13:45:51,033 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-10350149 failed!
2025-07-21 13:45:51,102 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-10084214:ctest-vn1-vdns-26841543 is 10.10.10.1 and allocation pool is NOT set
2025-07-21 13:45:55,194 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1025ms')
2025-07-21 13:45:55,195 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-10350149 failed!
2025-07-21 13:45:55,277 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-10084214:ctest-vn1-vdns-26841543 is 10.10.10.1 and allocation pool is NOT set
2025-07-21 13:45:59,350 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1004ms')
2025-07-21 13:45:59,350 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-10350149 failed!
2025-07-21 13:45:59,433 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-10084214:ctest-vn1-vdns-26841543 is 10.10.10.1 and allocation pool is NOT set
2025-07-21 13:46:03,512 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1004ms')
2025-07-21 13:46:03,512 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-10350149 failed!
2025-07-21 13:46:03,594 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-10084214:ctest-vn1-vdns-26841543 is 10.10.10.1 and allocation pool is NOT set
2025-07-21 13:46:07,706 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1032ms')
2025-07-21 13:46:07,707 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-10350149 failed!
2025-07-21 13:46:07,786 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-10084214:ctest-vn1-vdns-26841543 is 10.10.10.1 and allocation pool is NOT set
2025-07-21 13:46:11,899 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1022ms')
2025-07-21 13:46:11,899 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-10350149 failed!
2025-07-21 13:46:11,989 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-10084214:ctest-vn1-vdns-26841543 is 10.10.10.1 and allocation pool is NOT set
2025-07-21 13:46:16,089 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=6.59 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1013ms\r\nrtt min/avg/max/mdev = 6.594/6.594/6.594/0.000 ms')
2025-07-21 13:46:16,089 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-10350149 passed
2025-07-21 13:46:16,270 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-07-21 13:46:16,270 - DEBUG - Waiting to SSH to VM ctest-vm1-test-10350149, IP 10.10.10.3, Port 22
2025-07-21 13:46:16,342 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused
/bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''}
2025-07-21 13:46:16,560 - DEBUG - VM ctest-vm1-test-10350149 is NOT ready for SSH connections, VM status: ACTIVE
2025-07-21 13:46:21,561 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-07-21 13:46:21,561 - DEBUG - Waiting to SSH to VM ctest-vm1-test-10350149, IP 10.10.10.3, Port 22
2025-07-21 13:46:21,619 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused
/bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''}
2025-07-21 13:46:21,704 - DEBUG - VM ctest-vm1-test-10350149 is NOT ready for SSH connections, VM status: ACTIVE
2025-07-21 13:46:26,705 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-07-21 13:46:26,705 - DEBUG - Waiting to SSH to VM ctest-vm1-test-10350149, IP 10.10.10.3, Port 22
2025-07-21 13:46:26,777 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused
/bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''}
2025-07-21 13:46:26,936 - DEBUG - VM ctest-vm1-test-10350149 is NOT ready for SSH connections, VM status: ACTIVE
2025-07-21 13:46:31,937 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-07-21 13:46:31,937 - DEBUG - Waiting to SSH to VM ctest-vm1-test-10350149, IP 10.10.10.3, Port 22
2025-07-21 13:46:32,020 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused
/bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''}
2025-07-21 13:46:32,192 - DEBUG - VM ctest-vm1-test-10350149 is NOT ready for SSH connections, VM status: ACTIVE
2025-07-21 13:46:37,193 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-07-21 13:46:37,194 - DEBUG - Waiting to SSH to VM ctest-vm1-test-10350149, IP 10.10.10.3, Port 22
2025-07-21 13:46:37,390 - DEBUG - VM ctest-vm1-test-10350149 is ready for SSH connections
2025-07-21 13:46:37,390 - DEBUG - Running remote_cmd, Cmd : ifconfig | grep 10.10.10.3, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-07-21 13:46:37,391 - DEBUG - ifconfig | grep 10.10.10.3
2025-07-21 13:47:00,838 - DEBUG - inet addr:10.10.10.3 Bcast:10.10.10.255 Mask:255.255.255.0
2025-07-21 13:47:00,840 - DEBUG - Running remote_cmd, Cmd : python -c 'import socket;socket.getaddrinfo("ctest-vm1-test-10350149", None, socket.AF_INET6)', host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-07-21 13:47:00,840 - DEBUG - python -c 'import socket;socket.getaddrinfo("ctest-vm1-test-10350149", None, socket.AF_INET6)'
2025-07-21 13:47:03,779 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 ctest-vm1-test-10350149, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-07-21 13:47:03,780 - DEBUG - ping -s 56 -c 3 -W 1 ctest-vm1-test-10350149
2025-07-21 13:47:06,734 - DEBUG - PING ctest-vm1-test-10350149.juniper.net (10.10.10.3) 56(84) bytes of data.
64 bytes from ctest-vm1-test-10350149.juniper.net (10.10.10.3): icmp_req=1 ttl=64 time=3.43 ms
64 bytes from ctest-vm1-test-10350149.juniper.net (10.10.10.3): icmp_req=2 ttl=64 time=0.204 ms
64 bytes from ctest-vm1-test-10350149.juniper.net (10.10.10.3): icmp_req=3 ttl=64 time=0.203 ms
--- ctest-vm1-test-10350149.juniper.net ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 0.203/1.281/3.437/1.524 ms
2025-07-21 13:47:06,734 - INFO - Ping to IP ctest-vm1-test-10350149 from VM ctest-vm1-test-10350149 passed
2025-07-21 13:47:06,815 - DEBUG - Requesting: http://10.0.0.254:8092/Snh_PageReq?x=AllEntries%20VdnsServersReq
2025-07-21 13:47:06,834 - DEBUG - Requesting: http://10.0.0.254:8092/Snh_PageReq?x=default-domain:ctest-vdns1-67841227@0%20AllEntriesVdnsRecordsReq
2025-07-21 13:47:06,854 - DEBUG - Actual record data {'name': 'default-domain:ctest-vdns1-67841227:1:ctest-vm1-test-10350149:10.10.10.3', 'rec_name': 'ctest-vm1-test-10350149', 'rec_type': 'A', 'rec_class': 'IN', 'rec_data': '10.10.10.3', 'rec_ttl': '100', 'source': 'Agent', 'installed': 'true', 'flags': '3', 'rec_source_name': 'cn-jenkins-deploy-platform-ansible-os-3677-1/dns'} ,
Expected record data {'rec_data': '10.10.10.3', 'rec_type': 'A', 'rec_class': 'IN', 'rec_ttl': '100', 'rec_name': 'ctest-vm1-test-10350149.juniper.net', 'installed': 'yes', 'zone': 'juniper.net'}
2025-07-21 13:47:06,854 - DEBUG - Actual record data {'name': 'default-domain:ctest-vdns1-67841227:12:3.10.10.10.in-addr.arpa:ctest-vm1-test-10350149', 'rec_name': '3.10.10.10.in-addr.arpa', 'rec_type': 'PTR', 'rec_class': 'IN', 'rec_data': 'ctest-vm1-test-10350149', 'rec_ttl': '100', 'source': 'Agent', 'installed': 'true', 'flags': '3', 'rec_source_name': 'cn-jenkins-deploy-platform-ansible-os-3677-1/dns'} ,
Expected record data {'rec_data': 'ctest-vm1-test-10350149.juniper.net', 'rec_type': 'PTR', 'rec_class': 'IN', 'rec_ttl': '100', 'rec_name': '3.10.10.10.in-addr.arpa', 'installed': 'yes', 'zone': '10.10.10.in-addr.arpa'}
2025-07-21 13:47:09,103 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3677-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3677-1)
2025-07-21 13:47:09,104 - INFO - Waiting for VM ctest-vm2-test-67713904 to be up..
2025-07-21 13:47:09,215 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2025-07-21 13:47:14,434 - DEBUG - VM is in ACTIVE state now
2025-07-21 13:47:14,434 - INFO - VM name : ctest-vm2-test-67713904
2025-07-21 13:47:14,630 - DEBUG - VM ctest-vm2-test-67713904 ID is c61ffbf8-cc2f-4c61-a10a-0dad50e82264
2025-07-21 13:47:14,631 - DEBUG - VM ctest-vm2-test-67713904 launched on Node cn-jenkins-deploy-platform-ansible-os-3677-1.
2025-07-21 13:47:14,836 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/c61ffbf8-cc2f-4c61-a10a-0dad50e82264
2025-07-21 13:47:14,860 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/81528f81-bd84-4ecc-baf5-911916ec4454
2025-07-21 13:47:18,232 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1004ms')
2025-07-21 13:47:18,233 - DEBUG - Ping to Metadata IP 169.254.0.4 of VM ctest-vm2-test-67713904 failed!
2025-07-21 13:47:18,313 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-10084214:ctest-vn1-vdns-26841543 is 10.10.10.1 and allocation pool is NOT set
2025-07-21 13:47:22,392 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1008ms')
2025-07-21 13:47:22,393 - DEBUG - Ping to Metadata IP 169.254.0.4 of VM ctest-vm2-test-67713904 failed!
2025-07-21 13:47:22,469 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-10084214:ctest-vn1-vdns-26841543 is 10.10.10.1 and allocation pool is NOT set
2025-07-21 13:47:26,553 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1016ms')
2025-07-21 13:47:26,553 - DEBUG - Ping to Metadata IP 169.254.0.4 of VM ctest-vm2-test-67713904 failed!
2025-07-21 13:47:26,633 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-10084214:ctest-vn1-vdns-26841543 is 10.10.10.1 and allocation pool is NOT set
2025-07-21 13:47:30,716 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1001ms')
2025-07-21 13:47:30,716 - DEBUG - Ping to Metadata IP 169.254.0.4 of VM ctest-vm2-test-67713904 failed!
2025-07-21 13:47:30,797 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-10084214:ctest-vn1-vdns-26841543 is 10.10.10.1 and allocation pool is NOT set
2025-07-21 13:47:34,903 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1027ms')
2025-07-21 13:47:34,903 - DEBUG - Ping to Metadata IP 169.254.0.4 of VM ctest-vm2-test-67713904 failed!
2025-07-21 13:47:34,986 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-10084214:ctest-vn1-vdns-26841543 is 10.10.10.1 and allocation pool is NOT set
2025-07-21 13:47:39,097 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1029ms')
2025-07-21 13:47:39,097 - DEBUG - Ping to Metadata IP 169.254.0.4 of VM ctest-vm2-test-67713904 failed!
2025-07-21 13:47:39,170 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-10084214:ctest-vn1-vdns-26841543 is 10.10.10.1 and allocation pool is NOT set
2025-07-21 13:47:43,260 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1012ms')
2025-07-21 13:47:43,261 - DEBUG - Ping to Metadata IP 169.254.0.4 of VM ctest-vm2-test-67713904 failed!
2025-07-21 13:47:43,337 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-10084214:ctest-vn1-vdns-26841543 is 10.10.10.1 and allocation pool is NOT set
2025-07-21 13:47:47,417 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1009ms')
2025-07-21 13:47:47,418 - DEBUG - Ping to Metadata IP 169.254.0.4 of VM ctest-vm2-test-67713904 failed!
2025-07-21 13:47:47,498 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-10084214:ctest-vn1-vdns-26841543 is 10.10.10.1 and allocation pool is NOT set
2025-07-21 13:47:51,612 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1027ms')
2025-07-21 13:47:51,613 - DEBUG - Ping to Metadata IP 169.254.0.4 of VM ctest-vm2-test-67713904 failed!
2025-07-21 13:47:51,689 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-10084214:ctest-vn1-vdns-26841543 is 10.10.10.1 and allocation pool is NOT set
2025-07-21 13:47:55,768 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1004ms')
2025-07-21 13:47:55,769 - DEBUG - Ping to Metadata IP 169.254.0.4 of VM ctest-vm2-test-67713904 failed!
2025-07-21 13:47:55,846 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-10084214:ctest-vn1-vdns-26841543 is 10.10.10.1 and allocation pool is NOT set
2025-07-21 13:47:57,938 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=15.4 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=3.31 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 3.306/9.347/15.388/6.041 ms')
2025-07-21 13:47:57,938 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-vm2-test-67713904 passed
2025-07-21 13:47:58,137 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-07-21 13:47:58,137 - DEBUG - Waiting to SSH to VM ctest-vm2-test-67713904, IP 10.10.10.4, Port 22
2025-07-21 13:47:58,216 - DEBUG - Error on ssh to ubuntu@169.254.0.4:22, result: /bin/bash: connect: Connection refused
/bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''}
2025-07-21 13:47:58,409 - DEBUG - VM ctest-vm2-test-67713904 is NOT ready for SSH connections, VM status: ACTIVE
2025-07-21 13:48:03,410 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-07-21 13:48:03,410 - DEBUG - Waiting to SSH to VM ctest-vm2-test-67713904, IP 10.10.10.4, Port 22
2025-07-21 13:48:03,492 - DEBUG - Error on ssh to ubuntu@169.254.0.4:22, result: /bin/bash: connect: Connection refused
/bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''}
2025-07-21 13:48:03,689 - DEBUG - VM ctest-vm2-test-67713904 is NOT ready for SSH connections, VM status: ACTIVE
2025-07-21 13:48:08,690 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-07-21 13:48:08,690 - DEBUG - Waiting to SSH to VM ctest-vm2-test-67713904, IP 10.10.10.4, Port 22
2025-07-21 13:48:08,771 - DEBUG - Error on ssh to ubuntu@169.254.0.4:22, result: /bin/bash: connect: Connection refused
/bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''}
2025-07-21 13:48:08,932 - DEBUG - VM ctest-vm2-test-67713904 is NOT ready for SSH connections, VM status: ACTIVE
2025-07-21 13:48:13,933 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-07-21 13:48:13,933 - DEBUG - Waiting to SSH to VM ctest-vm2-test-67713904, IP 10.10.10.4, Port 22
2025-07-21 13:48:14,005 - DEBUG - Error on ssh to ubuntu@169.254.0.4:22, result: /bin/bash: connect: Connection refused
/bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''}
2025-07-21 13:48:14,146 - DEBUG - VM ctest-vm2-test-67713904 is NOT ready for SSH connections, VM status: ACTIVE
2025-07-21 13:48:19,147 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-07-21 13:48:19,147 - DEBUG - Waiting to SSH to VM ctest-vm2-test-67713904, IP 10.10.10.4, Port 22
2025-07-21 13:48:19,337 - DEBUG - VM ctest-vm2-test-67713904 is ready for SSH connections
2025-07-21 13:48:19,337 - DEBUG - Running remote_cmd, Cmd : ifconfig | grep 10.10.10.4, host_string: ubuntu@169.254.0.4, password: ubuntugateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-07-21 13:48:19,338 - DEBUG - ifconfig | grep 10.10.10.4
2025-07-21 13:48:42,529 - DEBUG - inet addr:10.10.10.4 Bcast:10.10.10.255 Mask:255.255.255.0
2025-07-21 13:48:42,530 - DEBUG - Running remote_cmd, Cmd : python -c 'import socket;socket.getaddrinfo("ctest-vm2-test-67713904", None, socket.AF_INET6)', host_string: ubuntu@169.254.0.4, password: ubuntugateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-07-21 13:48:42,530 - DEBUG - python -c 'import socket;socket.getaddrinfo("ctest-vm2-test-67713904", None, socket.AF_INET6)'
2025-07-21 13:48:45,913 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 ctest-vm2-test-67713904, host_string: ubuntu@169.254.0.4, password: ubuntugateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-07-21 13:48:45,913 - DEBUG - ping -s 56 -c 3 -W 1 ctest-vm2-test-67713904
2025-07-21 13:48:49,429 - DEBUG - PING ctest-vm2-test-67713904.juniper.net (10.10.10.4) 56(84) bytes of data.
64 bytes from ctest-vm2-test-67713904.juniper.net (10.10.10.4): icmp_req=1 ttl=64 time=3.05 ms
64 bytes from ctest-vm2-test-67713904.juniper.net (10.10.10.4): icmp_req=2 ttl=64 time=0.222 ms
64 bytes from ctest-vm2-test-67713904.juniper.net (10.10.10.4): icmp_req=3 ttl=64 time=0.328 ms
--- ctest-vm2-test-67713904.juniper.net ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2004ms
rtt min/avg/max/mdev = 0.222/1.201/3.054/1.311 ms
2025-07-21 13:48:49,429 - INFO - Ping to IP ctest-vm2-test-67713904 from VM ctest-vm2-test-67713904 passed
2025-07-21 13:48:49,489 - DEBUG - Requesting: http://10.0.0.254:8092/Snh_PageReq?x=AllEntries%20VdnsServersReq
2025-07-21 13:48:49,505 - DEBUG - Requesting: http://10.0.0.254:8092/Snh_PageReq?x=default-domain:ctest-vdns1-67841227@0%20AllEntriesVdnsRecordsReq
2025-07-21 13:48:49,513 - DEBUG - Actual record data {'name': 'default-domain:ctest-vdns1-67841227:1:ctest-vm2-test-67713904:10.10.10.4', 'rec_name': 'ctest-vm2-test-67713904', 'rec_type': 'A', 'rec_class': 'IN', 'rec_data': '10.10.10.4', 'rec_ttl': '100', 'source': 'Agent', 'installed': 'true', 'flags': '3', 'rec_source_name': 'cn-jenkins-deploy-platform-ansible-os-3677-1/dns'} ,
Expected record data {'rec_data': '10.10.10.4', 'rec_type': 'A', 'rec_class': 'IN', 'rec_ttl': '100', 'rec_name': 'ctest-vm2-test-67713904.juniper.net', 'installed': 'yes', 'zone': 'juniper.net'}
2025-07-21 13:48:49,513 - DEBUG - Actual record data {'name': 'default-domain:ctest-vdns1-67841227:12:4.10.10.10.in-addr.arpa:ctest-vm2-test-67713904', 'rec_name': '4.10.10.10.in-addr.arpa', 'rec_type': 'PTR', 'rec_class': 'IN', 'rec_data': 'ctest-vm2-test-67713904', 'rec_ttl': '100', 'source': 'Agent', 'installed': 'true', 'flags': '3', 'rec_source_name': 'cn-jenkins-deploy-platform-ansible-os-3677-1/dns'} ,
Expected record data {'rec_data': 'ctest-vm2-test-67713904.juniper.net', 'rec_type': 'PTR', 'rec_class': 'IN', 'rec_ttl': '100', 'rec_name': '4.10.10.10.in-addr.arpa', 'installed': 'yes', 'zone': '10.10.10.in-addr.arpa'}
2025-07-21 13:48:49,514 - DEBUG - Running remote_cmd, Cmd : python -c 'import socket;socket.getaddrinfo("ctest-vm2-test-67713904", None, socket.AF_INET6)', host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-07-21 13:48:49,514 - DEBUG - python -c 'import socket;socket.getaddrinfo("ctest-vm2-test-67713904", None, socket.AF_INET6)'
2025-07-21 13:48:51,040 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 ctest-vm2-test-67713904, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-07-21 13:48:51,040 - DEBUG - ping -s 56 -c 3 -W 1 ctest-vm2-test-67713904
2025-07-21 13:48:53,681 - DEBUG - PING ctest-vm2-test-67713904.juniper.net (10.10.10.4) 56(84) bytes of data.
64 bytes from ctest-vm2-test-67713904.juniper.net (10.10.10.4): icmp_req=1 ttl=64 time=14.0 ms
64 bytes from ctest-vm2-test-67713904.juniper.net (10.10.10.4): icmp_req=2 ttl=64 time=2.05 ms
64 bytes from ctest-vm2-test-67713904.juniper.net (10.10.10.4): icmp_req=3 ttl=64 time=2.00 ms
--- ctest-vm2-test-67713904.juniper.net ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2004ms
rtt min/avg/max/mdev = 2.008/6.038/14.053/5.667 ms
2025-07-21 13:48:53,682 - INFO - Ping to IP ctest-vm2-test-67713904 from VM ctest-vm1-test-10350149 passed
2025-07-21 13:48:53,682 - INFO - Try deleting the VDNS entry ctest-vdns1-67841227 with back ref of ipam.
2025-07-21 13:48:53,845 - DEBUG - Delete when resource still referred: ['http://10.0.0.254:8082/network-ipam/73615c59-f791-4765-8d51-64943695a72e']
2025-07-21 13:48:53,845 - INFO - Deletion of the vdns entry failed with back ref of ipam as expected
2025-07-21 13:48:53,845 - INFO - Add CNAME VDNS record for ctest-vm1-test-10350149 and verify we able to ping by alias name
2025-07-21 13:48:53,901 - DEBUG - Creating VDNS record data : test-rec
2025-07-21 13:48:54,049 - INFO - In verify_on_setup
2025-07-21 13:48:54,161 - DEBUG - VDNS record: ['default-domain', 'ctest-vdns1-67841227', 'test-rec'] created succesfully
2025-07-21 13:48:54,161 - INFO - Verify VDNS record is shown in the API server
2025-07-21 13:48:54,162 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-21 13:48:54,179 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6f2dbf83-3a1f-4a4f-8676-305ebe4efd33
2025-07-21 13:48:54,220 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-DNS/71fe2c5e-e5ec-4678-a0d9-4cd1258a99f1
2025-07-21 13:48:54,238 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-DNS-record/fe951b93-9c6c-4cf9-a46f-424db5d4f190
2025-07-21 13:48:54,253 - INFO - Verify VDNS record is shown in the control node
2025-07-21 13:48:54,268 - DEBUG - Running remote_cmd, Cmd : python -c 'import socket;socket.getaddrinfo("vm1-test-alias", None, socket.AF_INET6)', host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-07-21 13:48:54,269 - DEBUG - python -c 'import socket;socket.getaddrinfo("vm1-test-alias", None, socket.AF_INET6)'
2025-07-21 13:48:55,791 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 vm1-test-alias, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-07-21 13:48:55,791 - DEBUG - ping -s 56 -c 3 -W 1 vm1-test-alias
2025-07-21 13:48:56,323 - DEBUG - ping: unknown host vm1-test-alias
2025-07-21 13:48:56,323 - WARNING - Ping to IP vm1-test-alias from VM ctest-vm1-test-10350149 failed
2025-07-21 13:48:57,325 - DEBUG - Running remote_cmd, Cmd : python -c 'import socket;socket.getaddrinfo("vm1-test-alias", None, socket.AF_INET6)', host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-07-21 13:48:57,326 - DEBUG - python -c 'import socket;socket.getaddrinfo("vm1-test-alias", None, socket.AF_INET6)'
2025-07-21 13:48:58,949 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 vm1-test-alias, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-07-21 13:48:58,950 - DEBUG - ping -s 56 -c 3 -W 1 vm1-test-alias
2025-07-21 13:49:01,645 - DEBUG - PING ctest-vm1-test-10350149.juniper.net (10.10.10.3) 56(84) bytes of data.
64 bytes from ctest-vm1-test-10350149.juniper.net (10.10.10.3): icmp_req=1 ttl=64 time=0.213 ms
64 bytes from ctest-vm1-test-10350149.juniper.net (10.10.10.3): icmp_req=2 ttl=64 time=0.280 ms
64 bytes from ctest-vm1-test-10350149.juniper.net (10.10.10.3): icmp_req=3 ttl=64 time=0.301 ms
--- ctest-vm1-test-10350149.juniper.net ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2004ms
rtt min/avg/max/mdev = 0.213/0.264/0.301/0.041 ms
2025-07-21 13:49:01,646 - INFO - Ping to IP vm1-test-alias from VM ctest-vm1-test-10350149 passed
2025-07-21 13:49:01,646 - DEBUG - Deleting VDNS record data: test-rec
2025-07-21 13:49:01,740 - INFO - VDNS record info: default-domain:ctest-vdns1-67841227:test-rec deleted successfully.
2025-07-21 13:49:01,740 - INFO - Deleting VM ctest-vm2-test-67713904
2025-07-21 13:49:01,881 - INFO - Deleting VM ctest-vm1-test-10350149
2025-07-21 13:49:01,975 - INFO - Deleting VN ctest-vn1-vdns-26841543
2025-07-21 13:49:02,021 - DEBUG - VN c53a328e-f040-4a84-85d3-831ebe605290 still in use: Unable to complete operation on network c53a328e-f040-4a84-85d3-831ebe605290. There are one or more ports still in use on the network.
Neutron server returns request_ids: ['req-e3f07baa-8343-42d3-a211-03f2effc1aa4']
2025-07-21 13:49:02,021 - WARNING - Deleting VN ctest-vn1-vdns-26841543 failed..Will retry
2025-07-21 13:49:04,407 - DEBUG - Response for deleting network ()
2025-07-21 13:49:04,491 - DEBUG - Deleting VDNS Entry: ctest-vdns1-67841227
2025-07-21 13:49:04,588 - INFO - VDNS info: ['default-domain', 'ctest-vdns1-67841227'] deleted successfully.
2025-07-21 13:49:04,589 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-21 13:49:04,598 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6f2dbf83-3a1f-4a4f-8676-305ebe4efd33
2025-07-21 13:49:04,615 - DEBUG - VDNS information not found in API server
2025-07-21 13:49:04,616 - INFO - VDNS information ctest-vdns1-67841227 removed from the API Server
2025-07-21 13:49:04,625 - INFO - VDNS information ctest-vdns1-67841227 removed in the Control node
2025-07-21 13:49:04,625 - DEBUG - Skipping the deletion of Project ['default-domain', 'ctest-TestvDNSBasic0-10084214']
2025-07-21 13:49:04,937 - DEBUG - No XMPP flaps were noticed during the test
2025-07-21 13:49:04,938 - INFO - END TEST : test_vdns_ping_same_vn : PASSED[0:03:40]
2025-07-21 13:49:04,938 - INFO - --------------------------------------------------------------------------------
2025-07-21 13:49:05,978 - INFO - Deleted project: ctest-TestvDNSBasic0-10084214, ID : 8be80588-277c-4887-ab52-225317b1d274