2025-09-08 02:31:05,709 - INFO - Domain Default found not creating 2025-09-08 02:31:05,878 - INFO - Project ctest-TestRoutersBasic-30651301 not found, creating it 2025-09-08 02:31:06,478 - INFO - Created Project:ctest-TestRoutersBasic-30651301, ID : df9ffc19-305c-40cf-9e69-7a6f32fb2631 2025-09-08 02:31:08,187 - INFO - ================================================================================ 2025-09-08 02:31:08,187 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-09-08 02:31:08,187 - INFO - TEST DESCRIPTION : Create an external network, a router set router-gateway to external network launch a private network and attach it to router validate left vm pinging right vm through Snat 2025-09-08 02:31:09,576 - 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 02:31:09,576 - INFO - Initial checks done. Running the testcase now 2025-09-08 02:31:09,576 - INFO - 2025-09-08 02:31:10,415 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-30651301 2025-09-08 02:31:10,474 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-30651301 2025-09-08 02:31:10,795 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-30651301', 'default']} 2025-09-08 02:31:11,254 - DEBUG - Response for create_network : {'network': {'id': '6a2d83cc-73eb-4c84-bfc0-d9a290989027', 'name': 'ctest-vn-64778201', 'tenant_id': 'df9ffc19305c40cf9e697a6f32fb2631', 'project_id': 'df9ffc19305c40cf9e697a6f32fb2631', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-30651301', 'ctest-vn-64778201'], 'port_security_enabled': True, 'description': ''}} 2025-09-08 02:31:11,535 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fa31d438-9cc4-4068-af33-4861f6c6e1cc', 'name': '', 'tenant_id': 'df9ffc19305c40cf9e697a6f32fb2631', 'network_id': '6a2d83cc-73eb-4c84-bfc0-d9a290989027', 'ip_version': 4, 'cidr': '126.30.115.128/26', 'allocation_pools': [{'start': '126.30.115.130', 'end': '126.30.115.190'}], 'gateway_ip': '126.30.115.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '126.30.115.130', 'tags': [], 'project_id': 'df9ffc19305c40cf9e697a6f32fb2631'}} 2025-09-08 02:31:11,562 - INFO - Created VN ctest-vn-64778201 2025-09-08 02:31:11,577 - DEBUG - VN ctest-vn-64778201 UUID is 6a2d83cc-73eb-4c84-bfc0-d9a290989027 2025-09-08 02:31:12,024 - DEBUG - Response for create_network : {'network': {'id': '45eb3a5e-5ff5-49f6-b3cf-c08d37c66f06', 'name': 'ctest-ext_vn-75259010', 'tenant_id': 'df9ffc19305c40cf9e697a6f32fb2631', 'project_id': 'df9ffc19305c40cf9e697a6f32fb2631', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-30651301', 'ctest-ext_vn-75259010'], 'port_security_enabled': True, 'description': ''}} 2025-09-08 02:31:12,268 - DEBUG - Response for create_subnet : {'subnet': {'id': '03f47b89-b867-466a-b3f2-0e0c08d239a3', 'name': '', 'tenant_id': 'df9ffc19305c40cf9e697a6f32fb2631', 'network_id': '45eb3a5e-5ff5-49f6-b3cf-c08d37c66f06', 'ip_version': 4, 'cidr': '148.2.235.0/26', 'allocation_pools': [{'start': '148.2.235.2', 'end': '148.2.235.62'}], 'gateway_ip': '148.2.235.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '148.2.235.2', 'tags': [], 'project_id': 'df9ffc19305c40cf9e697a6f32fb2631'}} 2025-09-08 02:31:12,300 - INFO - Created VN ctest-ext_vn-75259010 2025-09-08 02:31:12,315 - DEBUG - VN ctest-ext_vn-75259010 UUID is 45eb3a5e-5ff5-49f6-b3cf-c08d37c66f06 2025-09-08 02:31:12,483 - DEBUG - Services list from nova: [, , , ] 2025-09-08 02:31:14,140 - 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 02:31:15,777 - 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 02:31:15,887 - INFO - Setting gateway for router ff64b5ef-5727-468f-8bf5-cfe935f10e4e to network 45eb3a5e-5ff5-49f6-b3cf-c08d37c66f06 2025-09-08 02:31:15,974 - INFO - Adding interface with subnet_id fa31d438-9cc4-4068-af33-4861f6c6e1cc, port_id None to router ff64b5ef-5727-468f-8bf5-cfe935f10e4e 2025-09-08 02:31:16,606 - INFO - Waiting for VM ctest-TestRoutersBasic-30651301-61628293 to be up.. 2025-09-08 02:31:16,765 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-08 02:31:21,864 - DEBUG - VM is in ACTIVE state now 2025-09-08 02:31:21,864 - INFO - VM name : ctest-TestRoutersBasic-30651301-61628293 2025-09-08 02:31:21,948 - DEBUG - VM ctest-TestRoutersBasic-30651301-61628293 ID is 99ada338-446f-4507-9042-c37cc738f046 2025-09-08 02:31:21,982 - DEBUG - VM ctest-TestRoutersBasic-30651301-61628293 launched on Node an-jenkins-deploy-platform-ansible-os-4041-1 2025-09-08 02:31:22,071 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/99ada338-446f-4507-9042-c37cc738f046 2025-09-08 02:31:22,425 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/99ada338-446f-4507-9042-c37cc738f046 2025-09-08 02:31:22,460 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/7cfb2477-6481-4601-913f-0032c420de23 2025-09-08 02:31:25,671 - 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 02:31:25,671 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-30651301-61628293 failed! 2025-09-08 02:31:25,688 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-30651301:ctest-vn-64778201 is 126.30.115.129 and allocation pool is NOT set 2025-09-08 02:31:27,775 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=7.35 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=8.09 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 = 7.352/7.720/8.089/0.368 ms') 2025-09-08 02:31:27,775 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-30651301-61628293 passed 2025-09-08 02:31:27,850 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-08 02:31:27,850 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-30651301-61628293, IP 126.30.115.131, Port 22 2025-09-08 02:31:28,058 - DEBUG - VM ctest-TestRoutersBasic-30651301-61628293 is ready for SSH connections 2025-09-08 02:31:28,058 - INFO - Waiting for VM ctest-TestRoutersBasic-30651301-91224689 to be up.. 2025-09-08 02:31:28,150 - DEBUG - VM is in ACTIVE state now 2025-09-08 02:31:28,150 - INFO - VM name : ctest-TestRoutersBasic-30651301-91224689 2025-09-08 02:31:28,245 - DEBUG - VM ctest-TestRoutersBasic-30651301-91224689 ID is 856832e3-2e6f-4cdf-a462-b47e7d8577c9 2025-09-08 02:31:28,245 - DEBUG - VM ctest-TestRoutersBasic-30651301-91224689 launched on Node an-jenkins-deploy-platform-ansible-os-4041-2 2025-09-08 02:31:28,332 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/856832e3-2e6f-4cdf-a462-b47e7d8577c9 2025-09-08 02:31:28,343 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/499f7a1b-ce4e-4434-80b3-a8567c8fa77c 2025-09-08 02:31:29,566 - 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=4.67 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.87 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.871/3.272/4.673/1.401 ms') 2025-09-08 02:31:29,567 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-30651301-91224689 passed 2025-09-08 02:31:29,641 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-08 02:31:29,641 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-30651301-91224689, IP 148.2.235.3, Port 22 2025-09-08 02:31:29,729 - DEBUG - Error on ssh to cirros@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 02:31:29,832 - DEBUG - VM ctest-TestRoutersBasic-30651301-91224689 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-08 02:31:34,833 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-08 02:31:34,833 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-30651301-91224689, IP 148.2.235.3, Port 22 2025-09-08 02:31:35,033 - DEBUG - VM ctest-TestRoutersBasic-30651301-91224689 is ready for SSH connections 2025-09-08 02:31:35,033 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-08 02:31:35,033 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 148.2.235.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-09-08 02:31:35,034 - DEBUG - ping -s 56 -c 3 -W 1 148.2.235.3 2025-09-08 02:31:39,191 - DEBUG - PING 148.2.235.3 (148.2.235.3): 56 data bytes 64 bytes from 148.2.235.3: seq=0 ttl=62 time=10.400 ms 64 bytes from 148.2.235.3: seq=1 ttl=62 time=2.428 ms 64 bytes from 148.2.235.3: seq=2 ttl=62 time=2.529 ms --- 148.2.235.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 2.428/5.119/10.400 ms 2025-09-08 02:31:39,191 - INFO - Ping to IP 148.2.235.3 from VM ctest-TestRoutersBasic-30651301-61628293 passed 2025-09-08 02:31:39,191 - INFO - Deleting interface with subnet_id fa31d438-9cc4-4068-af33-4861f6c6e1cc, port_id None from router ff64b5ef-5727-468f-8bf5-cfe935f10e4e 2025-09-08 02:31:39,643 - INFO - Deleting VM ctest-TestRoutersBasic-30651301-91224689 2025-09-08 02:31:39,755 - INFO - Deleting VM ctest-TestRoutersBasic-30651301-61628293 2025-09-08 02:31:39,901 - INFO - Deleting VN ctest-ext_vn-75259010 2025-09-08 02:31:39,990 - DEBUG - VN 45eb3a5e-5ff5-49f6-b3cf-c08d37c66f06 still in use: Unable to complete operation on network 45eb3a5e-5ff5-49f6-b3cf-c08d37c66f06. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-396d1459-1f89-4201-adea-397a2ec910ae'] 2025-09-08 02:31:39,990 - WARNING - Deleting VN ctest-ext_vn-75259010 failed..Will retry 2025-09-08 02:31:42,176 - DEBUG - Response for deleting network () 2025-09-08 02:31:42,177 - INFO - Deleting VN ctest-vn-64778201 2025-09-08 02:31:42,359 - DEBUG - Response for deleting network () 2025-09-08 02:31:43,786 - DEBUG - No XMPP flaps were noticed during the test 2025-09-08 02:31:43,786 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:35] 2025-09-08 02:31:43,786 - INFO - -------------------------------------------------------------------------------- 2025-09-08 02:31:44,589 - INFO - Deleted project: ctest-TestRoutersBasic-30651301, ID : df9ffc19-305c-40cf-9e69-7a6f32fb2631