2025-08-15 10:35:59,789 - INFO - Domain Default found not creating
2025-08-15 10:35:59,916 - INFO - Project ctest-TestvDNSBasic0-89019745 not found, creating it
2025-08-15 10:36:00,397 - INFO - Created Project:ctest-TestvDNSBasic0-89019745, ID : 3e46c28d-822d-4182-a94f-769c3d36cccd
2025-08-15 10:36:01,724 - INFO - ================================================================================
2025-08-15 10:36:01,724 - INFO - STARTING TEST : test_vdns_ping_same_vn
2025-08-15 10:36:01,724 - 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-08-15 10:36:02,970 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.14': '1', '10.20.0.254': '1'}, '10.0.0.242': {'10.20.0.254': '0', '10.20.0.25': '1'}} with
2025-08-15 10:36:02,970 - INFO - Initial checks done. Running the testcase now
2025-08-15 10:36:02,970 - INFO -
2025-08-15 10:36:03,668 - INFO - Using existing project ['default-domain', 'ctest-TestvDNSBasic0-89019745'](3e46c28d-822d-4182-a94f-769c3d36cccd)
2025-08-15 10:36:03,723 - DEBUG - Creating VDNS : ctest-vdns1-32464843
2025-08-15 10:36:03,951 - DEBUG - VDNS: ['default-domain', 'ctest-vdns1-32464843'] created succesfully
2025-08-15 10:36:03,952 - DEBUG - Verify VDNS entry is shown in control node
2025-08-15 10:36:03,969 - DEBUG - Verify VDNS entry is shown in the API server
2025-08-15 10:36:03,969 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-15 10:36:04,256 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-15 10:36:04,292 - DEBUG - Requesting: http://10.0.0.50:8082/domain/4d954f05-13b9-4014-b839-289a92604c21
2025-08-15 10:36:04,314 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-DNS/94cb2401-4bb4-4b3d-b098-2046144dda1f
2025-08-15 10:36:05,015 - DEBUG - Response for create_network : {'network': {'id': '4887efd2-4391-4c98-9cf5-05408a4bff94', 'name': 'ctest-vn1-vdns-75365044', 'tenant_id': '3e46c28d822d4182a94f769c3d36cccd', 'project_id': '3e46c28d822d4182a94f769c3d36cccd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestvDNSBasic0-89019745', 'ctest-vn1-vdns-75365044'], 'port_security_enabled': True, 'description': ''}}
2025-08-15 10:36:05,272 - DEBUG - Response for create_subnet : {'subnet': {'id': '0c10df7a-8730-4509-9638-89ee5cf2cbf4', 'name': '', 'tenant_id': '3e46c28d822d4182a94f769c3d36cccd', 'network_id': '4887efd2-4391-4c98-9cf5-05408a4bff94', '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': '3e46c28d822d4182a94f769c3d36cccd'}}
2025-08-15 10:36:05,298 - INFO - Created VN ctest-vn1-vdns-75365044
2025-08-15 10:36:05,312 - DEBUG - VN ctest-vn1-vdns-75365044 UUID is 4887efd2-4391-4c98-9cf5-05408a4bff94
2025-08-15 10:36:05,480 - DEBUG - Services list from nova: [, , , ]
2025-08-15 10:36:06,521 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3861-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3861-2)
2025-08-15 10:36:06,521 - INFO - Waiting for VM ctest-vm1-test-88408763 to be up..
2025-08-15 10:36:06,566 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2025-08-15 10:36:11,641 - DEBUG - VM is in ACTIVE state now
2025-08-15 10:36:11,641 - INFO - VM name : ctest-vm1-test-88408763
2025-08-15 10:36:11,711 - DEBUG - VM ctest-vm1-test-88408763 ID is a3edc9b8-13cf-4b4d-872e-9734479456e1
2025-08-15 10:36:11,711 - DEBUG - VM ctest-vm1-test-88408763 launched on Node an-jenkins-deploy-platform-ansible-os-3861-2
2025-08-15 10:36:11,781 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine/a3edc9b8-13cf-4b4d-872e-9734479456e1
2025-08-15 10:36:12,071 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine/a3edc9b8-13cf-4b4d-872e-9734479456e1
2025-08-15 10:36:12,103 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine-interface/4dab1bc7-94b3-47ba-80e5-2ee7fe2518c0
2025-08-15 10:36:15,279 - 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 1031ms')
2025-08-15 10:36:15,279 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-88408763 failed!
2025-08-15 10:36:15,292 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-89019745:ctest-vn1-vdns-75365044 is 10.10.10.1 and allocation pool is NOT set
2025-08-15 10:36:19,382 - 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 1027ms')
2025-08-15 10:36:19,382 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-88408763 failed!
2025-08-15 10:36:19,398 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-89019745:ctest-vn1-vdns-75365044 is 10.10.10.1 and allocation pool is NOT set
2025-08-15 10:36:23,472 - 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-08-15 10:36:23,473 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-88408763 failed!
2025-08-15 10:36:23,486 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-89019745:ctest-vn1-vdns-75365044 is 10.10.10.1 and allocation pool is NOT set
2025-08-15 10:36:27,570 - 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 1027ms')
2025-08-15 10:36:27,570 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-88408763 failed!
2025-08-15 10:36:27,583 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-89019745:ctest-vn1-vdns-75365044 is 10.10.10.1 and allocation pool is NOT set
2025-08-15 10:36:31,663 - 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 1027ms')
2025-08-15 10:36:31,664 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-88408763 failed!
2025-08-15 10:36:31,679 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-89019745:ctest-vn1-vdns-75365044 is 10.10.10.1 and allocation pool is NOT set
2025-08-15 10:36:35,763 - 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 1027ms')
2025-08-15 10:36:35,763 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-88408763 failed!
2025-08-15 10:36:35,776 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-89019745:ctest-vn1-vdns-75365044 is 10.10.10.1 and allocation pool is NOT set
2025-08-15 10:36:39,861 - 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 1019ms')
2025-08-15 10:36:39,861 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-88408763 failed!
2025-08-15 10:36:39,873 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-89019745:ctest-vn1-vdns-75365044 is 10.10.10.1 and allocation pool is NOT set
2025-08-15 10:36:43,954 - 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 1019ms')
2025-08-15 10:36:43,954 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-88408763 failed!
2025-08-15 10:36:43,966 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-89019745:ctest-vn1-vdns-75365044 is 10.10.10.1 and allocation pool is NOT set
2025-08-15 10:36:46,033 - 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=1 ttl=63 time=8.05 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.46 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 3.461/5.753/8.046/2.292 ms')
2025-08-15 10:36:46,034 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-88408763 passed
2025-08-15 10:36:46,100 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-08-15 10:36:46,100 - DEBUG - Waiting to SSH to VM ctest-vm1-test-88408763, IP 10.10.10.3, Port 22
2025-08-15 10:36:46,169 - 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-08-15 10:36:46,273 - DEBUG - VM ctest-vm1-test-88408763 is NOT ready for SSH connections, VM status: ACTIVE
2025-08-15 10:36:51,273 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-08-15 10:36:51,273 - DEBUG - Waiting to SSH to VM ctest-vm1-test-88408763, IP 10.10.10.3, Port 22
2025-08-15 10:36:51,330 - 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-08-15 10:36:51,403 - DEBUG - VM ctest-vm1-test-88408763 is NOT ready for SSH connections, VM status: ACTIVE
2025-08-15 10:36:56,403 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-08-15 10:36:56,404 - DEBUG - Waiting to SSH to VM ctest-vm1-test-88408763, IP 10.10.10.3, Port 22
2025-08-15 10:36:56,468 - 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-08-15 10:36:56,543 - DEBUG - VM ctest-vm1-test-88408763 is NOT ready for SSH connections, VM status: ACTIVE
2025-08-15 10:37:01,543 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-08-15 10:37:01,543 - DEBUG - Waiting to SSH to VM ctest-vm1-test-88408763, IP 10.10.10.3, Port 22
2025-08-15 10:37:01,716 - DEBUG - VM ctest-vm1-test-88408763 is ready for SSH connections
2025-08-15 10:37:01,716 - DEBUG - Running remote_cmd, Cmd : ifconfig | grep 10.10.10.3, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.242, gateway password: c0ntrail123
2025-08-15 10:37:01,716 - DEBUG - ifconfig | grep 10.10.10.3
2025-08-15 10:37:22,447 - DEBUG - inet addr:10.10.10.3 Bcast:10.10.10.255 Mask:255.255.255.0
2025-08-15 10:37:22,448 - DEBUG - Running remote_cmd, Cmd : python -c 'import socket;socket.getaddrinfo("ctest-vm1-test-88408763", None, socket.AF_INET6)', host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.242, gateway password: c0ntrail123
2025-08-15 10:37:22,448 - DEBUG - python -c 'import socket;socket.getaddrinfo("ctest-vm1-test-88408763", None, socket.AF_INET6)'
2025-08-15 10:37:25,005 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 ctest-vm1-test-88408763, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.242, gateway password: c0ntrail123
2025-08-15 10:37:25,005 - DEBUG - ping -s 56 -c 3 -W 1 ctest-vm1-test-88408763
2025-08-15 10:37:27,952 - DEBUG - PING ctest-vm1-test-88408763.juniper.net (10.10.10.3) 56(84) bytes of data.
64 bytes from ctest-vm1-test-88408763.juniper.net (10.10.10.3): icmp_req=1 ttl=64 time=2.69 ms
64 bytes from ctest-vm1-test-88408763.juniper.net (10.10.10.3): icmp_req=2 ttl=64 time=0.234 ms
64 bytes from ctest-vm1-test-88408763.juniper.net (10.10.10.3): icmp_req=3 ttl=64 time=0.207 ms
--- ctest-vm1-test-88408763.juniper.net ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 0.207/1.044/2.693/1.166 ms
2025-08-15 10:37:27,952 - INFO - Ping to IP ctest-vm1-test-88408763 from VM ctest-vm1-test-88408763 passed
2025-08-15 10:37:27,980 - DEBUG - Requesting: http://10.0.0.50:8092/Snh_PageReq?x=AllEntries%20VdnsServersReq
2025-08-15 10:37:27,989 - DEBUG - Requesting: http://10.0.0.50:8092/Snh_PageReq?x=default-domain:ctest-vdns1-32464843@0%20AllEntriesVdnsRecordsReq
2025-08-15 10:37:28,000 - DEBUG - Requesting: http://10.0.0.50:8092/Snh_PageReq?x=AllEntries%20VdnsServersReq
2025-08-15 10:37:28,005 - DEBUG - Requesting: http://10.0.0.50:8092/Snh_PageReq?x=default-domain:ctest-vdns1-32464843@0%20AllEntriesVdnsRecordsReq
2025-08-15 10:37:28,015 - DEBUG - Requesting: http://10.0.0.50:8092/Snh_PageReq?x=AllEntries%20VdnsServersReq
2025-08-15 10:37:28,027 - DEBUG - Requesting: http://10.0.0.50:8092/Snh_PageReq?x=default-domain:ctest-vdns1-32464843@0%20AllEntriesVdnsRecordsReq
2025-08-15 10:37:28,038 - DEBUG - Actual record data {'name': 'default-domain:ctest-vdns1-32464843:1:ctest-vm1-test-88408763:10.10.10.3', 'rec_name': 'ctest-vm1-test-88408763', 'rec_type': 'A', 'rec_class': 'IN', 'rec_data': '10.10.10.3', 'rec_ttl': '100', 'source': 'Agent', 'installed': 'true', 'flags': '3', 'rec_source_name': 'an-jenkins-deploy-platform-ansible-os-3861-2/dns'} ,
Expected record data {'rec_data': '10.10.10.3', 'rec_type': 'A', 'rec_class': 'IN', 'rec_ttl': '100', 'rec_name': 'ctest-vm1-test-88408763.juniper.net', 'installed': 'yes', 'zone': 'juniper.net'}
2025-08-15 10:37:28,038 - DEBUG - Actual record data {'name': 'default-domain:ctest-vdns1-32464843:12:3.10.10.10.in-addr.arpa:ctest-vm1-test-88408763', 'rec_name': '3.10.10.10.in-addr.arpa', 'rec_type': 'PTR', 'rec_class': 'IN', 'rec_data': 'ctest-vm1-test-88408763', 'rec_ttl': '100', 'source': 'Agent', 'installed': 'true', 'flags': '3', 'rec_source_name': 'an-jenkins-deploy-platform-ansible-os-3861-2/dns'} ,
Expected record data {'rec_data': 'ctest-vm1-test-88408763.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-08-15 10:37:29,271 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3861-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3861-1)
2025-08-15 10:37:29,271 - INFO - Waiting for VM ctest-vm2-test-33643220 to be up..
2025-08-15 10:37:29,325 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2025-08-15 10:37:34,401 - DEBUG - VM is in ACTIVE state now
2025-08-15 10:37:34,401 - INFO - VM name : ctest-vm2-test-33643220
2025-08-15 10:37:34,474 - DEBUG - VM ctest-vm2-test-33643220 ID is 18342275-9165-47c4-9f59-975c6afa5a2c
2025-08-15 10:37:34,474 - DEBUG - VM ctest-vm2-test-33643220 launched on Node an-jenkins-deploy-platform-ansible-os-3861-1
2025-08-15 10:37:34,541 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine/18342275-9165-47c4-9f59-975c6afa5a2c
2025-08-15 10:37:34,550 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine-interface/78b025b6-fe10-42a4-8d6d-fd3e18599f28
2025-08-15 10:37:37,732 - 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-08-15 10:37:37,732 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-33643220 failed!
2025-08-15 10:37:37,745 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-89019745:ctest-vn1-vdns-75365044 is 10.10.10.1 and allocation pool is NOT set
2025-08-15 10:37:41,834 - 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 1020ms')
2025-08-15 10:37:41,834 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-33643220 failed!
2025-08-15 10:37:41,847 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-89019745:ctest-vn1-vdns-75365044 is 10.10.10.1 and allocation pool is NOT set
2025-08-15 10:37:45,930 - 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 1021ms')
2025-08-15 10:37:45,930 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-33643220 failed!
2025-08-15 10:37:45,946 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-89019745:ctest-vn1-vdns-75365044 is 10.10.10.1 and allocation pool is NOT set
2025-08-15 10:37:50,024 - 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 1007ms')
2025-08-15 10:37:50,024 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-33643220 failed!
2025-08-15 10:37:50,038 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-89019745:ctest-vn1-vdns-75365044 is 10.10.10.1 and allocation pool is NOT set
2025-08-15 10:37:54,126 - 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-08-15 10:37:54,126 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-33643220 failed!
2025-08-15 10:37:54,142 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-89019745:ctest-vn1-vdns-75365044 is 10.10.10.1 and allocation pool is NOT set
2025-08-15 10:37:58,221 - 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 1010ms')
2025-08-15 10:37:58,221 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-33643220 failed!
2025-08-15 10:37:58,236 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-89019745:ctest-vn1-vdns-75365044 is 10.10.10.1 and allocation pool is NOT set
2025-08-15 10:38:02,307 - 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 1015ms')
2025-08-15 10:38:02,307 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-33643220 failed!
2025-08-15 10:38:02,321 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-89019745:ctest-vn1-vdns-75365044 is 10.10.10.1 and allocation pool is NOT set
2025-08-15 10:38:06,407 - 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 1019ms')
2025-08-15 10:38:06,407 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-33643220 failed!
2025-08-15 10:38:06,424 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-89019745:ctest-vn1-vdns-75365044 is 10.10.10.1 and allocation pool is NOT set
2025-08-15 10:38:10,504 - 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 1015ms')
2025-08-15 10:38:10,504 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-33643220 failed!
2025-08-15 10:38:10,519 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-89019745:ctest-vn1-vdns-75365044 is 10.10.10.1 and allocation pool is NOT set
2025-08-15 10:38:12,584 - 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=1 ttl=63 time=10.6 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.816 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.816/5.700/10.584/4.884 ms')
2025-08-15 10:38:12,584 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-33643220 passed
2025-08-15 10:38:12,658 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-08-15 10:38:12,658 - DEBUG - Waiting to SSH to VM ctest-vm2-test-33643220, IP 10.10.10.4, Port 22
2025-08-15 10:38:12,726 - 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-08-15 10:38:12,814 - DEBUG - VM ctest-vm2-test-33643220 is NOT ready for SSH connections, VM status: ACTIVE
2025-08-15 10:38:17,815 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-08-15 10:38:17,815 - DEBUG - Waiting to SSH to VM ctest-vm2-test-33643220, IP 10.10.10.4, Port 22
2025-08-15 10:38:17,883 - 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-08-15 10:38:17,975 - DEBUG - VM ctest-vm2-test-33643220 is NOT ready for SSH connections, VM status: ACTIVE
2025-08-15 10:38:22,976 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-08-15 10:38:22,976 - DEBUG - Waiting to SSH to VM ctest-vm2-test-33643220, IP 10.10.10.4, Port 22
2025-08-15 10:38:23,043 - 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-08-15 10:38:23,171 - DEBUG - VM ctest-vm2-test-33643220 is NOT ready for SSH connections, VM status: ACTIVE
2025-08-15 10:38:28,172 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-08-15 10:38:28,172 - DEBUG - Waiting to SSH to VM ctest-vm2-test-33643220, IP 10.10.10.4, Port 22
2025-08-15 10:38:28,239 - 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-08-15 10:38:28,326 - DEBUG - VM ctest-vm2-test-33643220 is NOT ready for SSH connections, VM status: ACTIVE
2025-08-15 10:38:33,327 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-08-15 10:38:33,327 - DEBUG - Waiting to SSH to VM ctest-vm2-test-33643220, IP 10.10.10.4, Port 22
2025-08-15 10:38:33,395 - 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-08-15 10:38:33,488 - DEBUG - VM ctest-vm2-test-33643220 is NOT ready for SSH connections, VM status: ACTIVE
2025-08-15 10:38:38,488 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-08-15 10:38:38,489 - DEBUG - Waiting to SSH to VM ctest-vm2-test-33643220, IP 10.10.10.4, Port 22
2025-08-15 10:38:38,658 - DEBUG - VM ctest-vm2-test-33643220 is ready for SSH connections
2025-08-15 10:38:38,659 - DEBUG - Running remote_cmd, Cmd : ifconfig | grep 10.10.10.4, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.241, gateway password: c0ntrail123
2025-08-15 10:38:38,659 - DEBUG - ifconfig | grep 10.10.10.4
2025-08-15 10:39:01,808 - DEBUG - inet addr:10.10.10.4 Bcast:10.10.10.255 Mask:255.255.255.0
2025-08-15 10:39:01,808 - DEBUG - Running remote_cmd, Cmd : python -c 'import socket;socket.getaddrinfo("ctest-vm2-test-33643220", None, socket.AF_INET6)', host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.241, gateway password: c0ntrail123
2025-08-15 10:39:01,808 - DEBUG - python -c 'import socket;socket.getaddrinfo("ctest-vm2-test-33643220", None, socket.AF_INET6)'
2025-08-15 10:39:04,778 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 ctest-vm2-test-33643220, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.241, gateway password: c0ntrail123
2025-08-15 10:39:04,778 - DEBUG - ping -s 56 -c 3 -W 1 ctest-vm2-test-33643220
2025-08-15 10:39:07,840 - DEBUG - PING ctest-vm2-test-33643220.juniper.net (10.10.10.4) 56(84) bytes of data.
64 bytes from ctest-vm2-test-33643220.juniper.net (10.10.10.4): icmp_req=1 ttl=64 time=2.86 ms
64 bytes from ctest-vm2-test-33643220.juniper.net (10.10.10.4): icmp_req=2 ttl=64 time=0.256 ms
64 bytes from ctest-vm2-test-33643220.juniper.net (10.10.10.4): icmp_req=3 ttl=64 time=0.289 ms
--- ctest-vm2-test-33643220.juniper.net ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2005ms
rtt min/avg/max/mdev = 0.256/1.137/2.868/1.224 ms
2025-08-15 10:39:07,840 - INFO - Ping to IP ctest-vm2-test-33643220 from VM ctest-vm2-test-33643220 passed
2025-08-15 10:39:07,866 - DEBUG - Requesting: http://10.0.0.50:8092/Snh_PageReq?x=AllEntries%20VdnsServersReq
2025-08-15 10:39:07,873 - DEBUG - Requesting: http://10.0.0.50:8092/Snh_PageReq?x=default-domain:ctest-vdns1-32464843@0%20AllEntriesVdnsRecordsReq
2025-08-15 10:39:07,879 - DEBUG - Requesting: http://10.0.0.50:8092/Snh_PageReq?x=AllEntries%20VdnsServersReq
2025-08-15 10:39:07,884 - DEBUG - Requesting: http://10.0.0.50:8092/Snh_PageReq?x=default-domain:ctest-vdns1-32464843@0%20AllEntriesVdnsRecordsReq
2025-08-15 10:39:07,890 - DEBUG - Requesting: http://10.0.0.50:8092/Snh_PageReq?x=AllEntries%20VdnsServersReq
2025-08-15 10:39:07,897 - DEBUG - Requesting: http://10.0.0.50:8092/Snh_PageReq?x=default-domain:ctest-vdns1-32464843@0%20AllEntriesVdnsRecordsReq
2025-08-15 10:39:07,904 - DEBUG - Actual record data {'name': 'default-domain:ctest-vdns1-32464843:1:ctest-vm2-test-33643220:10.10.10.4', 'rec_name': 'ctest-vm2-test-33643220', 'rec_type': 'A', 'rec_class': 'IN', 'rec_data': '10.10.10.4', 'rec_ttl': '100', 'source': 'Agent', 'installed': 'true', 'flags': '3', 'rec_source_name': 'an-jenkins-deploy-platform-ansible-os-3861-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-33643220.juniper.net', 'installed': 'yes', 'zone': 'juniper.net'}
2025-08-15 10:39:07,904 - DEBUG - Actual record data {'name': 'default-domain:ctest-vdns1-32464843:12:4.10.10.10.in-addr.arpa:ctest-vm2-test-33643220', 'rec_name': '4.10.10.10.in-addr.arpa', 'rec_type': 'PTR', 'rec_class': 'IN', 'rec_data': 'ctest-vm2-test-33643220', 'rec_ttl': '100', 'source': 'Agent', 'installed': 'true', 'flags': '3', 'rec_source_name': 'an-jenkins-deploy-platform-ansible-os-3861-1/dns'} ,
Expected record data {'rec_data': 'ctest-vm2-test-33643220.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-08-15 10:39:07,904 - DEBUG - Running remote_cmd, Cmd : python -c 'import socket;socket.getaddrinfo("ctest-vm2-test-33643220", None, socket.AF_INET6)', host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.242, gateway password: c0ntrail123
2025-08-15 10:39:07,904 - DEBUG - python -c 'import socket;socket.getaddrinfo("ctest-vm2-test-33643220", None, socket.AF_INET6)'
2025-08-15 10:39:09,087 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 ctest-vm2-test-33643220, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.242, gateway password: c0ntrail123
2025-08-15 10:39:09,087 - DEBUG - ping -s 56 -c 3 -W 1 ctest-vm2-test-33643220
2025-08-15 10:39:11,606 - DEBUG - PING ctest-vm2-test-33643220.juniper.net (10.10.10.4) 56(84) bytes of data.
64 bytes from ctest-vm2-test-33643220.juniper.net (10.10.10.4): icmp_req=1 ttl=64 time=11.0 ms
64 bytes from ctest-vm2-test-33643220.juniper.net (10.10.10.4): icmp_req=2 ttl=64 time=1.21 ms
64 bytes from ctest-vm2-test-33643220.juniper.net (10.10.10.4): icmp_req=3 ttl=64 time=1.19 ms
--- ctest-vm2-test-33643220.juniper.net ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2004ms
rtt min/avg/max/mdev = 1.194/4.492/11.073/4.653 ms
2025-08-15 10:39:11,606 - INFO - Ping to IP ctest-vm2-test-33643220 from VM ctest-vm1-test-88408763 passed
2025-08-15 10:39:11,606 - INFO - Try deleting the VDNS entry ctest-vdns1-32464843 with back ref of ipam.
2025-08-15 10:39:11,663 - DEBUG - Delete when resource still referred: ['http://10.0.0.19:8082/network-ipam/342a3aa6-3a58-4556-b26d-2f78af86ac57']
2025-08-15 10:39:11,664 - INFO - Deletion of the vdns entry failed with back ref of ipam as expected
2025-08-15 10:39:11,664 - INFO - Add CNAME VDNS record for ctest-vm1-test-88408763 and verify we able to ping by alias name
2025-08-15 10:39:11,715 - DEBUG - Creating VDNS record data : test-rec
2025-08-15 10:39:11,836 - INFO - In verify_on_setup
2025-08-15 10:39:11,932 - DEBUG - VDNS record: ['default-domain', 'ctest-vdns1-32464843', 'test-rec'] created succesfully
2025-08-15 10:39:11,932 - INFO - Verify VDNS record is shown in the API server
2025-08-15 10:39:11,932 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-15 10:39:11,941 - DEBUG - Requesting: http://10.0.0.50:8082/domain/4d954f05-13b9-4014-b839-289a92604c21
2025-08-15 10:39:11,960 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-DNS/94cb2401-4bb4-4b3d-b098-2046144dda1f
2025-08-15 10:39:11,972 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-DNS-record/192c90a8-9fbb-43c9-8f5e-b11148814ed1
2025-08-15 10:39:11,979 - INFO - Verify VDNS record is shown in the control node
2025-08-15 10:39:11,995 - 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.242, gateway password: c0ntrail123
2025-08-15 10:39:11,995 - DEBUG - python -c 'import socket;socket.getaddrinfo("vm1-test-alias", None, socket.AF_INET6)'
2025-08-15 10:39:13,151 - 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.242, gateway password: c0ntrail123
2025-08-15 10:39:13,151 - DEBUG - ping -s 56 -c 3 -W 1 vm1-test-alias
2025-08-15 10:39:13,636 - DEBUG - ping: unknown host vm1-test-alias
2025-08-15 10:39:13,636 - WARNING - Ping to IP vm1-test-alias from VM ctest-vm1-test-88408763 failed
2025-08-15 10:39:14,637 - 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.242, gateway password: c0ntrail123
2025-08-15 10:39:14,637 - DEBUG - python -c 'import socket;socket.getaddrinfo("vm1-test-alias", None, socket.AF_INET6)'
2025-08-15 10:39:15,722 - 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.242, gateway password: c0ntrail123
2025-08-15 10:39:15,722 - DEBUG - ping -s 56 -c 3 -W 1 vm1-test-alias
2025-08-15 10:39:18,230 - DEBUG - PING ctest-vm1-test-88408763.juniper.net (10.10.10.3) 56(84) bytes of data.
64 bytes from ctest-vm1-test-88408763.juniper.net (10.10.10.3): icmp_req=1 ttl=64 time=2.61 ms
64 bytes from ctest-vm1-test-88408763.juniper.net (10.10.10.3): icmp_req=2 ttl=64 time=0.410 ms
64 bytes from ctest-vm1-test-88408763.juniper.net (10.10.10.3): icmp_req=3 ttl=64 time=0.209 ms
--- ctest-vm1-test-88408763.juniper.net ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2004ms
rtt min/avg/max/mdev = 0.209/1.077/2.614/1.090 ms
2025-08-15 10:39:18,230 - INFO - Ping to IP vm1-test-alias from VM ctest-vm1-test-88408763 passed
2025-08-15 10:39:18,230 - DEBUG - Deleting VDNS record data: test-rec
2025-08-15 10:39:18,319 - INFO - VDNS record info: default-domain:ctest-vdns1-32464843:test-rec deleted successfully.
2025-08-15 10:39:18,320 - INFO - Deleting VM ctest-vm2-test-33643220
2025-08-15 10:39:18,406 - INFO - Deleting VM ctest-vm1-test-88408763
2025-08-15 10:39:18,494 - INFO - Deleting VN ctest-vn1-vdns-75365044
2025-08-15 10:39:18,545 - DEBUG - VN 4887efd2-4391-4c98-9cf5-05408a4bff94 still in use: Unable to complete operation on network 4887efd2-4391-4c98-9cf5-05408a4bff94. There are one or more ports still in use on the network.
Neutron server returns request_ids: ['req-30ab7255-a509-4795-aaa9-7e8ddb7d5099']
2025-08-15 10:39:18,545 - WARNING - Deleting VN ctest-vn1-vdns-75365044 failed..Will retry
2025-08-15 10:39:20,757 - DEBUG - Response for deleting network ()
2025-08-15 10:39:20,811 - DEBUG - Deleting VDNS Entry: ctest-vdns1-32464843
2025-08-15 10:39:20,939 - INFO - VDNS info: ['default-domain', 'ctest-vdns1-32464843'] deleted successfully.
2025-08-15 10:39:20,940 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-15 10:39:20,949 - DEBUG - Requesting: http://10.0.0.50:8082/domain/4d954f05-13b9-4014-b839-289a92604c21
2025-08-15 10:39:20,971 - DEBUG - VDNS information not found in API server
2025-08-15 10:39:20,971 - INFO - VDNS information ctest-vdns1-32464843 removed from the API Server
2025-08-15 10:39:20,977 - INFO - VDNS information ctest-vdns1-32464843 removed in the Control node
2025-08-15 10:39:20,978 - DEBUG - Skipping the deletion of Project ['default-domain', 'ctest-TestvDNSBasic0-89019745']
2025-08-15 10:39:22,272 - DEBUG - No XMPP flaps were noticed during the test
2025-08-15 10:39:22,272 - INFO - END TEST : test_vdns_ping_same_vn : PASSED[0:03:21]
2025-08-15 10:39:22,272 - INFO - --------------------------------------------------------------------------------
2025-08-15 10:39:23,047 - INFO - Deleted project: ctest-TestvDNSBasic0-89019745, ID : 3e46c28d-822d-4182-a94f-769c3d36cccd