2025-08-11 07:05:59,626 - INFO - Domain Default found not creating
2025-08-11 07:05:59,771 - INFO - Project ctest-TestvDNSBasic0-01823040 not found, creating it
2025-08-11 07:06:00,241 - INFO - Created Project:ctest-TestvDNSBasic0-01823040, ID : 95e58d3a-e1b7-4653-a839-f70a25120770
2025-08-11 07:06:01,849 - INFO - ================================================================================
2025-08-11 07:06:01,849 - INFO - STARTING TEST : test_vdns_ping_same_vn
2025-08-11 07:06:01,849 - 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-11 07:06:03,101 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.17': '0', '10.20.0.25': '0'}, '10.0.0.57': {'10.20.0.17': '0', '10.20.0.254': '0'}} with
2025-08-11 07:06:03,101 - INFO - Initial checks done. Running the testcase now
2025-08-11 07:06:03,102 - INFO -
2025-08-11 07:06:03,816 - INFO - Using existing project ['default-domain', 'ctest-TestvDNSBasic0-01823040'](95e58d3a-e1b7-4653-a839-f70a25120770)
2025-08-11 07:06:03,876 - DEBUG - Creating VDNS : ctest-vdns1-02130635
2025-08-11 07:06:04,109 - DEBUG - VDNS: ['default-domain', 'ctest-vdns1-02130635'] created succesfully
2025-08-11 07:06:04,109 - DEBUG - Verify VDNS entry is shown in control node
2025-08-11 07:06:04,128 - DEBUG - Verify VDNS entry is shown in the API server
2025-08-11 07:06:04,128 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-11 07:06:04,419 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-11 07:06:04,447 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0566ad86-51fd-4570-9dcc-fd1153322979
2025-08-11 07:06:04,464 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-DNS/68c8ada2-b024-4f19-8b4b-97a0656a536e
2025-08-11 07:06:05,150 - DEBUG - Response for create_network : {'network': {'id': '564dd5e1-15ac-463a-ab29-ec4345baff62', 'name': 'ctest-vn1-vdns-56172117', 'tenant_id': '95e58d3ae1b74653a839f70a25120770', 'project_id': '95e58d3ae1b74653a839f70a25120770', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestvDNSBasic0-01823040', 'ctest-vn1-vdns-56172117'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 07:06:05,412 - DEBUG - Response for create_subnet : {'subnet': {'id': '11a81fa4-3e48-4510-bfbb-7ecdd679c1e5', 'name': '', 'tenant_id': '95e58d3ae1b74653a839f70a25120770', 'network_id': '564dd5e1-15ac-463a-ab29-ec4345baff62', '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': '95e58d3ae1b74653a839f70a25120770'}}
2025-08-11 07:06:05,448 - INFO - Created VN ctest-vn1-vdns-56172117
2025-08-11 07:06:05,461 - DEBUG - VN ctest-vn1-vdns-56172117 UUID is 564dd5e1-15ac-463a-ab29-ec4345baff62
2025-08-11 07:06:05,627 - DEBUG - Services list from nova: [, , , ]
2025-08-11 07:06:06,597 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3798-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3798-2)
2025-08-11 07:06:06,597 - INFO - Waiting for VM ctest-vm1-test-27487426 to be up..
2025-08-11 07:06:06,642 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2025-08-11 07:06:11,717 - DEBUG - VM is in ACTIVE state now
2025-08-11 07:06:11,717 - INFO - VM name : ctest-vm1-test-27487426
2025-08-11 07:06:11,805 - DEBUG - VM ctest-vm1-test-27487426 ID is eda7f574-c126-441a-b726-e4b3807ca493
2025-08-11 07:06:11,805 - DEBUG - VM ctest-vm1-test-27487426 launched on Node an-jenkins-deploy-platform-ansible-os-3798-2
2025-08-11 07:06:11,881 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/eda7f574-c126-441a-b726-e4b3807ca493
2025-08-11 07:06:12,171 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/eda7f574-c126-441a-b726-e4b3807ca493
2025-08-11 07:06:12,200 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/e3fd7e29-e0a6-4881-8ff6-fa1e660f853b
2025-08-11 07:06:15,418 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1010ms')
2025-08-11 07:06:15,418 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-27487426 failed!
2025-08-11 07:06:15,434 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-01823040:ctest-vn1-vdns-56172117 is 10.10.10.1 and allocation pool is NOT set
2025-08-11 07:06:19,516 - 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-08-11 07:06:19,516 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-27487426 failed!
2025-08-11 07:06:19,529 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-01823040:ctest-vn1-vdns-56172117 is 10.10.10.1 and allocation pool is NOT set
2025-08-11 07:06:23,614 - 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-11 07:06:23,614 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-27487426 failed!
2025-08-11 07:06:23,629 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-01823040:ctest-vn1-vdns-56172117 is 10.10.10.1 and allocation pool is NOT set
2025-08-11 07:06:27,711 - 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 1012ms')
2025-08-11 07:06:27,711 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-27487426 failed!
2025-08-11 07:06:27,726 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-01823040:ctest-vn1-vdns-56172117 is 10.10.10.1 and allocation pool is NOT set
2025-08-11 07:06:31,803 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1010ms')
2025-08-11 07:06:31,804 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-27487426 failed!
2025-08-11 07:06:31,821 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-01823040:ctest-vn1-vdns-56172117 is 10.10.10.1 and allocation pool is NOT set
2025-08-11 07:06:35,895 - 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-08-11 07:06:35,895 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-27487426 failed!
2025-08-11 07:06:35,909 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-01823040:ctest-vn1-vdns-56172117 is 10.10.10.1 and allocation pool is NOT set
2025-08-11 07:06:39,996 - 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-08-11 07:06:39,996 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-27487426 failed!
2025-08-11 07:06:40,009 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-01823040:ctest-vn1-vdns-56172117 is 10.10.10.1 and allocation pool is NOT set
2025-08-11 07:06:42,073 - 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=5.39 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.85 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.850/3.621/5.393/1.771 ms')
2025-08-11 07:06:42,073 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-vm1-test-27487426 passed
2025-08-11 07:06:42,181 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-08-11 07:06:42,181 - DEBUG - Waiting to SSH to VM ctest-vm1-test-27487426, IP 10.10.10.3, Port 22
2025-08-11 07:06:42,246 - 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-11 07:06:42,322 - DEBUG - VM ctest-vm1-test-27487426 is NOT ready for SSH connections, VM status: ACTIVE
2025-08-11 07:06:47,323 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-08-11 07:06:47,323 - DEBUG - Waiting to SSH to VM ctest-vm1-test-27487426, IP 10.10.10.3, Port 22
2025-08-11 07:06:47,380 - 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-11 07:06:47,455 - DEBUG - VM ctest-vm1-test-27487426 is NOT ready for SSH connections, VM status: ACTIVE
2025-08-11 07:06:52,456 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-08-11 07:06:52,456 - DEBUG - Waiting to SSH to VM ctest-vm1-test-27487426, IP 10.10.10.3, Port 22
2025-08-11 07:06:52,512 - 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-11 07:06:52,582 - DEBUG - VM ctest-vm1-test-27487426 is NOT ready for SSH connections, VM status: ACTIVE
2025-08-11 07:06:57,583 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-08-11 07:06:57,583 - DEBUG - Waiting to SSH to VM ctest-vm1-test-27487426, IP 10.10.10.3, Port 22
2025-08-11 07:06:57,746 - DEBUG - VM ctest-vm1-test-27487426 is ready for SSH connections
2025-08-11 07:06:57,746 - DEBUG - Running remote_cmd, Cmd : ifconfig | grep 10.10.10.3, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.57, gateway password: c0ntrail123
2025-08-11 07:06:57,747 - DEBUG - ifconfig | grep 10.10.10.3
2025-08-11 07:07:16,171 - DEBUG - inet addr:10.10.10.3 Bcast:10.10.10.255 Mask:255.255.255.0
2025-08-11 07:07:16,171 - DEBUG - Running remote_cmd, Cmd : python -c 'import socket;socket.getaddrinfo("ctest-vm1-test-27487426", None, socket.AF_INET6)', host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.57, gateway password: c0ntrail123
2025-08-11 07:07:16,171 - DEBUG - python -c 'import socket;socket.getaddrinfo("ctest-vm1-test-27487426", None, socket.AF_INET6)'
2025-08-11 07:07:18,528 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 ctest-vm1-test-27487426, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.57, gateway password: c0ntrail123
2025-08-11 07:07:18,528 - DEBUG - ping -s 56 -c 3 -W 1 ctest-vm1-test-27487426
2025-08-11 07:07:21,479 - DEBUG - PING ctest-vm1-test-27487426.juniper.net (10.10.10.3) 56(84) bytes of data.
64 bytes from ctest-vm1-test-27487426.juniper.net (10.10.10.3): icmp_req=1 ttl=64 time=2.32 ms
64 bytes from ctest-vm1-test-27487426.juniper.net (10.10.10.3): icmp_req=2 ttl=64 time=0.214 ms
64 bytes from ctest-vm1-test-27487426.juniper.net (10.10.10.3): icmp_req=3 ttl=64 time=0.176 ms
--- ctest-vm1-test-27487426.juniper.net ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 0.176/0.905/2.326/1.004 ms
2025-08-11 07:07:21,479 - INFO - Ping to IP ctest-vm1-test-27487426 from VM ctest-vm1-test-27487426 passed
2025-08-11 07:07:21,507 - DEBUG - Requesting: http://10.0.0.254:8092/Snh_PageReq?x=AllEntries%20VdnsServersReq
2025-08-11 07:07:21,515 - DEBUG - Requesting: http://10.0.0.254:8092/Snh_PageReq?x=default-domain:ctest-vdns1-02130635@0%20AllEntriesVdnsRecordsReq
2025-08-11 07:07:21,520 - DEBUG - Requesting: http://10.0.0.254:8092/Snh_PageReq?x=AllEntries%20VdnsServersReq
2025-08-11 07:07:21,526 - DEBUG - Requesting: http://10.0.0.254:8092/Snh_PageReq?x=default-domain:ctest-vdns1-02130635@0%20AllEntriesVdnsRecordsReq
2025-08-11 07:07:21,532 - DEBUG - Requesting: http://10.0.0.254:8092/Snh_PageReq?x=AllEntries%20VdnsServersReq
2025-08-11 07:07:21,538 - DEBUG - Requesting: http://10.0.0.254:8092/Snh_PageReq?x=default-domain:ctest-vdns1-02130635@0%20AllEntriesVdnsRecordsReq
2025-08-11 07:07:21,545 - DEBUG - Actual record data {'name': 'default-domain:ctest-vdns1-02130635:1:ctest-vm1-test-27487426:10.10.10.3', 'rec_name': 'ctest-vm1-test-27487426', '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-3798-2/dns'} ,
Expected record data {'rec_data': '10.10.10.3', 'rec_type': 'A', 'rec_class': 'IN', 'rec_ttl': '100', 'rec_name': 'ctest-vm1-test-27487426.juniper.net', 'installed': 'yes', 'zone': 'juniper.net'}
2025-08-11 07:07:21,545 - DEBUG - Actual record data {'name': 'default-domain:ctest-vdns1-02130635:12:3.10.10.10.in-addr.arpa:ctest-vm1-test-27487426', 'rec_name': '3.10.10.10.in-addr.arpa', 'rec_type': 'PTR', 'rec_class': 'IN', 'rec_data': 'ctest-vm1-test-27487426', 'rec_ttl': '100', 'source': 'Agent', 'installed': 'true', 'flags': '3', 'rec_source_name': 'an-jenkins-deploy-platform-ansible-os-3798-2/dns'} ,
Expected record data {'rec_data': 'ctest-vm1-test-27487426.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-11 07:07:22,825 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3798-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3798-1)
2025-08-11 07:07:22,825 - INFO - Waiting for VM ctest-vm2-test-47530109 to be up..
2025-08-11 07:07:22,873 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2025-08-11 07:07:27,961 - DEBUG - VM is in ACTIVE state now
2025-08-11 07:07:27,961 - INFO - VM name : ctest-vm2-test-47530109
2025-08-11 07:07:28,054 - DEBUG - VM ctest-vm2-test-47530109 ID is f76d6946-24ce-4c98-89b0-d91536dbe861
2025-08-11 07:07:28,054 - DEBUG - VM ctest-vm2-test-47530109 launched on Node an-jenkins-deploy-platform-ansible-os-3798-1
2025-08-11 07:07:28,130 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/f76d6946-24ce-4c98-89b0-d91536dbe861
2025-08-11 07:07:28,142 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/98968cef-985a-433e-b949-bd37398da882
2025-08-11 07:07:31,358 - 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-11 07:07:31,359 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-47530109 failed!
2025-08-11 07:07:31,373 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-01823040:ctest-vn1-vdns-56172117 is 10.10.10.1 and allocation pool is NOT set
2025-08-11 07:07:35,459 - 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-11 07:07:35,460 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-47530109 failed!
2025-08-11 07:07:35,482 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-01823040:ctest-vn1-vdns-56172117 is 10.10.10.1 and allocation pool is NOT set
2025-08-11 07:07:39,554 - 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-08-11 07:07:39,555 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-47530109 failed!
2025-08-11 07:07:39,569 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-01823040:ctest-vn1-vdns-56172117 is 10.10.10.1 and allocation pool is NOT set
2025-08-11 07:07:43,652 - 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-11 07:07:43,652 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-47530109 failed!
2025-08-11 07:07:43,666 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-01823040:ctest-vn1-vdns-56172117 is 10.10.10.1 and allocation pool is NOT set
2025-08-11 07:07:47,748 - 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-11 07:07:47,749 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-47530109 failed!
2025-08-11 07:07:47,762 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-01823040:ctest-vn1-vdns-56172117 is 10.10.10.1 and allocation pool is NOT set
2025-08-11 07:07:51,848 - 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-11 07:07:51,848 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-47530109 failed!
2025-08-11 07:07:51,866 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-01823040:ctest-vn1-vdns-56172117 is 10.10.10.1 and allocation pool is NOT set
2025-08-11 07:07:55,938 - 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-11 07:07:55,938 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-47530109 failed!
2025-08-11 07:07:55,952 - DEBUG - Gateway for vn default-domain:ctest-TestvDNSBasic0-01823040:ctest-vn1-vdns-56172117 is 10.10.10.1 and allocation pool is NOT set
2025-08-11 07:08:00,029 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=8.59 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1018ms\r\nrtt min/avg/max/mdev = 8.588/8.588/8.588/0.000 ms')
2025-08-11 07:08:00,030 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-vm2-test-47530109 passed
2025-08-11 07:08:00,149 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-08-11 07:08:00,149 - DEBUG - Waiting to SSH to VM ctest-vm2-test-47530109, IP 10.10.10.4, Port 22
2025-08-11 07:08:00,216 - 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-11 07:08:00,301 - DEBUG - VM ctest-vm2-test-47530109 is NOT ready for SSH connections, VM status: ACTIVE
2025-08-11 07:08:05,302 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-08-11 07:08:05,302 - DEBUG - Waiting to SSH to VM ctest-vm2-test-47530109, IP 10.10.10.4, Port 22
2025-08-11 07:08:05,360 - 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-11 07:08:05,448 - DEBUG - VM ctest-vm2-test-47530109 is NOT ready for SSH connections, VM status: ACTIVE
2025-08-11 07:08:10,450 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-08-11 07:08:10,450 - DEBUG - Waiting to SSH to VM ctest-vm2-test-47530109, IP 10.10.10.4, Port 22
2025-08-11 07:08:10,506 - 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-11 07:08:10,621 - DEBUG - VM ctest-vm2-test-47530109 is NOT ready for SSH connections, VM status: ACTIVE
2025-08-11 07:08:15,622 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-08-11 07:08:15,622 - DEBUG - Waiting to SSH to VM ctest-vm2-test-47530109, IP 10.10.10.4, Port 22
2025-08-11 07:08:15,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-08-11 07:08:15,775 - DEBUG - VM ctest-vm2-test-47530109 is NOT ready for SSH connections, VM status: ACTIVE
2025-08-11 07:08:20,775 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-08-11 07:08:20,775 - DEBUG - Waiting to SSH to VM ctest-vm2-test-47530109, IP 10.10.10.4, Port 22
2025-08-11 07:08:20,931 - DEBUG - VM ctest-vm2-test-47530109 is ready for SSH connections
2025-08-11 07:08:20,931 - DEBUG - Running remote_cmd, Cmd : ifconfig | grep 10.10.10.4, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.49, gateway password: c0ntrail123
2025-08-11 07:08:20,932 - DEBUG - ifconfig | grep 10.10.10.4
2025-08-11 07:08:38,855 - DEBUG - inet addr:10.10.10.4 Bcast:10.10.10.255 Mask:255.255.255.0
2025-08-11 07:08:38,856 - DEBUG - Running remote_cmd, Cmd : python -c 'import socket;socket.getaddrinfo("ctest-vm2-test-47530109", None, socket.AF_INET6)', host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.49, gateway password: c0ntrail123
2025-08-11 07:08:38,856 - DEBUG - python -c 'import socket;socket.getaddrinfo("ctest-vm2-test-47530109", None, socket.AF_INET6)'
2025-08-11 07:08:41,301 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 ctest-vm2-test-47530109, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.49, gateway password: c0ntrail123
2025-08-11 07:08:41,301 - DEBUG - ping -s 56 -c 3 -W 1 ctest-vm2-test-47530109
2025-08-11 07:08:44,211 - DEBUG - PING ctest-vm2-test-47530109.juniper.net (10.10.10.4) 56(84) bytes of data.
64 bytes from ctest-vm2-test-47530109.juniper.net (10.10.10.4): icmp_req=1 ttl=64 time=2.57 ms
64 bytes from ctest-vm2-test-47530109.juniper.net (10.10.10.4): icmp_req=2 ttl=64 time=0.228 ms
64 bytes from ctest-vm2-test-47530109.juniper.net (10.10.10.4): icmp_req=3 ttl=64 time=0.199 ms
--- ctest-vm2-test-47530109.juniper.net ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2004ms
rtt min/avg/max/mdev = 0.199/0.999/2.570/1.110 ms
2025-08-11 07:08:44,211 - INFO - Ping to IP ctest-vm2-test-47530109 from VM ctest-vm2-test-47530109 passed
2025-08-11 07:08:44,234 - DEBUG - Requesting: http://10.0.0.254:8092/Snh_PageReq?x=AllEntries%20VdnsServersReq
2025-08-11 07:08:44,241 - DEBUG - Requesting: http://10.0.0.254:8092/Snh_PageReq?x=default-domain:ctest-vdns1-02130635@0%20AllEntriesVdnsRecordsReq
2025-08-11 07:08:44,250 - DEBUG - Requesting: http://10.0.0.254:8092/Snh_PageReq?x=AllEntries%20VdnsServersReq
2025-08-11 07:08:44,262 - DEBUG - Requesting: http://10.0.0.254:8092/Snh_PageReq?x=default-domain:ctest-vdns1-02130635@0%20AllEntriesVdnsRecordsReq
2025-08-11 07:08:44,269 - DEBUG - Requesting: http://10.0.0.254:8092/Snh_PageReq?x=AllEntries%20VdnsServersReq
2025-08-11 07:08:44,275 - DEBUG - Requesting: http://10.0.0.254:8092/Snh_PageReq?x=default-domain:ctest-vdns1-02130635@0%20AllEntriesVdnsRecordsReq
2025-08-11 07:08:44,281 - DEBUG - Actual record data {'name': 'default-domain:ctest-vdns1-02130635:1:ctest-vm2-test-47530109:10.10.10.4', 'rec_name': 'ctest-vm2-test-47530109', '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-3798-1/dns'} ,
Expected record data {'rec_data': '10.10.10.4', 'rec_type': 'A', 'rec_class': 'IN', 'rec_ttl': '100', 'rec_name': 'ctest-vm2-test-47530109.juniper.net', 'installed': 'yes', 'zone': 'juniper.net'}
2025-08-11 07:08:44,281 - DEBUG - Actual record data {'name': 'default-domain:ctest-vdns1-02130635:12:4.10.10.10.in-addr.arpa:ctest-vm2-test-47530109', 'rec_name': '4.10.10.10.in-addr.arpa', 'rec_type': 'PTR', 'rec_class': 'IN', 'rec_data': 'ctest-vm2-test-47530109', 'rec_ttl': '100', 'source': 'Agent', 'installed': 'true', 'flags': '3', 'rec_source_name': 'an-jenkins-deploy-platform-ansible-os-3798-1/dns'} ,
Expected record data {'rec_data': 'ctest-vm2-test-47530109.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-11 07:08:44,281 - DEBUG - Running remote_cmd, Cmd : python -c 'import socket;socket.getaddrinfo("ctest-vm2-test-47530109", None, socket.AF_INET6)', host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.57, gateway password: c0ntrail123
2025-08-11 07:08:44,281 - DEBUG - python -c 'import socket;socket.getaddrinfo("ctest-vm2-test-47530109", None, socket.AF_INET6)'
2025-08-11 07:08:45,349 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 ctest-vm2-test-47530109, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.57, gateway password: c0ntrail123
2025-08-11 07:08:45,349 - DEBUG - ping -s 56 -c 3 -W 1 ctest-vm2-test-47530109
2025-08-11 07:08:47,848 - DEBUG - PING ctest-vm2-test-47530109.juniper.net (10.10.10.4) 56(84) bytes of data.
64 bytes from ctest-vm2-test-47530109.juniper.net (10.10.10.4): icmp_req=1 ttl=64 time=9.22 ms
64 bytes from ctest-vm2-test-47530109.juniper.net (10.10.10.4): icmp_req=2 ttl=64 time=1.07 ms
64 bytes from ctest-vm2-test-47530109.juniper.net (10.10.10.4): icmp_req=3 ttl=64 time=1.20 ms
--- ctest-vm2-test-47530109.juniper.net ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2004ms
rtt min/avg/max/mdev = 1.071/3.834/9.226/3.813 ms
2025-08-11 07:08:47,848 - INFO - Ping to IP ctest-vm2-test-47530109 from VM ctest-vm1-test-27487426 passed
2025-08-11 07:08:47,848 - INFO - Try deleting the VDNS entry ctest-vdns1-02130635 with back ref of ipam.
2025-08-11 07:08:47,904 - DEBUG - Delete when resource still referred: ['http://10.0.0.50:8082/network-ipam/0acbacc2-2ee3-46fb-917f-1e1ee73bf241']
2025-08-11 07:08:47,905 - INFO - Deletion of the vdns entry failed with back ref of ipam as expected
2025-08-11 07:08:47,905 - INFO - Add CNAME VDNS record for ctest-vm1-test-27487426 and verify we able to ping by alias name
2025-08-11 07:08:47,953 - DEBUG - Creating VDNS record data : test-rec
2025-08-11 07:08:48,069 - INFO - In verify_on_setup
2025-08-11 07:08:48,165 - DEBUG - VDNS record: ['default-domain', 'ctest-vdns1-02130635', 'test-rec'] created succesfully
2025-08-11 07:08:48,165 - INFO - Verify VDNS record is shown in the API server
2025-08-11 07:08:48,165 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-11 07:08:48,172 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0566ad86-51fd-4570-9dcc-fd1153322979
2025-08-11 07:08:48,221 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-DNS/68c8ada2-b024-4f19-8b4b-97a0656a536e
2025-08-11 07:08:48,232 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-DNS-record/a8dbfa52-f293-459a-be06-9177862c53a4
2025-08-11 07:08:48,239 - INFO - Verify VDNS record is shown in the control node
2025-08-11 07:08:48,260 - 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.57, gateway password: c0ntrail123
2025-08-11 07:08:48,260 - DEBUG - python -c 'import socket;socket.getaddrinfo("vm1-test-alias", None, socket.AF_INET6)'
2025-08-11 07:08:49,310 - 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.57, gateway password: c0ntrail123
2025-08-11 07:08:49,310 - DEBUG - ping -s 56 -c 3 -W 1 vm1-test-alias
2025-08-11 07:08:49,772 - DEBUG - ping: unknown host vm1-test-alias
2025-08-11 07:08:49,772 - WARNING - Ping to IP vm1-test-alias from VM ctest-vm1-test-27487426 failed
2025-08-11 07:08:50,772 - 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.57, gateway password: c0ntrail123
2025-08-11 07:08:50,772 - DEBUG - python -c 'import socket;socket.getaddrinfo("vm1-test-alias", None, socket.AF_INET6)'
2025-08-11 07:08:51,782 - 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.57, gateway password: c0ntrail123
2025-08-11 07:08:51,782 - DEBUG - ping -s 56 -c 3 -W 1 vm1-test-alias
2025-08-11 07:08:54,291 - DEBUG - PING ctest-vm1-test-27487426.juniper.net (10.10.10.3) 56(84) bytes of data.
64 bytes from ctest-vm1-test-27487426.juniper.net (10.10.10.3): icmp_req=1 ttl=64 time=0.197 ms
64 bytes from ctest-vm1-test-27487426.juniper.net (10.10.10.3): icmp_req=2 ttl=64 time=0.190 ms
64 bytes from ctest-vm1-test-27487426.juniper.net (10.10.10.3): icmp_req=3 ttl=64 time=0.200 ms
--- ctest-vm1-test-27487426.juniper.net ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 0.190/0.195/0.200/0.016 ms
2025-08-11 07:08:54,291 - INFO - Ping to IP vm1-test-alias from VM ctest-vm1-test-27487426 passed
2025-08-11 07:08:54,291 - DEBUG - Deleting VDNS record data: test-rec
2025-08-11 07:08:54,369 - INFO - VDNS record info: default-domain:ctest-vdns1-02130635:test-rec deleted successfully.
2025-08-11 07:08:54,369 - INFO - Deleting VM ctest-vm2-test-47530109
2025-08-11 07:08:54,445 - INFO - Deleting VM ctest-vm1-test-27487426
2025-08-11 07:08:54,521 - INFO - Deleting VN ctest-vn1-vdns-56172117
2025-08-11 07:08:54,564 - DEBUG - VN 564dd5e1-15ac-463a-ab29-ec4345baff62 still in use: Unable to complete operation on network 564dd5e1-15ac-463a-ab29-ec4345baff62. There are one or more ports still in use on the network.
Neutron server returns request_ids: ['req-6df03232-5a82-4b45-9acb-bfe709d80e4b']
2025-08-11 07:08:54,564 - WARNING - Deleting VN ctest-vn1-vdns-56172117 failed..Will retry
2025-08-11 07:08:56,736 - DEBUG - Response for deleting network ()
2025-08-11 07:08:56,805 - DEBUG - Deleting VDNS Entry: ctest-vdns1-02130635
2025-08-11 07:08:56,892 - INFO - VDNS info: ['default-domain', 'ctest-vdns1-02130635'] deleted successfully.
2025-08-11 07:08:56,893 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-11 07:08:56,900 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0566ad86-51fd-4570-9dcc-fd1153322979
2025-08-11 07:08:56,917 - DEBUG - VDNS information not found in API server
2025-08-11 07:08:56,917 - INFO - VDNS information ctest-vdns1-02130635 removed from the API Server
2025-08-11 07:08:56,924 - INFO - VDNS information ctest-vdns1-02130635 removed in the Control node
2025-08-11 07:08:56,924 - DEBUG - Skipping the deletion of Project ['default-domain', 'ctest-TestvDNSBasic0-01823040']
2025-08-11 07:08:58,186 - DEBUG - No XMPP flaps were noticed during the test
2025-08-11 07:08:58,186 - INFO - END TEST : test_vdns_ping_same_vn : PASSED[0:02:57]
2025-08-11 07:08:58,186 - INFO - --------------------------------------------------------------------------------
2025-08-11 07:08:58,913 - INFO - Deleted project: ctest-TestvDNSBasic0-01823040, ID : 95e58d3a-e1b7-4653-a839-f70a25120770