2025-09-08 03:22:15,515 - INFO - Domain Default found not creating 2025-09-08 03:22:15,667 - INFO - Project ctest-TestvDNSBasic0-37699253 not found, creating it 2025-09-08 03:22:16,229 - INFO - Created Project:ctest-TestvDNSBasic0-37699253, ID : 2efba5f3-d2bf-45bd-b78d-4ef5d3ab1e10 2025-09-08 03:22:17,934 - INFO - ================================================================================ 2025-09-08 03:22:17,934 - INFO - STARTING TEST : test_vdns_ping_same_vn 2025-09-08 03:22:17,934 - 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-09-08 03:22:19,337 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.14': '0', '10.20.0.129': '0'}, '10.0.0.23': {'10.20.0.25': '0', '10.20.0.129': '0'}} with 2025-09-08 03:22:19,337 - INFO - Initial checks done. Running the testcase now 2025-09-08 03:22:19,337 - INFO - 2025-09-08 03:22:20,190 - INFO - Using existing project ['default-domain', 'ctest-TestvDNSBasic0-37699253'](2efba5f3-d2bf-45bd-b78d-4ef5d3ab1e10) 2025-09-08 03:22:20,243 - DEBUG - Creating VDNS : ctest-vdns1-74689723 2025-09-08 03:22:20,475 - DEBUG - VDNS: ['default-domain', 'ctest-vdns1-74689723'] created succesfully 2025-09-08 03:22:20,475 - DEBUG - Verify VDNS entry is shown in control node 2025-09-08 03:22:20,492 - DEBUG - Verify VDNS entry is shown in the API server 2025-09-08 03:22:20,492 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-09-08 03:22:20,844 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-09-08 03:22:20,876 - DEBUG - Requesting: http://10.0.0.41:8082/domain/729830a9-0e71-496c-9bfd-570f28a4effe 2025-09-08 03:22:20,918 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-DNS/9aa79693-0998-4698-b3bd-1fccee95fc70 2025-09-08 03:22:21,724 - DEBUG - Response for create_network : {'network': {'id': 'a8c66fb3-d4cf-47e4-9d7a-64c9a9570dc0', 'name': 'ctest-vn1-vdns-07107706', 'tenant_id': '2efba5f3d2bf45bdb78d4ef5d3ab1e10', 'project_id': '2efba5f3d2bf45bdb78d4ef5d3ab1e10', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestvDNSBasic0-37699253', 'ctest-vn1-vdns-07107706'], 'port_security_enabled': True, 'description': ''}} 2025-09-08 03:22:21,966 - DEBUG - Response for create_subnet : {'subnet': {'id': '82d78e5e-b5f3-4b1f-8ba5-7036ae1b8b38', 'name': '', 'tenant_id': '2efba5f3d2bf45bdb78d4ef5d3ab1e10', 'network_id': 'a8c66fb3-d4cf-47e4-9d7a-64c9a9570dc0', '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': '2efba5f3d2bf45bdb78d4ef5d3ab1e10'}} 2025-09-08 03:22:22,002 - INFO - Created VN ctest-vn1-vdns-07107706 2025-09-08 03:22:22,037 - DEBUG - VN ctest-vn1-vdns-07107706 UUID is a8c66fb3-d4cf-47e4-9d7a-64c9a9570dc0 2025-09-08 03:22:22,285 - DEBUG - Services list from nova: [, , , ] 2025-09-08 03:22:23,541 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4041-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4041-1) 2025-09-08 03:22:23,541 - INFO - Waiting for VM ctest-vm1-test-25407106 to be up.. 2025-09-08 03:22:23,616 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-08 03:22:28,708 - DEBUG - VM is in ACTIVE state now 2025-09-08 03:22:28,709 - INFO - VM name : ctest-vm1-test-25407106 2025-09-08 03:22:28,806 - DEBUG - VM ctest-vm1-test-25407106 ID is a508b9a2-144a-4d26-9510-3d87dd8d3c9f 2025-09-08 03:22:28,806 - DEBUG - VM ctest-vm1-test-25407106 launched on Node an-jenkins-deploy-platform-ansible-os-4041-1 2025-09-08 03:22:28,899 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/a508b9a2-144a-4d26-9510-3d87dd8d3c9f 2025-09-08 03:22:29,247 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/a508b9a2-144a-4d26-9510-3d87dd8d3c9f 2025-09-08 03:22:29,287 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/54f8815e-03e5-4c6c-bbd9-c21f3f102fb1 2025-09-08 03:22:32,483 - 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-09-08 03:22:32,484 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-25407106 failed! 2025-09-08 03:22:32,499 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-37699253:ctest-vn1-vdns-07107706 is 10.10.10.1 and allocation pool is NOT set 2025-09-08 03:22:36,584 - 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 1005ms') 2025-09-08 03:22:36,584 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-25407106 failed! 2025-09-08 03:22:36,599 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-37699253:ctest-vn1-vdns-07107706 is 10.10.10.1 and allocation pool is NOT set 2025-09-08 03:22:40,674 - 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 1018ms') 2025-09-08 03:22:40,674 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-25407106 failed! 2025-09-08 03:22:40,689 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-37699253:ctest-vn1-vdns-07107706 is 10.10.10.1 and allocation pool is NOT set 2025-09-08 03:22:44,806 - 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-09-08 03:22:44,807 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-25407106 failed! 2025-09-08 03:22:44,822 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-37699253:ctest-vn1-vdns-07107706 is 10.10.10.1 and allocation pool is NOT set 2025-09-08 03:22:48,905 - 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-09-08 03:22:48,905 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-25407106 failed! 2025-09-08 03:22:48,921 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-37699253:ctest-vn1-vdns-07107706 is 10.10.10.1 and allocation pool is NOT set 2025-09-08 03:22:53,031 - 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 1029ms') 2025-09-08 03:22:53,031 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-25407106 failed! 2025-09-08 03:22:53,048 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-37699253:ctest-vn1-vdns-07107706 is 10.10.10.1 and allocation pool is NOT set 2025-09-08 03:22:57,129 - 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 1016ms') 2025-09-08 03:22:57,130 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-25407106 failed! 2025-09-08 03:22:57,143 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-37699253:ctest-vn1-vdns-07107706 is 10.10.10.1 and allocation pool is NOT set 2025-09-08 03:23:01,252 - 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-09-08 03:23:01,252 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-25407106 failed! 2025-09-08 03:23:01,269 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-37699253:ctest-vn1-vdns-07107706 is 10.10.10.1 and allocation pool is NOT set 2025-09-08 03:23:03,361 - 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=6.86 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=5.17 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 = 5.173/6.016/6.859/0.843 ms') 2025-09-08 03:23:03,361 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-25407106 passed 2025-09-08 03:23:03,433 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-08 03:23:03,434 - DEBUG - Waiting to SSH to VM ctest-vm1-test-25407106, IP 10.10.10.3, Port 22 2025-09-08 03:23:03,524 - 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-09-08 03:23:03,607 - DEBUG - VM ctest-vm1-test-25407106 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-08 03:23:08,608 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-08 03:23:08,608 - DEBUG - Waiting to SSH to VM ctest-vm1-test-25407106, IP 10.10.10.3, Port 22 2025-09-08 03:23:08,679 - 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-09-08 03:23:08,787 - DEBUG - VM ctest-vm1-test-25407106 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-08 03:23:13,788 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-08 03:23:13,788 - DEBUG - Waiting to SSH to VM ctest-vm1-test-25407106, IP 10.10.10.3, Port 22 2025-09-08 03:23:13,866 - 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-09-08 03:23:13,953 - DEBUG - VM ctest-vm1-test-25407106 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-08 03:23:18,953 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-08 03:23:18,954 - DEBUG - Waiting to SSH to VM ctest-vm1-test-25407106, IP 10.10.10.3, Port 22 2025-09-08 03:23:19,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-09-08 03:23:19,135 - DEBUG - VM ctest-vm1-test-25407106 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-08 03:23:24,136 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-08 03:23:24,136 - DEBUG - Waiting to SSH to VM ctest-vm1-test-25407106, IP 10.10.10.3, Port 22 2025-09-08 03:23:24,313 - DEBUG - VM ctest-vm1-test-25407106 is ready for SSH connections 2025-09-08 03:23:24,313 - DEBUG - Running remote_cmd, Cmd : ifconfig | grep 10.10.10.3, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-09-08 03:23:24,314 - DEBUG - ifconfig | grep 10.10.10.3 2025-09-08 03:23:44,135 - DEBUG - inet addr:10.10.10.3 Bcast:10.10.10.255 Mask:255.255.255.0 2025-09-08 03:23:44,135 - DEBUG - Running remote_cmd, Cmd : python -c 'import socket;socket.getaddrinfo("ctest-vm1-test-25407106", None, socket.AF_INET6)', host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-09-08 03:23:44,135 - DEBUG - python -c 'import socket;socket.getaddrinfo("ctest-vm1-test-25407106", None, socket.AF_INET6)' 2025-09-08 03:23:46,968 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 ctest-vm1-test-25407106, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-09-08 03:23:46,968 - DEBUG - ping -s 56 -c 3 -W 1 ctest-vm1-test-25407106 2025-09-08 03:23:49,789 - DEBUG - PING ctest-vm1-test-25407106.juniper.net (10.10.10.3) 56(84) bytes of data. 64 bytes from ctest-vm1-test-25407106.juniper.net (10.10.10.3): icmp_req=1 ttl=64 time=4.42 ms 64 bytes from ctest-vm1-test-25407106.juniper.net (10.10.10.3): icmp_req=2 ttl=64 time=0.517 ms 64 bytes from ctest-vm1-test-25407106.juniper.net (10.10.10.3): icmp_req=3 ttl=64 time=0.533 ms --- ctest-vm1-test-25407106.juniper.net ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2008ms rtt min/avg/max/mdev = 0.517/1.825/4.425/1.838 ms 2025-09-08 03:23:49,789 - INFO - Ping to IP ctest-vm1-test-25407106 from VM ctest-vm1-test-25407106 passed 2025-09-08 03:23:49,833 - DEBUG - Requesting: http://10.0.0.41:8092/Snh_PageReq?x=AllEntries%20VdnsServersReq 2025-09-08 03:23:49,841 - DEBUG - Requesting: http://10.0.0.41:8092/Snh_PageReq?x=default-domain:ctest-vdns1-74689723@0%20AllEntriesVdnsRecordsReq 2025-09-08 03:23:49,846 - DEBUG - Requesting: http://10.0.0.41:8092/Snh_PageReq?x=AllEntries%20VdnsServersReq 2025-09-08 03:23:49,851 - DEBUG - Requesting: http://10.0.0.41:8092/Snh_PageReq?x=default-domain:ctest-vdns1-74689723@0%20AllEntriesVdnsRecordsReq 2025-09-08 03:23:49,855 - DEBUG - Requesting: http://10.0.0.41:8092/Snh_PageReq?x=AllEntries%20VdnsServersReq 2025-09-08 03:23:49,860 - DEBUG - Requesting: http://10.0.0.41:8092/Snh_PageReq?x=default-domain:ctest-vdns1-74689723@0%20AllEntriesVdnsRecordsReq 2025-09-08 03:23:49,866 - DEBUG - Actual record data {'name': 'default-domain:ctest-vdns1-74689723:1:ctest-vm1-test-25407106:10.10.10.3', 'rec_name': 'ctest-vm1-test-25407106', '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-4041-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-25407106.juniper.net', 'installed': 'yes', 'zone': 'juniper.net'} 2025-09-08 03:23:49,866 - DEBUG - Actual record data {'name': 'default-domain:ctest-vdns1-74689723:12:3.10.10.10.in-addr.arpa:ctest-vm1-test-25407106', 'rec_name': '3.10.10.10.in-addr.arpa', 'rec_type': 'PTR', 'rec_class': 'IN', 'rec_data': 'ctest-vm1-test-25407106', 'rec_ttl': '100', 'source': 'Agent', 'installed': 'true', 'flags': '3', 'rec_source_name': 'an-jenkins-deploy-platform-ansible-os-4041-1/dns'} , Expected record data {'rec_data': 'ctest-vm1-test-25407106.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-09-08 03:23:51,222 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4041-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4041-2) 2025-09-08 03:23:51,222 - INFO - Waiting for VM ctest-vm2-test-39542459 to be up.. 2025-09-08 03:23:51,268 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-08 03:23:56,366 - DEBUG - VM is in ACTIVE state now 2025-09-08 03:23:56,366 - INFO - VM name : ctest-vm2-test-39542459 2025-09-08 03:23:56,469 - DEBUG - VM ctest-vm2-test-39542459 ID is 0da83035-713a-4c2b-b1d0-9a51ac56a70f 2025-09-08 03:23:56,469 - DEBUG - VM ctest-vm2-test-39542459 launched on Node an-jenkins-deploy-platform-ansible-os-4041-2 2025-09-08 03:23:56,568 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/0da83035-713a-4c2b-b1d0-9a51ac56a70f 2025-09-08 03:23:56,580 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/eabd97c3-eec8-4ab2-9f46-69d35e659aa0 2025-09-08 03:23:59,793 - 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-09-08 03:23:59,793 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-39542459 failed! 2025-09-08 03:23:59,812 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-37699253:ctest-vn1-vdns-07107706 is 10.10.10.1 and allocation pool is NOT set 2025-09-08 03:24:03,914 - 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-09-08 03:24:03,915 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-39542459 failed! 2025-09-08 03:24:03,931 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-37699253:ctest-vn1-vdns-07107706 is 10.10.10.1 and allocation pool is NOT set 2025-09-08 03:24:08,018 - 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 1018ms') 2025-09-08 03:24:08,018 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-39542459 failed! 2025-09-08 03:24:08,034 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-37699253:ctest-vn1-vdns-07107706 is 10.10.10.1 and allocation pool is NOT set 2025-09-08 03:24:12,108 - 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-09-08 03:24:12,108 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-39542459 failed! 2025-09-08 03:24:12,124 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-37699253:ctest-vn1-vdns-07107706 is 10.10.10.1 and allocation pool is NOT set 2025-09-08 03:24:16,239 - 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-09-08 03:24:16,239 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-39542459 failed! 2025-09-08 03:24:16,255 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-37699253:ctest-vn1-vdns-07107706 is 10.10.10.1 and allocation pool is NOT set 2025-09-08 03:24:20,366 - 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-09-08 03:24:20,366 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-39542459 failed! 2025-09-08 03:24:20,385 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-37699253:ctest-vn1-vdns-07107706 is 10.10.10.1 and allocation pool is NOT set 2025-09-08 03:24:24,492 - 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 1026ms') 2025-09-08 03:24:24,493 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-39542459 failed! 2025-09-08 03:24:24,510 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-37699253:ctest-vn1-vdns-07107706 is 10.10.10.1 and allocation pool is NOT set 2025-09-08 03:24:28,623 - 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-09-08 03:24:28,623 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-39542459 failed! 2025-09-08 03:24:28,643 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-37699253:ctest-vn1-vdns-07107706 is 10.10.10.1 and allocation pool is NOT set 2025-09-08 03:24:30,729 - 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=14.5 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=4.02 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 = 4.019/9.267/14.515/5.248 ms') 2025-09-08 03:24:30,729 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-39542459 passed 2025-09-08 03:24:30,801 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-08 03:24:30,802 - DEBUG - Waiting to SSH to VM ctest-vm2-test-39542459, IP 10.10.10.4, Port 22 2025-09-08 03:24:30,891 - 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-09-08 03:24:30,984 - DEBUG - VM ctest-vm2-test-39542459 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-08 03:24:35,985 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-08 03:24:35,986 - DEBUG - Waiting to SSH to VM ctest-vm2-test-39542459, IP 10.10.10.4, Port 22 2025-09-08 03:24:36,052 - 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-09-08 03:24:36,137 - DEBUG - VM ctest-vm2-test-39542459 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-08 03:24:41,138 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-08 03:24:41,138 - DEBUG - Waiting to SSH to VM ctest-vm2-test-39542459, IP 10.10.10.4, Port 22 2025-09-08 03:24:41,225 - 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-09-08 03:24:41,323 - DEBUG - VM ctest-vm2-test-39542459 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-08 03:24:46,324 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-08 03:24:46,324 - DEBUG - Waiting to SSH to VM ctest-vm2-test-39542459, IP 10.10.10.4, Port 22 2025-09-08 03:24:46,415 - 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-09-08 03:24:46,509 - DEBUG - VM ctest-vm2-test-39542459 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-08 03:24:51,510 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-08 03:24:51,510 - DEBUG - Waiting to SSH to VM ctest-vm2-test-39542459, IP 10.10.10.4, Port 22 2025-09-08 03:24:51,696 - DEBUG - VM ctest-vm2-test-39542459 is ready for SSH connections 2025-09-08 03:24:51,697 - DEBUG - Running remote_cmd, Cmd : ifconfig | grep 10.10.10.4, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2025-09-08 03:24:51,697 - DEBUG - ifconfig | grep 10.10.10.4 2025-09-08 03:25:11,748 - DEBUG - inet addr:10.10.10.4 Bcast:10.10.10.255 Mask:255.255.255.0 2025-09-08 03:25:11,748 - DEBUG - Running remote_cmd, Cmd : python -c 'import socket;socket.getaddrinfo("ctest-vm2-test-39542459", None, socket.AF_INET6)', host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2025-09-08 03:25:11,748 - DEBUG - python -c 'import socket;socket.getaddrinfo("ctest-vm2-test-39542459", None, socket.AF_INET6)' 2025-09-08 03:25:14,511 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 ctest-vm2-test-39542459, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2025-09-08 03:25:14,511 - DEBUG - ping -s 56 -c 3 -W 1 ctest-vm2-test-39542459 2025-09-08 03:25:17,260 - DEBUG - PING ctest-vm2-test-39542459.juniper.net (10.10.10.4) 56(84) bytes of data. 64 bytes from ctest-vm2-test-39542459.juniper.net (10.10.10.4): icmp_req=1 ttl=64 time=4.20 ms 64 bytes from ctest-vm2-test-39542459.juniper.net (10.10.10.4): icmp_req=2 ttl=64 time=0.538 ms 64 bytes from ctest-vm2-test-39542459.juniper.net (10.10.10.4): icmp_req=3 ttl=64 time=0.419 ms --- ctest-vm2-test-39542459.juniper.net ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2005ms rtt min/avg/max/mdev = 0.419/1.719/4.202/1.756 ms 2025-09-08 03:25:17,260 - INFO - Ping to IP ctest-vm2-test-39542459 from VM ctest-vm2-test-39542459 passed 2025-09-08 03:25:17,299 - DEBUG - Requesting: http://10.0.0.41:8092/Snh_PageReq?x=AllEntries%20VdnsServersReq 2025-09-08 03:25:17,309 - DEBUG - Requesting: http://10.0.0.41:8092/Snh_PageReq?x=default-domain:ctest-vdns1-74689723@0%20AllEntriesVdnsRecordsReq 2025-09-08 03:25:17,314 - DEBUG - Requesting: http://10.0.0.41:8092/Snh_PageReq?x=AllEntries%20VdnsServersReq 2025-09-08 03:25:17,321 - DEBUG - Requesting: http://10.0.0.41:8092/Snh_PageReq?x=default-domain:ctest-vdns1-74689723@0%20AllEntriesVdnsRecordsReq 2025-09-08 03:25:17,327 - DEBUG - Requesting: http://10.0.0.41:8092/Snh_PageReq?x=AllEntries%20VdnsServersReq 2025-09-08 03:25:17,332 - DEBUG - Requesting: http://10.0.0.41:8092/Snh_PageReq?x=default-domain:ctest-vdns1-74689723@0%20AllEntriesVdnsRecordsReq 2025-09-08 03:25:17,337 - DEBUG - Actual record data {'name': 'default-domain:ctest-vdns1-74689723:1:ctest-vm2-test-39542459:10.10.10.4', 'rec_name': 'ctest-vm2-test-39542459', '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-4041-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-39542459.juniper.net', 'installed': 'yes', 'zone': 'juniper.net'} 2025-09-08 03:25:17,337 - DEBUG - Actual record data {'name': 'default-domain:ctest-vdns1-74689723:12:4.10.10.10.in-addr.arpa:ctest-vm2-test-39542459', 'rec_name': '4.10.10.10.in-addr.arpa', 'rec_type': 'PTR', 'rec_class': 'IN', 'rec_data': 'ctest-vm2-test-39542459', 'rec_ttl': '100', 'source': 'Agent', 'installed': 'true', 'flags': '3', 'rec_source_name': 'an-jenkins-deploy-platform-ansible-os-4041-2/dns'} , Expected record data {'rec_data': 'ctest-vm2-test-39542459.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-09-08 03:25:17,338 - DEBUG - Running remote_cmd, Cmd : python -c 'import socket;socket.getaddrinfo("ctest-vm2-test-39542459", None, socket.AF_INET6)', host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-09-08 03:25:17,338 - DEBUG - python -c 'import socket;socket.getaddrinfo("ctest-vm2-test-39542459", None, socket.AF_INET6)' 2025-09-08 03:25:18,629 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 ctest-vm2-test-39542459, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-09-08 03:25:18,629 - DEBUG - ping -s 56 -c 3 -W 1 ctest-vm2-test-39542459 2025-09-08 03:25:21,280 - DEBUG - PING ctest-vm2-test-39542459.juniper.net (10.10.10.4) 56(84) bytes of data. 64 bytes from ctest-vm2-test-39542459.juniper.net (10.10.10.4): icmp_req=1 ttl=64 time=16.7 ms 64 bytes from ctest-vm2-test-39542459.juniper.net (10.10.10.4): icmp_req=2 ttl=64 time=1.64 ms 64 bytes from ctest-vm2-test-39542459.juniper.net (10.10.10.4): icmp_req=3 ttl=64 time=2.25 ms --- ctest-vm2-test-39542459.juniper.net ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2005ms rtt min/avg/max/mdev = 1.645/6.872/16.718/6.966 ms 2025-09-08 03:25:21,280 - INFO - Ping to IP ctest-vm2-test-39542459 from VM ctest-vm1-test-25407106 passed 2025-09-08 03:25:21,281 - INFO - Try deleting the VDNS entry ctest-vdns1-74689723 with back ref of ipam. 2025-09-08 03:25:21,343 - DEBUG - Delete when resource still referred: ['http://10.0.0.38:8082/network-ipam/52d0d135-0278-4343-b8d3-ac48692bd86d'] 2025-09-08 03:25:21,343 - INFO - Deletion of the vdns entry failed with back ref of ipam as expected 2025-09-08 03:25:21,343 - INFO - Add CNAME VDNS record for ctest-vm1-test-25407106 and verify we able to ping by alias name 2025-09-08 03:25:21,395 - DEBUG - Creating VDNS record data : test-rec 2025-09-08 03:25:21,543 - INFO - In verify_on_setup 2025-09-08 03:25:21,643 - DEBUG - VDNS record: ['default-domain', 'ctest-vdns1-74689723', 'test-rec'] created succesfully 2025-09-08 03:25:21,643 - INFO - Verify VDNS record is shown in the API server 2025-09-08 03:25:21,643 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-09-08 03:25:21,650 - DEBUG - Requesting: http://10.0.0.41:8082/domain/729830a9-0e71-496c-9bfd-570f28a4effe 2025-09-08 03:25:21,664 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-DNS/9aa79693-0998-4698-b3bd-1fccee95fc70 2025-09-08 03:25:21,673 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-DNS-record/46d69914-02fa-483f-b6e7-ae29e0194b7c 2025-09-08 03:25:21,680 - INFO - Verify VDNS record is shown in the control node 2025-09-08 03:25:21,701 - 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.65, gateway password: c0ntrail123 2025-09-08 03:25:21,701 - DEBUG - python -c 'import socket;socket.getaddrinfo("vm1-test-alias", None, socket.AF_INET6)' 2025-09-08 03:25:23,044 - 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.65, gateway password: c0ntrail123 2025-09-08 03:25:23,044 - DEBUG - ping -s 56 -c 3 -W 1 vm1-test-alias 2025-09-08 03:25:23,670 - DEBUG - ping: unknown host vm1-test-alias 2025-09-08 03:25:23,671 - WARNING - Ping to IP vm1-test-alias from VM ctest-vm1-test-25407106 failed 2025-09-08 03:25:24,672 - 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.65, gateway password: c0ntrail123 2025-09-08 03:25:24,672 - DEBUG - python -c 'import socket;socket.getaddrinfo("vm1-test-alias", None, socket.AF_INET6)' 2025-09-08 03:25:25,922 - 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.65, gateway password: c0ntrail123 2025-09-08 03:25:25,923 - DEBUG - ping -s 56 -c 3 -W 1 vm1-test-alias 2025-09-08 03:25:28,565 - DEBUG - PING ctest-vm1-test-25407106.juniper.net (10.10.10.3) 56(84) bytes of data. 64 bytes from ctest-vm1-test-25407106.juniper.net (10.10.10.3): icmp_req=1 ttl=64 time=0.234 ms 64 bytes from ctest-vm1-test-25407106.juniper.net (10.10.10.3): icmp_req=2 ttl=64 time=7.01 ms 64 bytes from ctest-vm1-test-25407106.juniper.net (10.10.10.3): icmp_req=3 ttl=64 time=0.492 ms --- ctest-vm1-test-25407106.juniper.net ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 0.234/2.579/7.011/3.135 ms 2025-09-08 03:25:28,565 - INFO - Ping to IP vm1-test-alias from VM ctest-vm1-test-25407106 passed 2025-09-08 03:25:28,565 - DEBUG - Deleting VDNS record data: test-rec 2025-09-08 03:25:28,651 - INFO - VDNS record info: default-domain:ctest-vdns1-74689723:test-rec deleted successfully. 2025-09-08 03:25:28,651 - INFO - Deleting VM ctest-vm2-test-39542459 2025-09-08 03:25:28,727 - INFO - Deleting VM ctest-vm1-test-25407106 2025-09-08 03:25:28,799 - INFO - Deleting VN ctest-vn1-vdns-07107706 2025-09-08 03:25:28,843 - DEBUG - VN a8c66fb3-d4cf-47e4-9d7a-64c9a9570dc0 still in use: Unable to complete operation on network a8c66fb3-d4cf-47e4-9d7a-64c9a9570dc0. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-bb44bb00-6543-4a74-88aa-510f76b6f546'] 2025-09-08 03:25:28,844 - WARNING - Deleting VN ctest-vn1-vdns-07107706 failed..Will retry 2025-09-08 03:25:31,093 - DEBUG - Response for deleting network () 2025-09-08 03:25:31,156 - DEBUG - Deleting VDNS Entry: ctest-vdns1-74689723 2025-09-08 03:25:31,263 - INFO - VDNS info: ['default-domain', 'ctest-vdns1-74689723'] deleted successfully. 2025-09-08 03:25:31,263 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-09-08 03:25:31,271 - DEBUG - Requesting: http://10.0.0.41:8082/domain/729830a9-0e71-496c-9bfd-570f28a4effe 2025-09-08 03:25:31,287 - DEBUG - VDNS information not found in API server 2025-09-08 03:25:31,287 - INFO - VDNS information ctest-vdns1-74689723 removed from the API Server 2025-09-08 03:25:31,293 - INFO - VDNS information ctest-vdns1-74689723 removed in the Control node 2025-09-08 03:25:31,293 - DEBUG - Skipping the deletion of Project ['default-domain', 'ctest-TestvDNSBasic0-37699253'] 2025-09-08 03:25:32,655 - DEBUG - No XMPP flaps were noticed during the test 2025-09-08 03:25:32,655 - INFO - END TEST : test_vdns_ping_same_vn : PASSED[0:03:15] 2025-09-08 03:25:32,655 - INFO - -------------------------------------------------------------------------------- 2025-09-08 03:25:33,473 - INFO - Deleted project: ctest-TestvDNSBasic0-37699253, ID : 2efba5f3-d2bf-45bd-b78d-4ef5d3ab1e10