2024-11-09 22:15:01,286 - INFO - Domain Default found not creating 2024-11-09 22:15:01,481 - INFO - Project ctest-TestRoutersBasic-33657332 not found, creating it 2024-11-09 22:15:01,993 - INFO - Created Project:ctest-TestRoutersBasic-33657332, ID : a27cab27-4175-4864-b6c0-630542b31ffc 2024-11-09 22:15:03,557 - INFO - ================================================================================ 2024-11-09 22:15:03,557 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-09 22:15:03,557 - 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 2024-11-09 22:15:03,818 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.6': '0'}} with 2024-11-09 22:15:03,819 - INFO - Initial checks done. Running the testcase now 2024-11-09 22:15:03,819 - INFO - 2024-11-09 22:15:04,654 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-33657332 2024-11-09 22:15:04,756 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-33657332 2024-11-09 22:15:05,087 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-33657332', 'default']} 2024-11-09 22:15:05,428 - DEBUG - Response for create_network : {'network': {'id': 'ed61a025-8961-4429-8425-bbdddd73eba3', 'name': 'ctest-vn-32679587', 'tenant_id': 'a27cab2741754864b6c0630542b31ffc', 'project_id': 'a27cab2741754864b6c0630542b31ffc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-33657332', 'ctest-vn-32679587'], 'port_security_enabled': True, 'description': ''}} 2024-11-09 22:15:05,658 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b0df6c7d-d897-4943-aa00-8fe353cc294e', 'name': '', 'tenant_id': 'a27cab2741754864b6c0630542b31ffc', 'network_id': 'ed61a025-8961-4429-8425-bbdddd73eba3', 'ip_version': 4, 'cidr': '26.231.162.128/26', 'allocation_pools': [{'start': '26.231.162.130', 'end': '26.231.162.190'}], 'gateway_ip': '26.231.162.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26.231.162.130', 'tags': [], 'project_id': 'a27cab2741754864b6c0630542b31ffc'}} 2024-11-09 22:15:05,682 - INFO - Created VN ctest-vn-32679587 2024-11-09 22:15:05,740 - DEBUG - VN ctest-vn-32679587 UUID is ed61a025-8961-4429-8425-bbdddd73eba3 2024-11-09 22:15:06,118 - DEBUG - Response for create_network : {'network': {'id': '1a04716d-8821-4f38-ab42-7a3770ca5cea', 'name': 'ctest-ext_vn-23135249', 'tenant_id': 'a27cab2741754864b6c0630542b31ffc', 'project_id': 'a27cab2741754864b6c0630542b31ffc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-33657332', 'ctest-ext_vn-23135249'], 'port_security_enabled': True, 'description': ''}} 2024-11-09 22:15:06,306 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ec11bd9e-92cb-481b-8a18-d66ae6efea30', 'name': '', 'tenant_id': 'a27cab2741754864b6c0630542b31ffc', 'network_id': '1a04716d-8821-4f38-ab42-7a3770ca5cea', 'ip_version': 4, 'cidr': '124.39.112.64/26', 'allocation_pools': [{'start': '124.39.112.66', 'end': '124.39.112.126'}], 'gateway_ip': '124.39.112.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.39.112.66', 'tags': [], 'project_id': 'a27cab2741754864b6c0630542b31ffc'}} 2024-11-09 22:15:06,327 - INFO - Created VN ctest-ext_vn-23135249 2024-11-09 22:15:06,384 - DEBUG - VN ctest-ext_vn-23135249 UUID is 1a04716d-8821-4f38-ab42-7a3770ca5cea 2024-11-09 22:15:06,570 - DEBUG - Services list from nova: [, , ] 2024-11-09 22:15:07,688 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2246-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2246-1) 2024-11-09 22:15:09,066 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2246-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2246-1) 2024-11-09 22:15:09,153 - INFO - Setting gateway for router 36766001-bba7-46b9-8d29-2393fd174639 to network 1a04716d-8821-4f38-ab42-7a3770ca5cea 2024-11-09 22:15:09,231 - INFO - Adding interface with subnet_id b0df6c7d-d897-4943-aa00-8fe353cc294e, port_id None to router 36766001-bba7-46b9-8d29-2393fd174639 2024-11-09 22:15:09,702 - INFO - Waiting for VM ctest-TestRoutersBasic-33657332-98951178 to be up.. 2024-11-09 22:15:09,849 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-09 22:15:14,949 - DEBUG - VM is in ACTIVE state now 2024-11-09 22:15:14,949 - INFO - VM name : ctest-TestRoutersBasic-33657332-98951178 2024-11-09 22:15:15,045 - DEBUG - VM ctest-TestRoutersBasic-33657332-98951178 ID is 3ff2f0fe-94a2-44a4-bc4c-f2f75232ed30 2024-11-09 22:15:15,066 - DEBUG - VM ctest-TestRoutersBasic-33657332-98951178 launched on Node cn-jenkins-deploy-platform-ansible-os-2246-1 2024-11-09 22:15:15,158 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/3ff2f0fe-94a2-44a4-bc4c-f2f75232ed30 2024-11-09 22:15:15,458 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/3ff2f0fe-94a2-44a4-bc4c-f2f75232ed30 2024-11-09 22:15:15,497 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/9f3fa62c-2ab4-45e5-b199-ed97bc870ef0 2024-11-09 22:15:18,758 - 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 1011ms') 2024-11-09 22:15:18,758 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-33657332-98951178 failed! 2024-11-09 22:15:18,824 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-33657332:ctest-vn-32679587 is 26.231.162.129 and allocation pool is NOT set 2024-11-09 22:15:20,887 - 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.18 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.489 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 = 0.489/1.834/3.180/1.345 ms') 2024-11-09 22:15:20,887 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-33657332-98951178 passed 2024-11-09 22:15:21,044 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-09 22:15:21,044 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-33657332-98951178, IP 26.231.162.131, Port 22 2024-11-09 22:15:21,210 - DEBUG - VM ctest-TestRoutersBasic-33657332-98951178 is ready for SSH connections 2024-11-09 22:15:21,210 - INFO - Waiting for VM ctest-TestRoutersBasic-33657332-57487270 to be up.. 2024-11-09 22:15:21,301 - DEBUG - VM is in ACTIVE state now 2024-11-09 22:15:21,301 - INFO - VM name : ctest-TestRoutersBasic-33657332-57487270 2024-11-09 22:15:21,384 - DEBUG - VM ctest-TestRoutersBasic-33657332-57487270 ID is b73da49a-2542-499c-a018-1a1c7b11697b 2024-11-09 22:15:21,384 - DEBUG - VM ctest-TestRoutersBasic-33657332-57487270 launched on Node cn-jenkins-deploy-platform-ansible-os-2246-1 2024-11-09 22:15:21,485 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/b73da49a-2542-499c-a018-1a1c7b11697b 2024-11-09 22:15:21,494 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/291769b2-c0f9-4fda-99a8-20281b204802 2024-11-09 22:15:22,741 - 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.95 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.516 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.516/1.735/2.954/1.219 ms') 2024-11-09 22:15:22,741 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-33657332-57487270 passed 2024-11-09 22:15:22,908 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-09 22:15:22,908 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-33657332-57487270, IP 124.39.112.67, Port 22 2024-11-09 22:15:23,064 - DEBUG - VM ctest-TestRoutersBasic-33657332-57487270 is ready for SSH connections 2024-11-09 22:15:23,064 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-09 22:15:23,064 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 124.39.112.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2024-11-09 22:15:23,064 - DEBUG - ping -s 56 -c 3 -W 1 124.39.112.67 2024-11-09 22:15:26,925 - DEBUG - PING 124.39.112.67 (124.39.112.67): 56 data bytes 64 bytes from 124.39.112.67: seq=0 ttl=62 time=5.869 ms 64 bytes from 124.39.112.67: seq=1 ttl=62 time=0.899 ms 64 bytes from 124.39.112.67: seq=2 ttl=62 time=0.878 ms --- 124.39.112.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.878/2.548/5.869 ms 2024-11-09 22:15:26,925 - INFO - Ping to IP 124.39.112.67 from VM ctest-TestRoutersBasic-33657332-98951178 passed 2024-11-09 22:15:26,925 - INFO - Deleting interface with subnet_id b0df6c7d-d897-4943-aa00-8fe353cc294e, port_id None from router 36766001-bba7-46b9-8d29-2393fd174639 2024-11-09 22:15:27,152 - INFO - Deleting VM ctest-TestRoutersBasic-33657332-57487270 2024-11-09 22:15:27,222 - INFO - Deleting VM ctest-TestRoutersBasic-33657332-98951178 2024-11-09 22:15:27,307 - INFO - Deleting VN ctest-ext_vn-23135249 2024-11-09 22:15:27,390 - DEBUG - VN 1a04716d-8821-4f38-ab42-7a3770ca5cea still in use: Unable to complete operation on network 1a04716d-8821-4f38-ab42-7a3770ca5cea. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-0ba319a6-85eb-4ad9-9860-0f3060db82a7'] 2024-11-09 22:15:27,390 - WARNING - Deleting VN ctest-ext_vn-23135249 failed..Will retry 2024-11-09 22:15:29,514 - DEBUG - Response for deleting network () 2024-11-09 22:15:29,514 - INFO - Deleting VN ctest-vn-32679587 2024-11-09 22:15:29,630 - DEBUG - Response for deleting network () 2024-11-09 22:15:29,889 - DEBUG - No XMPP flaps were noticed during the test 2024-11-09 22:15:29,889 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-11-09 22:15:29,889 - INFO - -------------------------------------------------------------------------------- 2024-11-09 22:15:30,590 - INFO - Deleted project: ctest-TestRoutersBasic-33657332, ID : a27cab27-4175-4864-b6c0-630542b31ffc