2025-06-24 19:31:19,969 - INFO - Domain Default found not creating 2025-06-24 19:31:20,113 - INFO - Project ctest-TestRoutersBasic-85823157 not found, creating it 2025-06-24 19:31:20,565 - INFO - Created Project:ctest-TestRoutersBasic-85823157, ID : 9cc2cfef-d7d6-4710-87ec-1183db9a8ff5 2025-06-24 19:31:22,119 - INFO - ================================================================================ 2025-06-24 19:31:22,119 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-06-24 19:31:22,120 - 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-06-24 19:31:22,384 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-06-24 19:31:22,384 - INFO - Initial checks done. Running the testcase now 2025-06-24 19:31:22,384 - INFO - 2025-06-24 19:31:23,176 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-85823157 2025-06-24 19:31:23,274 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-85823157 2025-06-24 19:31:23,597 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-85823157', 'default']} 2025-06-24 19:31:23,892 - DEBUG - Response for create_network : {'network': {'id': 'af653736-f5c9-4c99-a0b1-52a94dd09f68', 'name': 'ctest-vn-23158771', 'tenant_id': '9cc2cfefd7d6471087ec1183db9a8ff5', 'project_id': '9cc2cfefd7d6471087ec1183db9a8ff5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-85823157', 'ctest-vn-23158771'], 'port_security_enabled': True, 'description': ''}} 2025-06-24 19:31:24,034 - DEBUG - Response for create_subnet : {'subnet': {'id': '54aa8ece-1e86-414d-a93c-1dbf4236f46f', 'name': '', 'tenant_id': '9cc2cfefd7d6471087ec1183db9a8ff5', 'network_id': 'af653736-f5c9-4c99-a0b1-52a94dd09f68', 'ip_version': 4, 'cidr': '106.104.223.64/26', 'allocation_pools': [{'start': '106.104.223.66', 'end': '106.104.223.126'}], 'gateway_ip': '106.104.223.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '106.104.223.66', 'tags': [], 'project_id': '9cc2cfefd7d6471087ec1183db9a8ff5'}} 2025-06-24 19:31:24,052 - INFO - Created VN ctest-vn-23158771 2025-06-24 19:31:24,106 - DEBUG - VN ctest-vn-23158771 UUID is af653736-f5c9-4c99-a0b1-52a94dd09f68 2025-06-24 19:31:24,476 - DEBUG - Response for create_network : {'network': {'id': '911adda5-6218-47e1-a53d-e9e1e02ba9f7', 'name': 'ctest-ext_vn-76709054', 'tenant_id': '9cc2cfefd7d6471087ec1183db9a8ff5', 'project_id': '9cc2cfefd7d6471087ec1183db9a8ff5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-85823157', 'ctest-ext_vn-76709054'], 'port_security_enabled': True, 'description': ''}} 2025-06-24 19:31:24,677 - DEBUG - Response for create_subnet : {'subnet': {'id': '1a90f46d-57c5-431d-ad94-6de7ceb75453', 'name': '', 'tenant_id': '9cc2cfefd7d6471087ec1183db9a8ff5', 'network_id': '911adda5-6218-47e1-a53d-e9e1e02ba9f7', 'ip_version': 4, 'cidr': '173.176.53.128/26', 'allocation_pools': [{'start': '173.176.53.130', 'end': '173.176.53.190'}], 'gateway_ip': '173.176.53.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.176.53.130', 'tags': [], 'project_id': '9cc2cfefd7d6471087ec1183db9a8ff5'}} 2025-06-24 19:31:24,694 - INFO - Created VN ctest-ext_vn-76709054 2025-06-24 19:31:24,746 - DEBUG - VN ctest-ext_vn-76709054 UUID is 911adda5-6218-47e1-a53d-e9e1e02ba9f7 2025-06-24 19:31:24,954 - DEBUG - Services list from nova: [, , ] 2025-06-24 19:31:26,046 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3541-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3541-1) 2025-06-24 19:31:27,256 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3541-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3541-1) 2025-06-24 19:31:27,317 - INFO - Setting gateway for router 7512d41c-940d-4a45-8124-63a60b3899e2 to network 911adda5-6218-47e1-a53d-e9e1e02ba9f7 2025-06-24 19:31:27,385 - INFO - Adding interface with subnet_id 54aa8ece-1e86-414d-a93c-1dbf4236f46f, port_id None to router 7512d41c-940d-4a45-8124-63a60b3899e2 2025-06-24 19:31:27,936 - INFO - Waiting for VM ctest-TestRoutersBasic-85823157-83456594 to be up.. 2025-06-24 19:31:28,087 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-24 19:31:33,167 - DEBUG - VM is in ACTIVE state now 2025-06-24 19:31:33,167 - INFO - VM name : ctest-TestRoutersBasic-85823157-83456594 2025-06-24 19:31:33,240 - DEBUG - VM ctest-TestRoutersBasic-85823157-83456594 ID is 2b9fcbaf-e7d1-48f8-9233-da36c296ba0b 2025-06-24 19:31:33,258 - DEBUG - VM ctest-TestRoutersBasic-85823157-83456594 launched on Node cn-jenkins-deploy-platform-ansible-os-3541-1 2025-06-24 19:31:33,331 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/2b9fcbaf-e7d1-48f8-9233-da36c296ba0b 2025-06-24 19:31:33,687 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/2b9fcbaf-e7d1-48f8-9233-da36c296ba0b 2025-06-24 19:31:33,731 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/d9d2be92-3d96-4433-ac9e-0e78b40900fa 2025-06-24 19:31:36,991 - 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-06-24 19:31:36,991 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-85823157-83456594 failed! 2025-06-24 19:31:37,050 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-85823157:ctest-vn-23158771 is 106.104.223.65 and allocation pool is NOT set 2025-06-24 19:31:39,112 - 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=3.07 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.87 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.867/2.969/3.072/0.102 ms') 2025-06-24 19:31:39,112 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-85823157-83456594 passed 2025-06-24 19:31:39,266 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-24 19:31:39,266 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-85823157-83456594, IP 106.104.223.67, Port 22 2025-06-24 19:31:39,332 - 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-06-24 19:31:39,410 - DEBUG - VM ctest-TestRoutersBasic-85823157-83456594 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-24 19:31:44,411 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-24 19:31:44,411 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-85823157-83456594, IP 106.104.223.67, Port 22 2025-06-24 19:31:44,569 - DEBUG - VM ctest-TestRoutersBasic-85823157-83456594 is ready for SSH connections 2025-06-24 19:31:44,569 - INFO - Waiting for VM ctest-TestRoutersBasic-85823157-82841429 to be up.. 2025-06-24 19:31:44,645 - DEBUG - VM is in ACTIVE state now 2025-06-24 19:31:44,645 - INFO - VM name : ctest-TestRoutersBasic-85823157-82841429 2025-06-24 19:31:44,722 - DEBUG - VM ctest-TestRoutersBasic-85823157-82841429 ID is 618ac6f6-8d96-4b24-b1c6-ada9b5c1b151 2025-06-24 19:31:44,722 - DEBUG - VM ctest-TestRoutersBasic-85823157-82841429 launched on Node cn-jenkins-deploy-platform-ansible-os-3541-1 2025-06-24 19:31:44,796 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/618ac6f6-8d96-4b24-b1c6-ada9b5c1b151 2025-06-24 19:31:44,806 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/d3c6716e-631e-4bb9-a05e-4049a6d78304 2025-06-24 19:31:46,059 - 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.13 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.357 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.357/1.744/3.132/1.387 ms') 2025-06-24 19:31:46,059 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-85823157-82841429 passed 2025-06-24 19:31:46,214 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-24 19:31:46,214 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-85823157-82841429, IP 173.176.53.131, Port 22 2025-06-24 19:31:46,369 - DEBUG - VM ctest-TestRoutersBasic-85823157-82841429 is ready for SSH connections 2025-06-24 19:31:46,369 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-24 19:31:46,369 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 173.176.53.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-06-24 19:31:46,369 - DEBUG - ping -s 56 -c 3 -W 1 173.176.53.131 2025-06-24 19:31:50,083 - DEBUG - PING 173.176.53.131 (173.176.53.131): 56 data bytes 64 bytes from 173.176.53.131: seq=0 ttl=62 time=5.031 ms 64 bytes from 173.176.53.131: seq=1 ttl=62 time=0.871 ms 64 bytes from 173.176.53.131: seq=2 ttl=62 time=0.806 ms --- 173.176.53.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.806/2.236/5.031 ms 2025-06-24 19:31:50,083 - INFO - Ping to IP 173.176.53.131 from VM ctest-TestRoutersBasic-85823157-83456594 passed 2025-06-24 19:31:50,083 - INFO - Deleting interface with subnet_id 54aa8ece-1e86-414d-a93c-1dbf4236f46f, port_id None from router 7512d41c-940d-4a45-8124-63a60b3899e2 2025-06-24 19:31:50,455 - INFO - Deleting VM ctest-TestRoutersBasic-85823157-82841429 2025-06-24 19:31:50,530 - INFO - Deleting VM ctest-TestRoutersBasic-85823157-83456594 2025-06-24 19:31:50,608 - INFO - Deleting VN ctest-ext_vn-76709054 2025-06-24 19:31:50,683 - DEBUG - VN 911adda5-6218-47e1-a53d-e9e1e02ba9f7 still in use: Unable to complete operation on network 911adda5-6218-47e1-a53d-e9e1e02ba9f7. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-3e447a83-43dc-4f4c-9735-7fe86035359f'] 2025-06-24 19:31:50,683 - WARNING - Deleting VN ctest-ext_vn-76709054 failed..Will retry 2025-06-24 19:31:52,795 - DEBUG - Response for deleting network () 2025-06-24 19:31:52,795 - INFO - Deleting VN ctest-vn-23158771 2025-06-24 19:31:52,913 - DEBUG - Response for deleting network () 2025-06-24 19:31:53,171 - DEBUG - No XMPP flaps were noticed during the test 2025-06-24 19:31:53,171 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31] 2025-06-24 19:31:53,171 - INFO - -------------------------------------------------------------------------------- 2025-06-24 19:31:53,883 - INFO - Deleted project: ctest-TestRoutersBasic-85823157, ID : 9cc2cfef-d7d6-4710-87ec-1183db9a8ff5