2025-07-28 02:20:05,078 - INFO - Domain Default found not creating 2025-07-28 02:20:05,228 - INFO - Project ctest-TestRoutersBasic-31935929 not found, creating it 2025-07-28 02:20:05,750 - INFO - Created Project:ctest-TestRoutersBasic-31935929, ID : 74880e63-9bbb-455e-acbd-ccb30876d701 2025-07-28 02:20:07,199 - INFO - ================================================================================ 2025-07-28 02:20:07,199 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-07-28 02:20:07,199 - 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-07-28 02:20:07,453 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-07-28 02:20:07,453 - INFO - Initial checks done. Running the testcase now 2025-07-28 02:20:07,453 - INFO - 2025-07-28 02:20:08,168 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-31935929 2025-07-28 02:20:08,263 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-31935929 2025-07-28 02:20:08,599 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-31935929', 'default']} 2025-07-28 02:20:08,905 - DEBUG - Response for create_network : {'network': {'id': 'c231876b-f15c-4817-97f7-2bb7840f3646', 'name': 'ctest-vn-98271044', 'tenant_id': '74880e639bbb455eacbdccb30876d701', 'project_id': '74880e639bbb455eacbdccb30876d701', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-31935929', 'ctest-vn-98271044'], 'port_security_enabled': True, 'description': ''}} 2025-07-28 02:20:09,063 - DEBUG - Response for create_subnet : {'subnet': {'id': '3030a59e-c803-4953-94cf-69a74782cfbb', 'name': '', 'tenant_id': '74880e639bbb455eacbdccb30876d701', 'network_id': 'c231876b-f15c-4817-97f7-2bb7840f3646', 'ip_version': 4, 'cidr': '1.178.12.64/26', 'allocation_pools': [{'start': '1.178.12.66', 'end': '1.178.12.126'}], 'gateway_ip': '1.178.12.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '1.178.12.66', 'tags': [], 'project_id': '74880e639bbb455eacbdccb30876d701'}} 2025-07-28 02:20:09,082 - INFO - Created VN ctest-vn-98271044 2025-07-28 02:20:09,139 - DEBUG - VN ctest-vn-98271044 UUID is c231876b-f15c-4817-97f7-2bb7840f3646 2025-07-28 02:20:09,585 - DEBUG - Response for create_network : {'network': {'id': '82620af9-f66f-48d3-b20a-73d957b4870c', 'name': 'ctest-ext_vn-86669976', 'tenant_id': '74880e639bbb455eacbdccb30876d701', 'project_id': '74880e639bbb455eacbdccb30876d701', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-31935929', 'ctest-ext_vn-86669976'], 'port_security_enabled': True, 'description': ''}} 2025-07-28 02:20:09,811 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e825998f-5c31-4849-8e3f-dd9ca07b8e42', 'name': '', 'tenant_id': '74880e639bbb455eacbdccb30876d701', 'network_id': '82620af9-f66f-48d3-b20a-73d957b4870c', 'ip_version': 4, 'cidr': '51.46.21.64/26', 'allocation_pools': [{'start': '51.46.21.66', 'end': '51.46.21.126'}], 'gateway_ip': '51.46.21.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '51.46.21.66', 'tags': [], 'project_id': '74880e639bbb455eacbdccb30876d701'}} 2025-07-28 02:20:09,832 - INFO - Created VN ctest-ext_vn-86669976 2025-07-28 02:20:09,887 - DEBUG - VN ctest-ext_vn-86669976 UUID is 82620af9-f66f-48d3-b20a-73d957b4870c 2025-07-28 02:20:10,071 - DEBUG - Services list from nova: [, , ] 2025-07-28 02:20:11,098 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3716-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3716-1) 2025-07-28 02:20:12,231 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3716-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3716-1) 2025-07-28 02:20:12,320 - INFO - Setting gateway for router bdc78fb5-2a6c-4838-9a85-c5c978eb5c8d to network 82620af9-f66f-48d3-b20a-73d957b4870c 2025-07-28 02:20:12,374 - INFO - Adding interface with subnet_id 3030a59e-c803-4953-94cf-69a74782cfbb, port_id None to router bdc78fb5-2a6c-4838-9a85-c5c978eb5c8d 2025-07-28 02:20:12,693 - INFO - Waiting for VM ctest-TestRoutersBasic-31935929-39674821 to be up.. 2025-07-28 02:20:12,804 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-28 02:20:17,880 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-28 02:20:22,959 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-28 02:20:28,040 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-28 02:20:33,124 - DEBUG - VM is in ACTIVE state now 2025-07-28 02:20:33,124 - INFO - VM name : ctest-TestRoutersBasic-31935929-39674821 2025-07-28 02:20:33,200 - DEBUG - VM ctest-TestRoutersBasic-31935929-39674821 ID is 914eb0fc-c0e8-47c8-a66d-13a8c0a09bc5 2025-07-28 02:20:33,218 - DEBUG - VM ctest-TestRoutersBasic-31935929-39674821 launched on Node cn-jenkins-deploy-platform-ansible-os-3716-1 2025-07-28 02:20:33,293 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/914eb0fc-c0e8-47c8-a66d-13a8c0a09bc5 2025-07-28 02:20:33,591 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/914eb0fc-c0e8-47c8-a66d-13a8c0a09bc5 2025-07-28 02:20:33,623 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/98b496a1-b813-41d7-9a95-51a17a145f0f 2025-07-28 02:20:36,876 - 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 1002ms') 2025-07-28 02:20:36,877 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-31935929-39674821 failed! 2025-07-28 02:20:36,931 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-31935929:ctest-vn-98271044 is 1.178.12.65 and allocation pool is NOT set 2025-07-28 02:20:38,989 - 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=11.8 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.17 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.169/6.480/11.792/5.311 ms') 2025-07-28 02:20:38,989 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-31935929-39674821 passed 2025-07-28 02:20:39,139 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-28 02:20:39,139 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-31935929-39674821, IP 1.178.12.67, Port 22 2025-07-28 02:20:39,204 - 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-07-28 02:20:39,290 - DEBUG - VM ctest-TestRoutersBasic-31935929-39674821 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-28 02:20:44,291 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-28 02:20:44,291 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-31935929-39674821, IP 1.178.12.67, Port 22 2025-07-28 02:20:44,446 - DEBUG - VM ctest-TestRoutersBasic-31935929-39674821 is ready for SSH connections 2025-07-28 02:20:44,446 - INFO - Waiting for VM ctest-TestRoutersBasic-31935929-04669917 to be up.. 2025-07-28 02:20:44,521 - DEBUG - VM is in ACTIVE state now 2025-07-28 02:20:44,521 - INFO - VM name : ctest-TestRoutersBasic-31935929-04669917 2025-07-28 02:20:44,603 - DEBUG - VM ctest-TestRoutersBasic-31935929-04669917 ID is 57eb321d-b15b-449b-8189-d9e5ad630f9c 2025-07-28 02:20:44,603 - DEBUG - VM ctest-TestRoutersBasic-31935929-04669917 launched on Node cn-jenkins-deploy-platform-ansible-os-3716-1 2025-07-28 02:20:44,674 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/57eb321d-b15b-449b-8189-d9e5ad630f9c 2025-07-28 02:20:44,684 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/76303a5c-59e8-4a34-97d2-6685d5b4f32d 2025-07-28 02:20:45,939 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=2.80 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.428 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.428/1.612/2.796/1.184 ms') 2025-07-28 02:20:45,939 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-31935929-04669917 passed 2025-07-28 02:20:46,091 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-28 02:20:46,091 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-31935929-04669917, IP 51.46.21.67, Port 22 2025-07-28 02:20:46,250 - DEBUG - VM ctest-TestRoutersBasic-31935929-04669917 is ready for SSH connections 2025-07-28 02:20:46,250 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-28 02:20:46,250 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 51.46.21.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-07-28 02:20:46,250 - DEBUG - ping -s 56 -c 3 -W 1 51.46.21.67 2025-07-28 02:20:49,975 - DEBUG - PING 51.46.21.67 (51.46.21.67): 56 data bytes 64 bytes from 51.46.21.67: seq=0 ttl=62 time=5.491 ms 64 bytes from 51.46.21.67: seq=1 ttl=62 time=1.355 ms 64 bytes from 51.46.21.67: seq=2 ttl=62 time=1.084 ms --- 51.46.21.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.084/2.643/5.491 ms 2025-07-28 02:20:49,975 - INFO - Ping to IP 51.46.21.67 from VM ctest-TestRoutersBasic-31935929-39674821 passed 2025-07-28 02:20:49,975 - INFO - Deleting interface with subnet_id 3030a59e-c803-4953-94cf-69a74782cfbb, port_id None from router bdc78fb5-2a6c-4838-9a85-c5c978eb5c8d 2025-07-28 02:20:50,296 - INFO - Deleting VM ctest-TestRoutersBasic-31935929-04669917 2025-07-28 02:20:50,666 - INFO - Deleting VM ctest-TestRoutersBasic-31935929-39674821 2025-07-28 02:20:50,757 - INFO - Deleting VN ctest-ext_vn-86669976 2025-07-28 02:20:50,845 - DEBUG - VN 82620af9-f66f-48d3-b20a-73d957b4870c still in use: Unable to complete operation on network 82620af9-f66f-48d3-b20a-73d957b4870c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d0b6f90b-726e-4dfc-9a51-d63eccc2ca8f'] 2025-07-28 02:20:50,845 - WARNING - Deleting VN ctest-ext_vn-86669976 failed..Will retry 2025-07-28 02:20:52,977 - DEBUG - Response for deleting network () 2025-07-28 02:20:52,978 - INFO - Deleting VN ctest-vn-98271044 2025-07-28 02:20:53,110 - DEBUG - Response for deleting network () 2025-07-28 02:20:53,378 - DEBUG - No XMPP flaps were noticed during the test 2025-07-28 02:20:53,379 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:46] 2025-07-28 02:20:53,379 - INFO - -------------------------------------------------------------------------------- 2025-07-28 02:20:54,099 - INFO - Deleted project: ctest-TestRoutersBasic-31935929, ID : 74880e63-9bbb-455e-acbd-ccb30876d701