2025-11-03 03:16:43,692 - INFO - Domain Default found not creating
2025-11-03 03:16:44,179 - INFO - Project ctest-TestvDNSBasic0-75366147 not found, creating it
2025-11-03 03:16:44,758 - INFO - Created Project:ctest-TestvDNSBasic0-75366147, ID : 914d2321-df79-412e-abb1-aa784b6c752a
2025-11-03 03:16:46,196 - INFO - ================================================================================
2025-11-03 03:16:46,196 - INFO - STARTING TEST : test_vdns_ping_same_vn
2025-11-03 03:16:46,196 - 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-11-03 03:16:47,476 - DEBUG - Nothing to compare xmpp stats {'10.0.0.73': {'10.20.0.25': '0', '10.20.0.17': '0'}, '10.0.0.33': {'10.20.0.17': '0', '10.20.0.193': '0'}} with
2025-11-03 03:16:47,476 - INFO - Initial checks done. Running the testcase now
2025-11-03 03:16:47,476 - INFO -
2025-11-03 03:16:48,192 - INFO - Using existing project ['default-domain', 'ctest-TestvDNSBasic0-75366147'](914d2321-df79-412e-abb1-aa784b6c752a)
2025-11-03 03:16:48,259 - DEBUG - Creating VDNS : ctest-vdns1-04980572
2025-11-03 03:16:48,491 - DEBUG - VDNS: ['default-domain', 'ctest-vdns1-04980572'] created succesfully
2025-11-03 03:16:48,491 - DEBUG - Verify VDNS entry is shown in control node
2025-11-03 03:16:48,508 - DEBUG - Verify VDNS entry is shown in the API server
2025-11-03 03:16:48,509 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-11-03 03:16:48,810 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-11-03 03:16:48,846 - DEBUG - Requesting: http://10.0.0.249:8082/domain/08e054d4-7d42-4fbe-9f71-53fe1c9730a1
2025-11-03 03:16:48,871 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-DNS/db534876-e3e8-49bd-8f77-136c1a37c220
2025-11-03 03:16:49,588 - DEBUG - Response for create_network : {'network': {'id': '512d6721-5aa1-457f-a210-06a3334cf87c', 'name': 'ctest-vn1-vdns-47812253', 'tenant_id': '914d2321df79412eabb1aa784b6c752a', 'project_id': '914d2321df79412eabb1aa784b6c752a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestvDNSBasic0-75366147', 'ctest-vn1-vdns-47812253'], 'port_security_enabled': True, 'description': ''}}
2025-11-03 03:16:49,872 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fe84994b-08d2-43e6-b397-2cd047dc2593', 'name': '', 'tenant_id': '914d2321df79412eabb1aa784b6c752a', 'network_id': '512d6721-5aa1-457f-a210-06a3334cf87c', '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': '914d2321df79412eabb1aa784b6c752a'}}
2025-11-03 03:16:49,896 - INFO - Created VN ctest-vn1-vdns-47812253
2025-11-03 03:16:49,912 - DEBUG - VN ctest-vn1-vdns-47812253 UUID is 512d6721-5aa1-457f-a210-06a3334cf87c
2025-11-03 03:16:50,093 - DEBUG - Services list from nova: [, , , ]
2025-11-03 03:16:51,169 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4597-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4597-1)
2025-11-03 03:16:51,169 - INFO - Waiting for VM ctest-vm1-test-04893392 to be up..
2025-11-03 03:16:51,213 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2025-11-03 03:16:56,294 - DEBUG - VM is in ACTIVE state now
2025-11-03 03:16:56,294 - INFO - VM name : ctest-vm1-test-04893392
2025-11-03 03:16:56,382 - DEBUG - VM ctest-vm1-test-04893392 ID is 7b98c418-ff97-4278-b695-a3341eec1cb3
2025-11-03 03:16:56,382 - DEBUG - VM ctest-vm1-test-04893392 launched on Node an-jenkins-deploy-platform-ansible-os-4597-1
2025-11-03 03:16:56,458 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/7b98c418-ff97-4278-b695-a3341eec1cb3
2025-11-03 03:16:56,759 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/7b98c418-ff97-4278-b695-a3341eec1cb3
2025-11-03 03:16:56,791 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/38c07c9b-0500-43c9-8eb3-ae461bb3f464
2025-11-03 03:16:59,975 - 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 1030ms')
2025-11-03 03:16:59,976 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-04893392 failed!
2025-11-03 03:16:59,990 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-75366147:ctest-vn1-vdns-47812253 is 10.10.10.1 and allocation pool is NOT set
2025-11-03 03:17:04,064 - 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-11-03 03:17:04,064 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-04893392 failed!
2025-11-03 03:17:04,088 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-75366147:ctest-vn1-vdns-47812253 is 10.10.10.1 and allocation pool is NOT set
2025-11-03 03:17:08,164 - 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-11-03 03:17:08,164 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-04893392 failed!
2025-11-03 03:17:08,177 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-75366147:ctest-vn1-vdns-47812253 is 10.10.10.1 and allocation pool is NOT set
2025-11-03 03:17:12,259 - 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-11-03 03:17:12,259 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-04893392 failed!
2025-11-03 03:17:12,272 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-75366147:ctest-vn1-vdns-47812253 is 10.10.10.1 and allocation pool is NOT set
2025-11-03 03:17:16,355 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1022ms')
2025-11-03 03:17:16,356 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-04893392 failed!
2025-11-03 03:17:16,370 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-75366147:ctest-vn1-vdns-47812253 is 10.10.10.1 and allocation pool is NOT set
2025-11-03 03:17:20,454 - 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-11-03 03:17:20,454 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-04893392 failed!
2025-11-03 03:17:20,470 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-75366147:ctest-vn1-vdns-47812253 is 10.10.10.1 and allocation pool is NOT set
2025-11-03 03:17:24,547 - 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 1013ms')
2025-11-03 03:17:24,547 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-04893392 failed!
2025-11-03 03:17:24,561 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-75366147:ctest-vn1-vdns-47812253 is 10.10.10.1 and allocation pool is NOT set
2025-11-03 03:17:28,647 - 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-11-03 03:17:28,648 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-04893392 failed!
2025-11-03 03:17:28,661 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-75366147:ctest-vn1-vdns-47812253 is 10.10.10.1 and allocation pool is NOT set
2025-11-03 03:17:30,732 - 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=9.57 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.32 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 = 1.321/5.445/9.570/4.124 ms')
2025-11-03 03:17:30,732 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-04893392 passed
2025-11-03 03:17:30,799 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-11-03 03:17:30,799 - DEBUG - Waiting to SSH to VM ctest-vm1-test-04893392, IP 10.10.10.3, Port 22
2025-11-03 03:17:30,887 - 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-11-03 03:17:30,967 - DEBUG - VM ctest-vm1-test-04893392 is NOT ready for SSH connections, VM status: ACTIVE
2025-11-03 03:17:35,967 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-11-03 03:17:35,967 - DEBUG - Waiting to SSH to VM ctest-vm1-test-04893392, IP 10.10.10.3, Port 22
2025-11-03 03:17:36,034 - 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-11-03 03:17:36,126 - DEBUG - VM ctest-vm1-test-04893392 is NOT ready for SSH connections, VM status: ACTIVE
2025-11-03 03:17:41,127 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-11-03 03:17:41,127 - DEBUG - Waiting to SSH to VM ctest-vm1-test-04893392, IP 10.10.10.3, Port 22
2025-11-03 03:17:41,184 - 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-11-03 03:17:41,284 - DEBUG - VM ctest-vm1-test-04893392 is NOT ready for SSH connections, VM status: ACTIVE
2025-11-03 03:17:46,285 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-11-03 03:17:46,286 - DEBUG - Waiting to SSH to VM ctest-vm1-test-04893392, IP 10.10.10.3, Port 22
2025-11-03 03:17:46,355 - 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-11-03 03:17:46,435 - DEBUG - VM ctest-vm1-test-04893392 is NOT ready for SSH connections, VM status: ACTIVE
2025-11-03 03:17:51,436 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-11-03 03:17:51,436 - DEBUG - Waiting to SSH to VM ctest-vm1-test-04893392, IP 10.10.10.3, Port 22
2025-11-03 03:17:51,492 - 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-11-03 03:17:51,572 - DEBUG - VM ctest-vm1-test-04893392 is NOT ready for SSH connections, VM status: ACTIVE
2025-11-03 03:17:56,573 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-11-03 03:17:56,573 - DEBUG - Waiting to SSH to VM ctest-vm1-test-04893392, IP 10.10.10.3, Port 22
2025-11-03 03:17:56,742 - DEBUG - VM ctest-vm1-test-04893392 is ready for SSH connections
2025-11-03 03:17:56,742 - DEBUG - Running remote_cmd, Cmd : ifconfig | grep 10.10.10.3, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.73, gateway password: c0ntrail123
2025-11-03 03:17:56,742 - DEBUG - ifconfig | grep 10.10.10.3
2025-11-03 03:18:15,424 - DEBUG - inet addr:10.10.10.3 Bcast:10.10.10.255 Mask:255.255.255.0
2025-11-03 03:18:15,425 - DEBUG - Running remote_cmd, Cmd : python -c 'import socket;socket.getaddrinfo("ctest-vm1-test-04893392", None, socket.AF_INET6)', host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.73, gateway password: c0ntrail123
2025-11-03 03:18:15,425 - DEBUG - python -c 'import socket;socket.getaddrinfo("ctest-vm1-test-04893392", None, socket.AF_INET6)'
2025-11-03 03:18:16,737 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 ctest-vm1-test-04893392, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.73, gateway password: c0ntrail123
2025-11-03 03:18:16,737 - DEBUG - ping -s 56 -c 3 -W 1 ctest-vm1-test-04893392
2025-11-03 03:18:19,347 - DEBUG - PING ctest-vm1-test-04893392.juniper.net (10.10.10.3) 56(84) bytes of data.
64 bytes from ctest-vm1-test-04893392.juniper.net (10.10.10.3): icmp_req=1 ttl=64 time=4.47 ms
64 bytes from ctest-vm1-test-04893392.juniper.net (10.10.10.3): icmp_req=2 ttl=64 time=0.290 ms
64 bytes from ctest-vm1-test-04893392.juniper.net (10.10.10.3): icmp_req=3 ttl=64 time=0.184 ms
--- ctest-vm1-test-04893392.juniper.net ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2004ms
rtt min/avg/max/mdev = 0.184/1.650/4.476/1.998 ms
2025-11-03 03:18:19,347 - INFO - Ping to IP ctest-vm1-test-04893392 from VM ctest-vm1-test-04893392 passed
2025-11-03 03:18:19,381 - DEBUG - Requesting: http://10.0.0.249:8092/Snh_PageReq?x=AllEntries%20VdnsServersReq
2025-11-03 03:18:19,388 - DEBUG - Requesting: http://10.0.0.249:8092/Snh_PageReq?x=default-domain:ctest-vdns1-04980572@0%20AllEntriesVdnsRecordsReq
2025-11-03 03:18:19,395 - DEBUG - Requesting: http://10.0.0.249:8092/Snh_PageReq?x=AllEntries%20VdnsServersReq
2025-11-03 03:18:19,401 - DEBUG - Requesting: http://10.0.0.249:8092/Snh_PageReq?x=default-domain:ctest-vdns1-04980572@0%20AllEntriesVdnsRecordsReq
2025-11-03 03:18:19,407 - DEBUG - Requesting: http://10.0.0.249:8092/Snh_PageReq?x=AllEntries%20VdnsServersReq
2025-11-03 03:18:19,413 - DEBUG - Requesting: http://10.0.0.249:8092/Snh_PageReq?x=default-domain:ctest-vdns1-04980572@0%20AllEntriesVdnsRecordsReq
2025-11-03 03:18:19,419 - DEBUG - Actual record data {'name': 'default-domain:ctest-vdns1-04980572:1:ctest-vm1-test-04893392:10.10.10.3', 'rec_name': 'ctest-vm1-test-04893392', '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-4597-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-04893392.juniper.net', 'installed': 'yes', 'zone': 'juniper.net'}
2025-11-03 03:18:19,419 - DEBUG - Actual record data {'name': 'default-domain:ctest-vdns1-04980572:12:3.10.10.10.in-addr.arpa:ctest-vm1-test-04893392', 'rec_name': '3.10.10.10.in-addr.arpa', 'rec_type': 'PTR', 'rec_class': 'IN', 'rec_data': 'ctest-vm1-test-04893392', 'rec_ttl': '100', 'source': 'Agent', 'installed': 'true', 'flags': '3', 'rec_source_name': 'an-jenkins-deploy-platform-ansible-os-4597-1/dns'} ,
Expected record data {'rec_data': 'ctest-vm1-test-04893392.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-11-03 03:18:20,696 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4597-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4597-2)
2025-11-03 03:18:20,696 - INFO - Waiting for VM ctest-vm2-test-66739035 to be up..
2025-11-03 03:18:20,735 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2025-11-03 03:18:25,811 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2025-11-03 03:18:30,910 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2025-11-03 03:18:35,991 - DEBUG - VM is in ACTIVE state now
2025-11-03 03:18:35,991 - INFO - VM name : ctest-vm2-test-66739035
2025-11-03 03:18:36,091 - DEBUG - VM ctest-vm2-test-66739035 ID is 5cb84ff1-ec11-4037-84cd-22b1a2faaf8f
2025-11-03 03:18:36,091 - DEBUG - VM ctest-vm2-test-66739035 launched on Node an-jenkins-deploy-platform-ansible-os-4597-2
2025-11-03 03:18:36,178 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/5cb84ff1-ec11-4037-84cd-22b1a2faaf8f
2025-11-03 03:18:36,193 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/9bedfdb6-c540-4d7f-8b4f-09d2fe067a8d
2025-11-03 03:18:39,377 - 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-11-03 03:18:39,377 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-66739035 failed!
2025-11-03 03:18:39,391 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-75366147:ctest-vn1-vdns-47812253 is 10.10.10.1 and allocation pool is NOT set
2025-11-03 03:18:43,474 - 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-11-03 03:18:43,474 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-66739035 failed!
2025-11-03 03:18:43,488 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-75366147:ctest-vn1-vdns-47812253 is 10.10.10.1 and allocation pool is NOT set
2025-11-03 03:18:47,575 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1022ms')
2025-11-03 03:18:47,575 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-66739035 failed!
2025-11-03 03:18:47,591 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-75366147:ctest-vn1-vdns-47812253 is 10.10.10.1 and allocation pool is NOT set
2025-11-03 03:18:51,673 - 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-11-03 03:18:51,673 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-66739035 failed!
2025-11-03 03:18:51,687 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-75366147:ctest-vn1-vdns-47812253 is 10.10.10.1 and allocation pool is NOT set
2025-11-03 03:18:55,769 - 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-11-03 03:18:55,769 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-66739035 failed!
2025-11-03 03:18:55,784 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-75366147:ctest-vn1-vdns-47812253 is 10.10.10.1 and allocation pool is NOT set
2025-11-03 03:18:59,858 - 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 1009ms')
2025-11-03 03:18:59,858 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-66739035 failed!
2025-11-03 03:18:59,872 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-75366147:ctest-vn1-vdns-47812253 is 10.10.10.1 and allocation pool is NOT set
2025-11-03 03:19:03,959 - 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-11-03 03:19:03,959 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-66739035 failed!
2025-11-03 03:19:03,973 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-75366147:ctest-vn1-vdns-47812253 is 10.10.10.1 and allocation pool is NOT set
2025-11-03 03:19:08,050 - 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 1009ms')
2025-11-03 03:19:08,050 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-66739035 failed!
2025-11-03 03:19:08,066 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-75366147:ctest-vn1-vdns-47812253 is 10.10.10.1 and allocation pool is NOT set
2025-11-03 03:19:12,146 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1022ms')
2025-11-03 03:19:12,146 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-66739035 failed!
2025-11-03 03:19:12,163 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-75366147:ctest-vn1-vdns-47812253 is 10.10.10.1 and allocation pool is NOT set
2025-11-03 03:19:14,233 - 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.23 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.19 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 = 1.194/4.710/8.227/3.516 ms')
2025-11-03 03:19:14,233 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-66739035 passed
2025-11-03 03:19:14,299 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-11-03 03:19:14,299 - DEBUG - Waiting to SSH to VM ctest-vm2-test-66739035, IP 10.10.10.4, Port 22
2025-11-03 03:19:14,355 - 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-11-03 03:19:14,443 - DEBUG - VM ctest-vm2-test-66739035 is NOT ready for SSH connections, VM status: ACTIVE
2025-11-03 03:19:19,444 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-11-03 03:19:19,444 - DEBUG - Waiting to SSH to VM ctest-vm2-test-66739035, IP 10.10.10.4, Port 22
2025-11-03 03:19:19,503 - 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-11-03 03:19:19,588 - DEBUG - VM ctest-vm2-test-66739035 is NOT ready for SSH connections, VM status: ACTIVE
2025-11-03 03:19:24,589 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-11-03 03:19:24,589 - DEBUG - Waiting to SSH to VM ctest-vm2-test-66739035, IP 10.10.10.4, Port 22
2025-11-03 03:19:24,656 - 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-11-03 03:19:24,741 - DEBUG - VM ctest-vm2-test-66739035 is NOT ready for SSH connections, VM status: ACTIVE
2025-11-03 03:19:29,742 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-11-03 03:19:29,742 - DEBUG - Waiting to SSH to VM ctest-vm2-test-66739035, IP 10.10.10.4, Port 22
2025-11-03 03:19:29,808 - 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-11-03 03:19:29,893 - DEBUG - VM ctest-vm2-test-66739035 is NOT ready for SSH connections, VM status: ACTIVE
2025-11-03 03:19:34,893 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-11-03 03:19:34,893 - DEBUG - Waiting to SSH to VM ctest-vm2-test-66739035, IP 10.10.10.4, Port 22
2025-11-03 03:19:35,065 - DEBUG - VM ctest-vm2-test-66739035 is ready for SSH connections
2025-11-03 03:19:35,065 - DEBUG - Running remote_cmd, Cmd : ifconfig | grep 10.10.10.4, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.33, gateway password: c0ntrail123
2025-11-03 03:19:35,065 - DEBUG - ifconfig | grep 10.10.10.4
2025-11-03 03:19:54,672 - DEBUG - inet addr:10.10.10.4 Bcast:10.10.10.255 Mask:255.255.255.0
2025-11-03 03:19:54,672 - DEBUG - Running remote_cmd, Cmd : python -c 'import socket;socket.getaddrinfo("ctest-vm2-test-66739035", None, socket.AF_INET6)', host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.33, gateway password: c0ntrail123
2025-11-03 03:19:54,673 - DEBUG - python -c 'import socket;socket.getaddrinfo("ctest-vm2-test-66739035", None, socket.AF_INET6)'
2025-11-03 03:19:55,968 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 ctest-vm2-test-66739035, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.33, gateway password: c0ntrail123
2025-11-03 03:19:55,969 - DEBUG - ping -s 56 -c 3 -W 1 ctest-vm2-test-66739035
2025-11-03 03:19:58,496 - DEBUG - PING ctest-vm2-test-66739035.juniper.net (10.10.10.4) 56(84) bytes of data.
64 bytes from ctest-vm2-test-66739035.juniper.net (10.10.10.4): icmp_req=1 ttl=64 time=4.96 ms
64 bytes from ctest-vm2-test-66739035.juniper.net (10.10.10.4): icmp_req=2 ttl=64 time=0.248 ms
64 bytes from ctest-vm2-test-66739035.juniper.net (10.10.10.4): icmp_req=3 ttl=64 time=0.240 ms
--- ctest-vm2-test-66739035.juniper.net ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2004ms
rtt min/avg/max/mdev = 0.240/1.818/4.967/2.226 ms
2025-11-03 03:19:58,496 - INFO - Ping to IP ctest-vm2-test-66739035 from VM ctest-vm2-test-66739035 passed
2025-11-03 03:19:58,520 - DEBUG - Requesting: http://10.0.0.249:8092/Snh_PageReq?x=AllEntries%20VdnsServersReq
2025-11-03 03:19:58,527 - DEBUG - Requesting: http://10.0.0.249:8092/Snh_PageReq?x=default-domain:ctest-vdns1-04980572@0%20AllEntriesVdnsRecordsReq
2025-11-03 03:19:58,534 - DEBUG - Requesting: http://10.0.0.249:8092/Snh_PageReq?x=AllEntries%20VdnsServersReq
2025-11-03 03:19:58,538 - DEBUG - Requesting: http://10.0.0.249:8092/Snh_PageReq?x=default-domain:ctest-vdns1-04980572@0%20AllEntriesVdnsRecordsReq
2025-11-03 03:19:58,544 - DEBUG - Requesting: http://10.0.0.249:8092/Snh_PageReq?x=AllEntries%20VdnsServersReq
2025-11-03 03:19:58,548 - DEBUG - Requesting: http://10.0.0.249:8092/Snh_PageReq?x=default-domain:ctest-vdns1-04980572@0%20AllEntriesVdnsRecordsReq
2025-11-03 03:19:58,553 - DEBUG - Actual record data {'name': 'default-domain:ctest-vdns1-04980572:1:ctest-vm2-test-66739035:10.10.10.4', 'rec_name': 'ctest-vm2-test-66739035', '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-4597-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-66739035.juniper.net', 'installed': 'yes', 'zone': 'juniper.net'}
2025-11-03 03:19:58,553 - DEBUG - Actual record data {'name': 'default-domain:ctest-vdns1-04980572:12:4.10.10.10.in-addr.arpa:ctest-vm2-test-66739035', 'rec_name': '4.10.10.10.in-addr.arpa', 'rec_type': 'PTR', 'rec_class': 'IN', 'rec_data': 'ctest-vm2-test-66739035', 'rec_ttl': '100', 'source': 'Agent', 'installed': 'true', 'flags': '3', 'rec_source_name': 'an-jenkins-deploy-platform-ansible-os-4597-2/dns'} ,
Expected record data {'rec_data': 'ctest-vm2-test-66739035.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-11-03 03:19:58,554 - DEBUG - Running remote_cmd, Cmd : python -c 'import socket;socket.getaddrinfo("ctest-vm2-test-66739035", None, socket.AF_INET6)', host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.73, gateway password: c0ntrail123
2025-11-03 03:19:58,554 - DEBUG - python -c 'import socket;socket.getaddrinfo("ctest-vm2-test-66739035", None, socket.AF_INET6)'
2025-11-03 03:19:59,846 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 ctest-vm2-test-66739035, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.73, gateway password: c0ntrail123
2025-11-03 03:19:59,846 - DEBUG - ping -s 56 -c 3 -W 1 ctest-vm2-test-66739035
2025-11-03 03:20:02,448 - DEBUG - PING ctest-vm2-test-66739035.juniper.net (10.10.10.4) 56(84) bytes of data.
64 bytes from ctest-vm2-test-66739035.juniper.net (10.10.10.4): icmp_req=1 ttl=64 time=8.08 ms
64 bytes from ctest-vm2-test-66739035.juniper.net (10.10.10.4): icmp_req=2 ttl=64 time=1.52 ms
64 bytes from ctest-vm2-test-66739035.juniper.net (10.10.10.4): icmp_req=3 ttl=64 time=1.88 ms
--- ctest-vm2-test-66739035.juniper.net ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 1.527/3.832/8.085/3.011 ms
2025-11-03 03:20:02,448 - INFO - Ping to IP ctest-vm2-test-66739035 from VM ctest-vm1-test-04893392 passed
2025-11-03 03:20:02,448 - INFO - Try deleting the VDNS entry ctest-vdns1-04980572 with back ref of ipam.
2025-11-03 03:20:02,507 - DEBUG - Delete when resource still referred: ['http://10.0.0.23:8082/network-ipam/83a58d6c-9658-4329-8f98-add2bec6b5b5']
2025-11-03 03:20:02,507 - INFO - Deletion of the vdns entry failed with back ref of ipam as expected
2025-11-03 03:20:02,507 - INFO - Add CNAME VDNS record for ctest-vm1-test-04893392 and verify we able to ping by alias name
2025-11-03 03:20:02,555 - DEBUG - Creating VDNS record data : test-rec
2025-11-03 03:20:02,679 - INFO - In verify_on_setup
2025-11-03 03:20:02,775 - DEBUG - VDNS record: ['default-domain', 'ctest-vdns1-04980572', 'test-rec'] created succesfully
2025-11-03 03:20:02,775 - INFO - Verify VDNS record is shown in the API server
2025-11-03 03:20:02,775 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-11-03 03:20:02,782 - DEBUG - Requesting: http://10.0.0.249:8082/domain/08e054d4-7d42-4fbe-9f71-53fe1c9730a1
2025-11-03 03:20:02,794 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-DNS/db534876-e3e8-49bd-8f77-136c1a37c220
2025-11-03 03:20:02,805 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-DNS-record/d8100ebe-d948-43e5-8494-e3b636c4cae2
2025-11-03 03:20:02,814 - INFO - Verify VDNS record is shown in the control node
2025-11-03 03:20:02,838 - 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.73, gateway password: c0ntrail123
2025-11-03 03:20:02,838 - DEBUG - python -c 'import socket;socket.getaddrinfo("vm1-test-alias", None, socket.AF_INET6)'
2025-11-03 03:20:04,065 - 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.73, gateway password: c0ntrail123
2025-11-03 03:20:04,065 - DEBUG - ping -s 56 -c 3 -W 1 vm1-test-alias
2025-11-03 03:20:04,587 - DEBUG - ping: unknown host vm1-test-alias
2025-11-03 03:20:04,587 - WARNING - Ping to IP vm1-test-alias from VM ctest-vm1-test-04893392 failed
2025-11-03 03:20:05,588 - 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.73, gateway password: c0ntrail123
2025-11-03 03:20:05,589 - DEBUG - python -c 'import socket;socket.getaddrinfo("vm1-test-alias", None, socket.AF_INET6)'
2025-11-03 03:20:06,742 - 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.73, gateway password: c0ntrail123
2025-11-03 03:20:06,742 - DEBUG - ping -s 56 -c 3 -W 1 vm1-test-alias
2025-11-03 03:20:09,269 - DEBUG - PING ctest-vm1-test-04893392.juniper.net (10.10.10.3) 56(84) bytes of data.
64 bytes from ctest-vm1-test-04893392.juniper.net (10.10.10.3): icmp_req=1 ttl=64 time=0.213 ms
64 bytes from ctest-vm1-test-04893392.juniper.net (10.10.10.3): icmp_req=2 ttl=64 time=2.00 ms
64 bytes from ctest-vm1-test-04893392.juniper.net (10.10.10.3): icmp_req=3 ttl=64 time=0.189 ms
--- ctest-vm1-test-04893392.juniper.net ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 0.189/0.802/2.005/0.850 ms
2025-11-03 03:20:09,269 - INFO - Ping to IP vm1-test-alias from VM ctest-vm1-test-04893392 passed
2025-11-03 03:20:09,269 - DEBUG - Deleting VDNS record data: test-rec
2025-11-03 03:20:09,355 - INFO - VDNS record info: default-domain:ctest-vdns1-04980572:test-rec deleted successfully.
2025-11-03 03:20:09,355 - INFO - Deleting VM ctest-vm2-test-66739035
2025-11-03 03:20:09,417 - INFO - Deleting VM ctest-vm1-test-04893392
2025-11-03 03:20:09,482 - INFO - Deleting VN ctest-vn1-vdns-47812253
2025-11-03 03:20:09,522 - DEBUG - VN 512d6721-5aa1-457f-a210-06a3334cf87c still in use: Unable to complete operation on network 512d6721-5aa1-457f-a210-06a3334cf87c. There are one or more ports still in use on the network.
Neutron server returns request_ids: ['req-da5bc29b-30d9-4e67-8c72-759aa1ea7583']
2025-11-03 03:20:09,522 - WARNING - Deleting VN ctest-vn1-vdns-47812253 failed..Will retry
2025-11-03 03:20:11,728 - DEBUG - Response for deleting network ()
2025-11-03 03:20:11,804 - DEBUG - Deleting VDNS Entry: ctest-vdns1-04980572
2025-11-03 03:20:11,903 - INFO - VDNS info: ['default-domain', 'ctest-vdns1-04980572'] deleted successfully.
2025-11-03 03:20:11,903 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-11-03 03:20:11,911 - DEBUG - Requesting: http://10.0.0.249:8082/domain/08e054d4-7d42-4fbe-9f71-53fe1c9730a1
2025-11-03 03:20:11,926 - DEBUG - VDNS information not found in API server
2025-11-03 03:20:11,926 - INFO - VDNS information ctest-vdns1-04980572 removed from the API Server
2025-11-03 03:20:11,931 - INFO - VDNS information ctest-vdns1-04980572 removed in the Control node
2025-11-03 03:20:11,932 - DEBUG - Skipping the deletion of Project ['default-domain', 'ctest-TestvDNSBasic0-75366147']
2025-11-03 03:20:13,220 - DEBUG - No XMPP flaps were noticed during the test
2025-11-03 03:20:13,220 - INFO - END TEST : test_vdns_ping_same_vn : PASSED[0:03:27]
2025-11-03 03:20:13,220 - INFO - --------------------------------------------------------------------------------
2025-11-03 03:20:13,939 - INFO - Deleted project: ctest-TestvDNSBasic0-75366147, ID : 914d2321-df79-412e-abb1-aa784b6c752a