2025-08-10 21:38:55,796 - INFO - Domain Default found not creating 2025-08-10 21:38:55,930 - INFO - Project ctest-TestvDNSBasic0-89791369 not found, creating it 2025-08-10 21:38:56,397 - INFO - Created Project:ctest-TestvDNSBasic0-89791369, ID : c621cc8c-3f86-4c0b-91e0-eb11426a620d 2025-08-10 21:38:57,964 - INFO - ================================================================================ 2025-08-10 21:38:57,964 - INFO - STARTING TEST : test_vdns_ping_same_vn 2025-08-10 21:38:57,964 - 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-10 21:38:59,211 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.25': '0', '10.20.0.17': '0'}, '10.0.0.50': {'10.20.0.25': '0', '10.20.0.17': '0'}} with 2025-08-10 21:38:59,211 - INFO - Initial checks done. Running the testcase now 2025-08-10 21:38:59,211 - INFO - 2025-08-10 21:38:59,897 - INFO - Using existing project ['default-domain', 'ctest-TestvDNSBasic0-89791369'](c621cc8c-3f86-4c0b-91e0-eb11426a620d) 2025-08-10 21:38:59,964 - DEBUG - Creating VDNS : ctest-vdns1-04275828 2025-08-10 21:39:00,192 - DEBUG - VDNS: ['default-domain', 'ctest-vdns1-04275828'] created succesfully 2025-08-10 21:39:00,192 - DEBUG - Verify VDNS entry is shown in control node 2025-08-10 21:39:00,209 - DEBUG - Verify VDNS entry is shown in the API server 2025-08-10 21:39:00,210 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-10 21:39:00,505 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-10 21:39:00,537 - DEBUG - Requesting: http://10.0.0.48:8082/domain/f4633f28-8e52-4cb4-8182-938022088c32 2025-08-10 21:39:00,554 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-DNS/982289eb-4f14-4ff0-a3a4-164968a9687d 2025-08-10 21:39:01,342 - DEBUG - Response for create_network : {'network': {'id': 'ce17d7f9-8879-4179-91ca-c24437cb442c', 'name': 'ctest-vn1-vdns-96868137', 'tenant_id': 'c621cc8c3f864c0b91e0eb11426a620d', 'project_id': 'c621cc8c3f864c0b91e0eb11426a620d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestvDNSBasic0-89791369', 'ctest-vn1-vdns-96868137'], 'port_security_enabled': True, 'description': ''}} 2025-08-10 21:39:01,667 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aad77944-f66f-4239-8d1a-2adca9faeac0', 'name': '', 'tenant_id': 'c621cc8c3f864c0b91e0eb11426a620d', 'network_id': 'ce17d7f9-8879-4179-91ca-c24437cb442c', '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': 'c621cc8c3f864c0b91e0eb11426a620d'}} 2025-08-10 21:39:01,691 - INFO - Created VN ctest-vn1-vdns-96868137 2025-08-10 21:39:01,702 - DEBUG - VN ctest-vn1-vdns-96868137 UUID is ce17d7f9-8879-4179-91ca-c24437cb442c 2025-08-10 21:39:01,878 - DEBUG - Services list from nova: [, , , ] 2025-08-10 21:39:02,841 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3790-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3790-1) 2025-08-10 21:39:02,841 - INFO - Waiting for VM ctest-vm1-test-43465506 to be up.. 2025-08-10 21:39:02,884 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-10 21:39:07,959 - DEBUG - VM is in ACTIVE state now 2025-08-10 21:39:07,960 - INFO - VM name : ctest-vm1-test-43465506 2025-08-10 21:39:08,028 - DEBUG - VM ctest-vm1-test-43465506 ID is e257db02-d940-4f8e-8e6c-4ef44f7c9b71 2025-08-10 21:39:08,028 - DEBUG - VM ctest-vm1-test-43465506 launched on Node an-jenkins-deploy-platform-ansible-os-3790-1 2025-08-10 21:39:08,097 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/e257db02-d940-4f8e-8e6c-4ef44f7c9b71 2025-08-10 21:39:08,389 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/e257db02-d940-4f8e-8e6c-4ef44f7c9b71 2025-08-10 21:39:08,418 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/ba1b568f-5d78-48a0-a3a8-4506a5e433fd 2025-08-10 21:39:11,620 - 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 1008ms') 2025-08-10 21:39:11,621 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-43465506 failed! 2025-08-10 21:39:11,634 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-89791369:ctest-vn1-vdns-96868137 is 10.10.10.1 and allocation pool is NOT set 2025-08-10 21:39:15,720 - 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 1028ms') 2025-08-10 21:39:15,720 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-43465506 failed! 2025-08-10 21:39:15,735 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-89791369:ctest-vn1-vdns-96868137 is 10.10.10.1 and allocation pool is NOT set 2025-08-10 21:39:19,819 - 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-10 21:39:19,819 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-43465506 failed! 2025-08-10 21:39:19,832 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-89791369:ctest-vn1-vdns-96868137 is 10.10.10.1 and allocation pool is NOT set 2025-08-10 21:39:23,917 - 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 1023ms') 2025-08-10 21:39:23,917 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-43465506 failed! 2025-08-10 21:39:23,931 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-89791369:ctest-vn1-vdns-96868137 is 10.10.10.1 and allocation pool is NOT set 2025-08-10 21:39:28,003 - 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-10 21:39:28,003 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-43465506 failed! 2025-08-10 21:39:28,016 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-89791369:ctest-vn1-vdns-96868137 is 10.10.10.1 and allocation pool is NOT set 2025-08-10 21:39:32,110 - 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-10 21:39:32,111 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-43465506 failed! 2025-08-10 21:39:32,123 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-89791369:ctest-vn1-vdns-96868137 is 10.10.10.1 and allocation pool is NOT set 2025-08-10 21:39:36,197 - 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-10 21:39:36,198 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-43465506 failed! 2025-08-10 21:39:36,211 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-89791369:ctest-vn1-vdns-96868137 is 10.10.10.1 and allocation pool is NOT set 2025-08-10 21:39:38,276 - 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=7.09 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.00 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 = 2.997/5.044/7.092/2.047 ms') 2025-08-10 21:39:38,276 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-43465506 passed 2025-08-10 21:39:38,394 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-10 21:39:38,394 - DEBUG - Waiting to SSH to VM ctest-vm1-test-43465506, IP 10.10.10.3, Port 22 2025-08-10 21:39:38,448 - 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-10 21:39:38,533 - DEBUG - VM ctest-vm1-test-43465506 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-10 21:39:43,534 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-10 21:39:43,534 - DEBUG - Waiting to SSH to VM ctest-vm1-test-43465506, IP 10.10.10.3, Port 22 2025-08-10 21:39:43,588 - 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-10 21:39:43,662 - DEBUG - VM ctest-vm1-test-43465506 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-10 21:39:48,663 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-10 21:39:48,663 - DEBUG - Waiting to SSH to VM ctest-vm1-test-43465506, IP 10.10.10.3, Port 22 2025-08-10 21:39:48,731 - 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-10 21:39:48,810 - DEBUG - VM ctest-vm1-test-43465506 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-10 21:39:53,811 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-10 21:39:53,811 - DEBUG - Waiting to SSH to VM ctest-vm1-test-43465506, IP 10.10.10.3, Port 22 2025-08-10 21:39:53,978 - DEBUG - VM ctest-vm1-test-43465506 is ready for SSH connections 2025-08-10 21:39:53,978 - 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-08-10 21:39:53,978 - DEBUG - ifconfig | grep 10.10.10.3 2025-08-10 21:40:11,638 - DEBUG - inet addr:10.10.10.3 Bcast:10.10.10.255 Mask:255.255.255.0 2025-08-10 21:40:11,638 - DEBUG - Running remote_cmd, Cmd : python -c 'import socket;socket.getaddrinfo("ctest-vm1-test-43465506", None, socket.AF_INET6)', host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-08-10 21:40:11,638 - DEBUG - python -c 'import socket;socket.getaddrinfo("ctest-vm1-test-43465506", None, socket.AF_INET6)' 2025-08-10 21:40:13,948 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 ctest-vm1-test-43465506, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-08-10 21:40:13,948 - DEBUG - ping -s 56 -c 3 -W 1 ctest-vm1-test-43465506 2025-08-10 21:40:16,835 - DEBUG - PING ctest-vm1-test-43465506.juniper.net (10.10.10.3) 56(84) bytes of data. 64 bytes from ctest-vm1-test-43465506.juniper.net (10.10.10.3): icmp_req=1 ttl=64 time=2.37 ms 64 bytes from ctest-vm1-test-43465506.juniper.net (10.10.10.3): icmp_req=2 ttl=64 time=0.325 ms 64 bytes from ctest-vm1-test-43465506.juniper.net (10.10.10.3): icmp_req=3 ttl=64 time=0.167 ms --- ctest-vm1-test-43465506.juniper.net ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2002ms rtt min/avg/max/mdev = 0.167/0.956/2.378/1.007 ms 2025-08-10 21:40:16,835 - INFO - Ping to IP ctest-vm1-test-43465506 from VM ctest-vm1-test-43465506 passed 2025-08-10 21:40:16,861 - DEBUG - Requesting: http://10.0.0.48:8092/Snh_PageReq?x=AllEntries%20VdnsServersReq 2025-08-10 21:40:16,867 - DEBUG - Requesting: http://10.0.0.48:8092/Snh_PageReq?x=default-domain:ctest-vdns1-04275828@0%20AllEntriesVdnsRecordsReq 2025-08-10 21:40:16,872 - DEBUG - Requesting: http://10.0.0.48:8092/Snh_PageReq?x=AllEntries%20VdnsServersReq 2025-08-10 21:40:16,880 - DEBUG - Requesting: http://10.0.0.48:8092/Snh_PageReq?x=default-domain:ctest-vdns1-04275828@0%20AllEntriesVdnsRecordsReq 2025-08-10 21:40:16,885 - DEBUG - Requesting: http://10.0.0.48:8092/Snh_PageReq?x=AllEntries%20VdnsServersReq 2025-08-10 21:40:16,890 - DEBUG - Requesting: http://10.0.0.48:8092/Snh_PageReq?x=default-domain:ctest-vdns1-04275828@0%20AllEntriesVdnsRecordsReq 2025-08-10 21:40:16,895 - DEBUG - Actual record data {'name': 'default-domain:ctest-vdns1-04275828:1:ctest-vm1-test-43465506:10.10.10.3', 'rec_name': 'ctest-vm1-test-43465506', '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-3790-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-43465506.juniper.net', 'installed': 'yes', 'zone': 'juniper.net'} 2025-08-10 21:40:16,895 - DEBUG - Actual record data {'name': 'default-domain:ctest-vdns1-04275828:12:3.10.10.10.in-addr.arpa:ctest-vm1-test-43465506', 'rec_name': '3.10.10.10.in-addr.arpa', 'rec_type': 'PTR', 'rec_class': 'IN', 'rec_data': 'ctest-vm1-test-43465506', 'rec_ttl': '100', 'source': 'Agent', 'installed': 'true', 'flags': '3', 'rec_source_name': 'an-jenkins-deploy-platform-ansible-os-3790-1/dns'} , Expected record data {'rec_data': 'ctest-vm1-test-43465506.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-10 21:40:18,097 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3790-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3790-2) 2025-08-10 21:40:18,097 - INFO - Waiting for VM ctest-vm2-test-11777162 to be up.. 2025-08-10 21:40:18,143 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-10 21:40:23,220 - DEBUG - VM is in ACTIVE state now 2025-08-10 21:40:23,220 - INFO - VM name : ctest-vm2-test-11777162 2025-08-10 21:40:23,291 - DEBUG - VM ctest-vm2-test-11777162 ID is 4e8fd672-9841-48a9-8390-1e5f1765b86d 2025-08-10 21:40:23,291 - DEBUG - VM ctest-vm2-test-11777162 launched on Node an-jenkins-deploy-platform-ansible-os-3790-2 2025-08-10 21:40:23,355 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/4e8fd672-9841-48a9-8390-1e5f1765b86d 2025-08-10 21:40:23,363 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/0457e33c-08e3-4066-8445-6019246e2d01 2025-08-10 21:40:26,564 - 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-08-10 21:40:26,564 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-11777162 failed! 2025-08-10 21:40:26,579 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-89791369:ctest-vn1-vdns-96868137 is 10.10.10.1 and allocation pool is NOT set 2025-08-10 21:40:30,661 - 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-10 21:40:30,661 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-11777162 failed! 2025-08-10 21:40:30,675 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-89791369:ctest-vn1-vdns-96868137 is 10.10.10.1 and allocation pool is NOT set 2025-08-10 21:40:34,756 - 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-10 21:40:34,757 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-11777162 failed! 2025-08-10 21:40:34,771 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-89791369:ctest-vn1-vdns-96868137 is 10.10.10.1 and allocation pool is NOT set 2025-08-10 21:40:38,853 - 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-10 21:40:38,853 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-11777162 failed! 2025-08-10 21:40:38,866 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-89791369:ctest-vn1-vdns-96868137 is 10.10.10.1 and allocation pool is NOT set 2025-08-10 21:40:42,946 - 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 1023ms') 2025-08-10 21:40:42,946 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-11777162 failed! 2025-08-10 21:40:42,959 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-89791369:ctest-vn1-vdns-96868137 is 10.10.10.1 and allocation pool is NOT set 2025-08-10 21:40:47,036 - 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-08-10 21:40:47,036 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-11777162 failed! 2025-08-10 21:40:47,049 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-89791369:ctest-vn1-vdns-96868137 is 10.10.10.1 and allocation pool is NOT set 2025-08-10 21:40:51,138 - 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 1028ms') 2025-08-10 21:40:51,138 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-11777162 failed! 2025-08-10 21:40:51,153 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-89791369:ctest-vn1-vdns-96868137 is 10.10.10.1 and allocation pool is NOT set 2025-08-10 21:40:53,212 - 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=7.53 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.516 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.516/4.021/7.527/3.505 ms') 2025-08-10 21:40:53,213 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-11777162 passed 2025-08-10 21:40:53,320 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-10 21:40:53,320 - DEBUG - Waiting to SSH to VM ctest-vm2-test-11777162, IP 10.10.10.4, Port 22 2025-08-10 21:40:53,389 - 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-10 21:40:53,469 - DEBUG - VM ctest-vm2-test-11777162 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-10 21:40:58,470 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-10 21:40:58,470 - DEBUG - Waiting to SSH to VM ctest-vm2-test-11777162, IP 10.10.10.4, Port 22 2025-08-10 21:40:58,526 - 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-10 21:40:58,599 - DEBUG - VM ctest-vm2-test-11777162 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-10 21:41:03,600 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-10 21:41:03,600 - DEBUG - Waiting to SSH to VM ctest-vm2-test-11777162, IP 10.10.10.4, Port 22 2025-08-10 21:41:03,655 - 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-10 21:41:03,725 - DEBUG - VM ctest-vm2-test-11777162 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-10 21:41:08,726 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-10 21:41:08,727 - DEBUG - Waiting to SSH to VM ctest-vm2-test-11777162, IP 10.10.10.4, Port 22 2025-08-10 21:41:08,900 - DEBUG - VM ctest-vm2-test-11777162 is ready for SSH connections 2025-08-10 21:41:08,900 - DEBUG - Running remote_cmd, Cmd : ifconfig | grep 10.10.10.4, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-08-10 21:41:08,901 - DEBUG - ifconfig | grep 10.10.10.4 2025-08-10 21:41:26,698 - DEBUG - inet addr:10.10.10.4 Bcast:10.10.10.255 Mask:255.255.255.0 2025-08-10 21:41:26,699 - DEBUG - Running remote_cmd, Cmd : python -c 'import socket;socket.getaddrinfo("ctest-vm2-test-11777162", None, socket.AF_INET6)', host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-08-10 21:41:26,699 - DEBUG - python -c 'import socket;socket.getaddrinfo("ctest-vm2-test-11777162", None, socket.AF_INET6)' 2025-08-10 21:41:29,002 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 ctest-vm2-test-11777162, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-08-10 21:41:29,002 - DEBUG - ping -s 56 -c 3 -W 1 ctest-vm2-test-11777162 2025-08-10 21:41:31,869 - DEBUG - PING ctest-vm2-test-11777162.juniper.net (10.10.10.4) 56(84) bytes of data. 64 bytes from ctest-vm2-test-11777162.juniper.net (10.10.10.4): icmp_req=1 ttl=64 time=2.64 ms 64 bytes from ctest-vm2-test-11777162.juniper.net (10.10.10.4): icmp_req=2 ttl=64 time=0.216 ms 64 bytes from ctest-vm2-test-11777162.juniper.net (10.10.10.4): icmp_req=3 ttl=64 time=0.168 ms --- ctest-vm2-test-11777162.juniper.net ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms rtt min/avg/max/mdev = 0.168/1.009/2.644/1.156 ms 2025-08-10 21:41:31,869 - INFO - Ping to IP ctest-vm2-test-11777162 from VM ctest-vm2-test-11777162 passed 2025-08-10 21:41:31,893 - DEBUG - Requesting: http://10.0.0.48:8092/Snh_PageReq?x=AllEntries%20VdnsServersReq 2025-08-10 21:41:31,900 - DEBUG - Requesting: http://10.0.0.48:8092/Snh_PageReq?x=default-domain:ctest-vdns1-04275828@0%20AllEntriesVdnsRecordsReq 2025-08-10 21:41:31,906 - DEBUG - Requesting: http://10.0.0.48:8092/Snh_PageReq?x=AllEntries%20VdnsServersReq 2025-08-10 21:41:31,913 - DEBUG - Requesting: http://10.0.0.48:8092/Snh_PageReq?x=default-domain:ctest-vdns1-04275828@0%20AllEntriesVdnsRecordsReq 2025-08-10 21:41:31,921 - DEBUG - Requesting: http://10.0.0.48:8092/Snh_PageReq?x=AllEntries%20VdnsServersReq 2025-08-10 21:41:31,930 - DEBUG - Requesting: http://10.0.0.48:8092/Snh_PageReq?x=default-domain:ctest-vdns1-04275828@0%20AllEntriesVdnsRecordsReq 2025-08-10 21:41:31,939 - DEBUG - Actual record data {'name': 'default-domain:ctest-vdns1-04275828:1:ctest-vm2-test-11777162:10.10.10.4', 'rec_name': 'ctest-vm2-test-11777162', '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-3790-2/dns'} , Expected record data {'rec_data': '10.10.10.4', 'rec_type': 'A', 'rec_class': 'IN', 'rec_ttl': '100', 'rec_name': 'ctest-vm2-test-11777162.juniper.net', 'installed': 'yes', 'zone': 'juniper.net'} 2025-08-10 21:41:31,939 - DEBUG - Actual record data {'name': 'default-domain:ctest-vdns1-04275828:12:4.10.10.10.in-addr.arpa:ctest-vm2-test-11777162', 'rec_name': '4.10.10.10.in-addr.arpa', 'rec_type': 'PTR', 'rec_class': 'IN', 'rec_data': 'ctest-vm2-test-11777162', 'rec_ttl': '100', 'source': 'Agent', 'installed': 'true', 'flags': '3', 'rec_source_name': 'an-jenkins-deploy-platform-ansible-os-3790-2/dns'} , Expected record data {'rec_data': 'ctest-vm2-test-11777162.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-10 21:41:31,939 - DEBUG - Running remote_cmd, Cmd : python -c 'import socket;socket.getaddrinfo("ctest-vm2-test-11777162", None, socket.AF_INET6)', host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-08-10 21:41:31,939 - DEBUG - python -c 'import socket;socket.getaddrinfo("ctest-vm2-test-11777162", None, socket.AF_INET6)' 2025-08-10 21:41:32,987 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 ctest-vm2-test-11777162, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-08-10 21:41:32,987 - DEBUG - ping -s 56 -c 3 -W 1 ctest-vm2-test-11777162 2025-08-10 21:41:35,458 - DEBUG - PING ctest-vm2-test-11777162.juniper.net (10.10.10.4) 56(84) bytes of data. 64 bytes from ctest-vm2-test-11777162.juniper.net (10.10.10.4): icmp_req=1 ttl=64 time=6.18 ms 64 bytes from ctest-vm2-test-11777162.juniper.net (10.10.10.4): icmp_req=2 ttl=64 time=0.739 ms 64 bytes from ctest-vm2-test-11777162.juniper.net (10.10.10.4): icmp_req=3 ttl=64 time=0.733 ms --- ctest-vm2-test-11777162.juniper.net ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms rtt min/avg/max/mdev = 0.733/2.553/6.188/2.570 ms 2025-08-10 21:41:35,458 - INFO - Ping to IP ctest-vm2-test-11777162 from VM ctest-vm1-test-43465506 passed 2025-08-10 21:41:35,458 - INFO - Try deleting the VDNS entry ctest-vdns1-04275828 with back ref of ipam. 2025-08-10 21:41:35,516 - DEBUG - Delete when resource still referred: ['http://10.0.0.49:8082/network-ipam/5b7d938a-68af-483d-ab3b-f312177038a6'] 2025-08-10 21:41:35,516 - INFO - Deletion of the vdns entry failed with back ref of ipam as expected 2025-08-10 21:41:35,516 - INFO - Add CNAME VDNS record for ctest-vm1-test-43465506 and verify we able to ping by alias name 2025-08-10 21:41:35,564 - DEBUG - Creating VDNS record data : test-rec 2025-08-10 21:41:35,676 - INFO - In verify_on_setup 2025-08-10 21:41:35,772 - DEBUG - VDNS record: ['default-domain', 'ctest-vdns1-04275828', 'test-rec'] created succesfully 2025-08-10 21:41:35,772 - INFO - Verify VDNS record is shown in the API server 2025-08-10 21:41:35,772 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-10 21:41:35,780 - DEBUG - Requesting: http://10.0.0.48:8082/domain/f4633f28-8e52-4cb4-8182-938022088c32 2025-08-10 21:41:35,795 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-DNS/982289eb-4f14-4ff0-a3a4-164968a9687d 2025-08-10 21:41:35,804 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-DNS-record/2c42ee4e-7534-4c50-bca4-5cb2a5287151 2025-08-10 21:41:35,819 - INFO - Verify VDNS record is shown in the control node 2025-08-10 21:41:35,849 - 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-08-10 21:41:35,849 - DEBUG - python -c 'import socket;socket.getaddrinfo("vm1-test-alias", None, socket.AF_INET6)' 2025-08-10 21:41:36,901 - 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-08-10 21:41:36,901 - DEBUG - ping -s 56 -c 3 -W 1 vm1-test-alias 2025-08-10 21:41:37,369 - DEBUG - ping: unknown host vm1-test-alias 2025-08-10 21:41:37,369 - WARNING - Ping to IP vm1-test-alias from VM ctest-vm1-test-43465506 failed 2025-08-10 21:41:38,370 - 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-08-10 21:41:38,370 - DEBUG - python -c 'import socket;socket.getaddrinfo("vm1-test-alias", None, socket.AF_INET6)' 2025-08-10 21:41:39,393 - 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-08-10 21:41:39,393 - DEBUG - ping -s 56 -c 3 -W 1 vm1-test-alias 2025-08-10 21:41:41,869 - DEBUG - PING ctest-vm1-test-43465506.juniper.net (10.10.10.3) 56(84) bytes of data. 64 bytes from ctest-vm1-test-43465506.juniper.net (10.10.10.3): icmp_req=1 ttl=64 time=0.186 ms 64 bytes from ctest-vm1-test-43465506.juniper.net (10.10.10.3): icmp_req=2 ttl=64 time=0.175 ms 64 bytes from ctest-vm1-test-43465506.juniper.net (10.10.10.3): icmp_req=3 ttl=64 time=0.176 ms --- ctest-vm1-test-43465506.juniper.net ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms rtt min/avg/max/mdev = 0.175/0.179/0.186/0.005 ms 2025-08-10 21:41:41,869 - INFO - Ping to IP vm1-test-alias from VM ctest-vm1-test-43465506 passed 2025-08-10 21:41:41,870 - DEBUG - Deleting VDNS record data: test-rec 2025-08-10 21:41:41,948 - INFO - VDNS record info: default-domain:ctest-vdns1-04275828:test-rec deleted successfully. 2025-08-10 21:41:41,948 - INFO - Deleting VM ctest-vm2-test-11777162 2025-08-10 21:41:42,018 - INFO - Deleting VM ctest-vm1-test-43465506 2025-08-10 21:41:42,085 - INFO - Deleting VN ctest-vn1-vdns-96868137 2025-08-10 21:41:42,135 - DEBUG - VN ce17d7f9-8879-4179-91ca-c24437cb442c still in use: Unable to complete operation on network ce17d7f9-8879-4179-91ca-c24437cb442c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-641d8c60-cd19-4ca4-bc33-afe629b3e77d'] 2025-08-10 21:41:42,135 - WARNING - Deleting VN ctest-vn1-vdns-96868137 failed..Will retry 2025-08-10 21:41:44,272 - DEBUG - Response for deleting network () 2025-08-10 21:41:44,329 - DEBUG - Deleting VDNS Entry: ctest-vdns1-04275828 2025-08-10 21:41:44,420 - INFO - VDNS info: ['default-domain', 'ctest-vdns1-04275828'] deleted successfully. 2025-08-10 21:41:44,420 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-10 21:41:44,429 - DEBUG - Requesting: http://10.0.0.48:8082/domain/f4633f28-8e52-4cb4-8182-938022088c32 2025-08-10 21:41:44,453 - DEBUG - VDNS information not found in API server 2025-08-10 21:41:44,453 - INFO - VDNS information ctest-vdns1-04275828 removed from the API Server 2025-08-10 21:41:44,460 - INFO - VDNS information ctest-vdns1-04275828 removed in the Control node 2025-08-10 21:41:44,460 - DEBUG - Skipping the deletion of Project ['default-domain', 'ctest-TestvDNSBasic0-89791369'] 2025-08-10 21:41:45,704 - DEBUG - No XMPP flaps were noticed during the test 2025-08-10 21:41:45,704 - INFO - END TEST : test_vdns_ping_same_vn : PASSED[0:02:48] 2025-08-10 21:41:45,704 - INFO - -------------------------------------------------------------------------------- 2025-08-10 21:41:46,424 - INFO - Deleted project: ctest-TestvDNSBasic0-89791369, ID : c621cc8c-3f86-4c0b-91e0-eb11426a620d