2024-09-11 14:34:58,782 - INFO - Domain Default found not creating 2024-09-11 14:34:58,938 - INFO - Project ctest-TestRoutersBasic-48060916 not found, creating it 2024-09-11 14:34:59,420 - INFO - Created Project:ctest-TestRoutersBasic-48060916, ID : a21cb2d4-d900-4317-8f9f-cc5c16a859cc 2024-09-11 14:35:00,997 - INFO - ================================================================================ 2024-09-11 14:35:00,997 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-11 14:35:00,997 - 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-09-11 14:35:01,254 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.6': '0'}} with 2024-09-11 14:35:01,254 - INFO - Initial checks done. Running the testcase now 2024-09-11 14:35:01,254 - INFO - 2024-09-11 14:35:01,974 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-48060916 2024-09-11 14:35:02,071 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-48060916 2024-09-11 14:35:02,410 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-48060916', 'default']} 2024-09-11 14:35:02,726 - DEBUG - Response for create_network : {'network': {'id': '24ac8eea-ad1d-4184-b36d-4e8ff718530d', 'name': 'ctest-vn-26027373', 'tenant_id': 'a21cb2d4d90043178f9fcc5c16a859cc', 'project_id': 'a21cb2d4d90043178f9fcc5c16a859cc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-48060916', 'ctest-vn-26027373'], 'port_security_enabled': True, 'description': ''}} 2024-09-11 14:35:02,929 - DEBUG - Response for create_subnet : {'subnet': {'id': '27f4c3c9-2537-4d49-9801-91cffbba7053', 'name': '', 'tenant_id': 'a21cb2d4d90043178f9fcc5c16a859cc', 'network_id': '24ac8eea-ad1d-4184-b36d-4e8ff718530d', 'ip_version': 4, 'cidr': '210.110.53.128/26', 'allocation_pools': [{'start': '210.110.53.130', 'end': '210.110.53.190'}], 'gateway_ip': '210.110.53.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '210.110.53.130', 'tags': [], 'project_id': 'a21cb2d4d90043178f9fcc5c16a859cc'}} 2024-09-11 14:35:02,950 - INFO - Created VN ctest-vn-26027373 2024-09-11 14:35:03,003 - DEBUG - VN ctest-vn-26027373 UUID is 24ac8eea-ad1d-4184-b36d-4e8ff718530d 2024-09-11 14:35:03,329 - DEBUG - Response for create_network : {'network': {'id': 'c8a74742-1d5a-4180-864a-9e0e7fe1fcbf', 'name': 'ctest-ext_vn-79129826', 'tenant_id': 'a21cb2d4d90043178f9fcc5c16a859cc', 'project_id': 'a21cb2d4d90043178f9fcc5c16a859cc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-48060916', 'ctest-ext_vn-79129826'], 'port_security_enabled': True, 'description': ''}} 2024-09-11 14:35:03,531 - DEBUG - Response for create_subnet : {'subnet': {'id': '495b2d39-f98f-49e7-8bfb-97e6d2e99d6a', 'name': '', 'tenant_id': 'a21cb2d4d90043178f9fcc5c16a859cc', 'network_id': 'c8a74742-1d5a-4180-864a-9e0e7fe1fcbf', 'ip_version': 4, 'cidr': '11.133.246.128/26', 'allocation_pools': [{'start': '11.133.246.130', 'end': '11.133.246.190'}], 'gateway_ip': '11.133.246.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.133.246.130', 'tags': [], 'project_id': 'a21cb2d4d90043178f9fcc5c16a859cc'}} 2024-09-11 14:35:03,552 - INFO - Created VN ctest-ext_vn-79129826 2024-09-11 14:35:03,603 - DEBUG - VN ctest-ext_vn-79129826 UUID is c8a74742-1d5a-4180-864a-9e0e7fe1fcbf 2024-09-11 14:35:03,777 - DEBUG - Services list from nova: [, , ] 2024-09-11 14:35:04,862 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1894-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1894-1) 2024-09-11 14:35:06,017 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1894-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1894-1) 2024-09-11 14:35:06,094 - INFO - Setting gateway for router 5a52c0e3-4ddf-4789-b5ae-dadd54bc2cee to network c8a74742-1d5a-4180-864a-9e0e7fe1fcbf 2024-09-11 14:35:06,179 - INFO - Adding interface with subnet_id 27f4c3c9-2537-4d49-9801-91cffbba7053, port_id None to router 5a52c0e3-4ddf-4789-b5ae-dadd54bc2cee 2024-09-11 14:35:06,590 - INFO - Waiting for VM ctest-TestRoutersBasic-48060916-54096638 to be up.. 2024-09-11 14:35:06,760 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-11 14:35:11,840 - DEBUG - VM is in ACTIVE state now 2024-09-11 14:35:11,840 - INFO - VM name : ctest-TestRoutersBasic-48060916-54096638 2024-09-11 14:35:11,921 - DEBUG - VM ctest-TestRoutersBasic-48060916-54096638 ID is cd65e7ed-fa07-444b-8b3e-a5b3c394c7e3 2024-09-11 14:35:11,942 - DEBUG - VM ctest-TestRoutersBasic-48060916-54096638 launched on Node cn-jenkins-deploy-platform-ansible-os-1894-1 2024-09-11 14:35:12,027 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/cd65e7ed-fa07-444b-8b3e-a5b3c394c7e3 2024-09-11 14:35:12,324 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/cd65e7ed-fa07-444b-8b3e-a5b3c394c7e3 2024-09-11 14:35:12,365 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/aea041db-7e51-4612-938b-c9d42235b056 2024-09-11 14:35:15,610 - 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-09-11 14:35:15,610 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-48060916-54096638 failed! 2024-09-11 14:35:15,663 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-48060916:ctest-vn-26027373 is 210.110.53.129 and allocation pool is NOT set 2024-09-11 14:35:17,726 - 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.33 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.348 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.348/1.837/3.327/1.489 ms') 2024-09-11 14:35:17,726 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-48060916-54096638 passed 2024-09-11 14:35:17,875 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 14:35:17,875 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-48060916-54096638, IP 210.110.53.131, Port 22 2024-09-11 14:35:18,030 - DEBUG - VM ctest-TestRoutersBasic-48060916-54096638 is ready for SSH connections 2024-09-11 14:35:18,030 - INFO - Waiting for VM ctest-TestRoutersBasic-48060916-07885354 to be up.. 2024-09-11 14:35:18,113 - DEBUG - VM is in ACTIVE state now 2024-09-11 14:35:18,113 - INFO - VM name : ctest-TestRoutersBasic-48060916-07885354 2024-09-11 14:35:18,193 - DEBUG - VM ctest-TestRoutersBasic-48060916-07885354 ID is d6672e6c-fb55-4e52-9839-ad6a1bf5879e 2024-09-11 14:35:18,193 - DEBUG - VM ctest-TestRoutersBasic-48060916-07885354 launched on Node cn-jenkins-deploy-platform-ansible-os-1894-1 2024-09-11 14:35:18,269 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/d6672e6c-fb55-4e52-9839-ad6a1bf5879e 2024-09-11 14:35:18,281 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/bd010eac-da59-4460-bfb7-36162bb9be08 2024-09-11 14:35:19,529 - 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.03 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.526 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.526/1.777/3.028/1.251 ms') 2024-09-11 14:35:19,529 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-48060916-07885354 passed 2024-09-11 14:35:19,683 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 14:35:19,683 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-48060916-07885354, IP 11.133.246.131, Port 22 2024-09-11 14:35:19,838 - DEBUG - VM ctest-TestRoutersBasic-48060916-07885354 is ready for SSH connections 2024-09-11 14:35:19,838 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 14:35:19,838 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 11.133.246.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2024-09-11 14:35:19,838 - DEBUG - ping -s 56 -c 3 -W 1 11.133.246.131 2024-09-11 14:35:23,868 - DEBUG - PING 11.133.246.131 (11.133.246.131): 56 data bytes 64 bytes from 11.133.246.131: seq=0 ttl=62 time=5.954 ms 64 bytes from 11.133.246.131: seq=1 ttl=62 time=1.006 ms 64 bytes from 11.133.246.131: seq=2 ttl=62 time=0.733 ms --- 11.133.246.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.733/2.564/5.954 ms 2024-09-11 14:35:23,868 - INFO - Ping to IP 11.133.246.131 from VM ctest-TestRoutersBasic-48060916-54096638 passed 2024-09-11 14:35:23,868 - INFO - Deleting interface with subnet_id 27f4c3c9-2537-4d49-9801-91cffbba7053, port_id None from router 5a52c0e3-4ddf-4789-b5ae-dadd54bc2cee 2024-09-11 14:35:24,068 - INFO - Deleting VM ctest-TestRoutersBasic-48060916-07885354 2024-09-11 14:35:24,133 - INFO - Deleting VM ctest-TestRoutersBasic-48060916-54096638 2024-09-11 14:35:24,207 - INFO - Deleting VN ctest-ext_vn-79129826 2024-09-11 14:35:24,277 - DEBUG - VN c8a74742-1d5a-4180-864a-9e0e7fe1fcbf still in use: Unable to complete operation on network c8a74742-1d5a-4180-864a-9e0e7fe1fcbf. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-8bef6a60-bf14-4613-8223-72a0a4dd7b74'] 2024-09-11 14:35:24,277 - WARNING - Deleting VN ctest-ext_vn-79129826 failed..Will retry 2024-09-11 14:35:26,386 - DEBUG - Response for deleting network () 2024-09-11 14:35:26,386 - INFO - Deleting VN ctest-vn-26027373 2024-09-11 14:35:26,492 - DEBUG - Response for deleting network () 2024-09-11 14:35:26,748 - DEBUG - No XMPP flaps were noticed during the test 2024-09-11 14:35:26,748 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-09-11 14:35:26,748 - INFO - -------------------------------------------------------------------------------- 2024-09-11 14:35:27,428 - INFO - Deleted project: ctest-TestRoutersBasic-48060916, ID : a21cb2d4-d900-4317-8f9f-cc5c16a859cc