2025-04-22 17:00:54,715 - INFO - Domain Default found not creating 2025-04-22 17:00:54,857 - INFO - Project ctest-TestRoutersBasic-61587344 not found, creating it 2025-04-22 17:00:55,323 - INFO - Created Project:ctest-TestRoutersBasic-61587344, ID : a8732fbd-a876-4fb6-a45f-74c60bb4c4d1 2025-04-22 17:00:56,858 - INFO - ================================================================================ 2025-04-22 17:00:56,859 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-04-22 17:00:56,859 - 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-04-22 17:00:57,124 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.17': '0'}} with 2025-04-22 17:00:57,124 - INFO - Initial checks done. Running the testcase now 2025-04-22 17:00:57,124 - INFO - 2025-04-22 17:00:57,911 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-61587344 2025-04-22 17:00:58,010 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-61587344 2025-04-22 17:00:58,341 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-61587344', 'default']} 2025-04-22 17:00:58,625 - DEBUG - Response for create_network : {'network': {'id': 'ffba2506-a65d-4e39-aed7-fd3292176067', 'name': 'ctest-vn-28750974', 'tenant_id': 'a8732fbda8764fb6a45f74c60bb4c4d1', 'project_id': 'a8732fbda8764fb6a45f74c60bb4c4d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-61587344', 'ctest-vn-28750974'], 'port_security_enabled': True, 'description': ''}} 2025-04-22 17:00:58,797 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a9553111-092f-4a68-8bed-f0697c63ee0f', 'name': '', 'tenant_id': 'a8732fbda8764fb6a45f74c60bb4c4d1', 'network_id': 'ffba2506-a65d-4e39-aed7-fd3292176067', 'ip_version': 4, 'cidr': '174.211.202.0/26', 'allocation_pools': [{'start': '174.211.202.2', 'end': '174.211.202.62'}], 'gateway_ip': '174.211.202.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '174.211.202.2', 'tags': [], 'project_id': 'a8732fbda8764fb6a45f74c60bb4c4d1'}} 2025-04-22 17:00:58,819 - INFO - Created VN ctest-vn-28750974 2025-04-22 17:00:58,877 - DEBUG - VN ctest-vn-28750974 UUID is ffba2506-a65d-4e39-aed7-fd3292176067 2025-04-22 17:00:59,201 - DEBUG - Response for create_network : {'network': {'id': '26ab03ca-9e75-4abc-a012-083f191c618c', 'name': 'ctest-ext_vn-01196262', 'tenant_id': 'a8732fbda8764fb6a45f74c60bb4c4d1', 'project_id': 'a8732fbda8764fb6a45f74c60bb4c4d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-61587344', 'ctest-ext_vn-01196262'], 'port_security_enabled': True, 'description': ''}} 2025-04-22 17:00:59,375 - DEBUG - Response for create_subnet : {'subnet': {'id': '6a0e0881-7a10-44bc-baf1-029e723a121e', 'name': '', 'tenant_id': 'a8732fbda8764fb6a45f74c60bb4c4d1', 'network_id': '26ab03ca-9e75-4abc-a012-083f191c618c', 'ip_version': 4, 'cidr': '8.67.102.128/26', 'allocation_pools': [{'start': '8.67.102.130', 'end': '8.67.102.190'}], 'gateway_ip': '8.67.102.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.67.102.130', 'tags': [], 'project_id': 'a8732fbda8764fb6a45f74c60bb4c4d1'}} 2025-04-22 17:00:59,393 - INFO - Created VN ctest-ext_vn-01196262 2025-04-22 17:00:59,445 - DEBUG - VN ctest-ext_vn-01196262 UUID is 26ab03ca-9e75-4abc-a012-083f191c618c 2025-04-22 17:00:59,620 - DEBUG - Services list from nova: [, , ] 2025-04-22 17:01:00,713 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3167-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3167-1) 2025-04-22 17:01:01,935 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3167-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3167-1) 2025-04-22 17:01:02,010 - INFO - Setting gateway for router a25dbd82-ac76-4361-b97e-70f141fd1cf4 to network 26ab03ca-9e75-4abc-a012-083f191c618c 2025-04-22 17:01:02,083 - INFO - Adding interface with subnet_id a9553111-092f-4a68-8bed-f0697c63ee0f, port_id None to router a25dbd82-ac76-4361-b97e-70f141fd1cf4 2025-04-22 17:01:02,528 - INFO - Waiting for VM ctest-TestRoutersBasic-61587344-56505439 to be up.. 2025-04-22 17:01:02,706 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-22 17:01:07,796 - DEBUG - VM is in ACTIVE state now 2025-04-22 17:01:07,796 - INFO - VM name : ctest-TestRoutersBasic-61587344-56505439 2025-04-22 17:01:07,882 - DEBUG - VM ctest-TestRoutersBasic-61587344-56505439 ID is 5f729e1b-0569-4225-b14c-835667cdcbd6 2025-04-22 17:01:07,905 - DEBUG - VM ctest-TestRoutersBasic-61587344-56505439 launched on Node cn-jenkins-deploy-platform-ansible-os-3167-1 2025-04-22 17:01:07,992 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/5f729e1b-0569-4225-b14c-835667cdcbd6 2025-04-22 17:01:08,325 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/5f729e1b-0569-4225-b14c-835667cdcbd6 2025-04-22 17:01:08,678 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/a6d8cc31-9753-41a1-855e-e02a47b25dd3 2025-04-22 17:01:11,919 - 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 1003ms') 2025-04-22 17:01:11,920 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-61587344-56505439 failed! 2025-04-22 17:01:11,973 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-61587344:ctest-vn-28750974 is 174.211.202.1 and allocation pool is NOT set 2025-04-22 17:01:14,037 - 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.20 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.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 = 2.172/4.188/6.204/2.016 ms') 2025-04-22 17:01:14,037 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-61587344-56505439 passed 2025-04-22 17:01:14,193 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-22 17:01:14,193 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-61587344-56505439, IP 174.211.202.3, Port 22 2025-04-22 17:01:14,260 - 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-04-22 17:01:14,340 - DEBUG - VM ctest-TestRoutersBasic-61587344-56505439 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-22 17:01:19,340 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-22 17:01:19,341 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-61587344-56505439, IP 174.211.202.3, Port 22 2025-04-22 17:01:19,501 - DEBUG - VM ctest-TestRoutersBasic-61587344-56505439 is ready for SSH connections 2025-04-22 17:01:19,501 - INFO - Waiting for VM ctest-TestRoutersBasic-61587344-72374813 to be up.. 2025-04-22 17:01:19,581 - DEBUG - VM is in ACTIVE state now 2025-04-22 17:01:19,582 - INFO - VM name : ctest-TestRoutersBasic-61587344-72374813 2025-04-22 17:01:19,661 - DEBUG - VM ctest-TestRoutersBasic-61587344-72374813 ID is db311662-2580-4774-a658-9c326e28e4f9 2025-04-22 17:01:19,661 - DEBUG - VM ctest-TestRoutersBasic-61587344-72374813 launched on Node cn-jenkins-deploy-platform-ansible-os-3167-1 2025-04-22 17:01:19,740 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/db311662-2580-4774-a658-9c326e28e4f9 2025-04-22 17:01:19,749 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/256f722c-c716-4302-9eed-c020e0c84312 2025-04-22 17:01:21,000 - 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=3.01 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.343 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.343/1.678/3.013/1.335 ms') 2025-04-22 17:01:21,000 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-61587344-72374813 passed 2025-04-22 17:01:21,153 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-22 17:01:21,153 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-61587344-72374813, IP 8.67.102.131, Port 22 2025-04-22 17:01:21,309 - DEBUG - VM ctest-TestRoutersBasic-61587344-72374813 is ready for SSH connections 2025-04-22 17:01:21,309 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-22 17:01:21,309 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 8.67.102.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2025-04-22 17:01:21,310 - DEBUG - ping -s 56 -c 3 -W 1 8.67.102.131 2025-04-22 17:01:25,011 - DEBUG - PING 8.67.102.131 (8.67.102.131): 56 data bytes 64 bytes from 8.67.102.131: seq=0 ttl=62 time=5.432 ms 64 bytes from 8.67.102.131: seq=1 ttl=62 time=0.789 ms 64 bytes from 8.67.102.131: seq=2 ttl=62 time=1.140 ms --- 8.67.102.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.789/2.453/5.432 ms 2025-04-22 17:01:25,011 - INFO - Ping to IP 8.67.102.131 from VM ctest-TestRoutersBasic-61587344-56505439 passed 2025-04-22 17:01:25,011 - INFO - Deleting interface with subnet_id a9553111-092f-4a68-8bed-f0697c63ee0f, port_id None from router a25dbd82-ac76-4361-b97e-70f141fd1cf4 2025-04-22 17:01:25,237 - INFO - Deleting VM ctest-TestRoutersBasic-61587344-72374813 2025-04-22 17:01:25,311 - INFO - Deleting VM ctest-TestRoutersBasic-61587344-56505439 2025-04-22 17:01:25,396 - INFO - Deleting VN ctest-ext_vn-01196262 2025-04-22 17:01:25,458 - DEBUG - VN 26ab03ca-9e75-4abc-a012-083f191c618c still in use: Unable to complete operation on network 26ab03ca-9e75-4abc-a012-083f191c618c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-4c31be28-743c-439a-9e29-976bcc6ef482'] 2025-04-22 17:01:25,459 - WARNING - Deleting VN ctest-ext_vn-01196262 failed..Will retry 2025-04-22 17:01:27,579 - DEBUG - Response for deleting network () 2025-04-22 17:01:27,579 - INFO - Deleting VN ctest-vn-28750974 2025-04-22 17:01:27,701 - DEBUG - Response for deleting network () 2025-04-22 17:01:27,959 - DEBUG - No XMPP flaps were noticed during the test
2025-04-22 17:01:27,959 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31]
2025-04-22 17:01:27,959 - INFO - -------------------------------------------------------------------------------- 2025-04-22 17:01:28,768 - INFO - Deleted project: ctest-TestRoutersBasic-61587344, ID : a8732fbd-a876-4fb6-a45f-74c60bb4c4d1