2024-09-18 06:47:46,183 - INFO - Domain Default found not creating 2024-09-18 06:47:46,377 - INFO - Project ctest-TestRoutersBasic-97911353 not found, creating it 2024-09-18 06:47:46,896 - INFO - Created Project:ctest-TestRoutersBasic-97911353, ID : 2b5b7161-9e75-4984-bd81-926fae83692c 2024-09-18 06:47:48,504 - INFO - ================================================================================ 2024-09-18 06:47:48,504 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-18 06:47:48,504 - 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-18 06:47:48,770 - DEBUG - Nothing to compare xmpp stats {'10.0.0.54': {'10.20.0.27': '0'}} with 2024-09-18 06:47:48,770 - INFO - Initial checks done. Running the testcase now 2024-09-18 06:47:48,770 - INFO - 2024-09-18 06:47:49,513 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-97911353 2024-09-18 06:47:49,613 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-97911353 2024-09-18 06:47:49,953 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-97911353', 'default']} 2024-09-18 06:47:50,286 - DEBUG - Response for create_network : {'network': {'id': '1873ab82-1019-4484-ba43-137e5e3e99c7', 'name': 'ctest-vn-81762629', 'tenant_id': '2b5b71619e754984bd81926fae83692c', 'project_id': '2b5b71619e754984bd81926fae83692c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-97911353', 'ctest-vn-81762629'], 'port_security_enabled': True, 'description': ''}} 2024-09-18 06:47:50,538 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e74db2bf-2050-4169-a7e3-4da86fc39b9d', 'name': '', 'tenant_id': '2b5b71619e754984bd81926fae83692c', 'network_id': '1873ab82-1019-4484-ba43-137e5e3e99c7', 'ip_version': 4, 'cidr': '210.111.80.192/26', 'allocation_pools': [{'start': '210.111.80.194', 'end': '210.111.80.254'}], 'gateway_ip': '210.111.80.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '210.111.80.194', 'tags': [], 'project_id': '2b5b71619e754984bd81926fae83692c'}} 2024-09-18 06:47:50,559 - INFO - Created VN ctest-vn-81762629 2024-09-18 06:47:50,617 - DEBUG - VN ctest-vn-81762629 UUID is 1873ab82-1019-4484-ba43-137e5e3e99c7 2024-09-18 06:47:50,983 - DEBUG - Response for create_network : {'network': {'id': 'd37c02fd-d01c-438a-8289-6f65f062ca42', 'name': 'ctest-ext_vn-40623194', 'tenant_id': '2b5b71619e754984bd81926fae83692c', 'project_id': '2b5b71619e754984bd81926fae83692c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-97911353', 'ctest-ext_vn-40623194'], 'port_security_enabled': True, 'description': ''}} 2024-09-18 06:47:51,143 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e17fce43-b02a-4118-b27b-f3d9cce1d32e', 'name': '', 'tenant_id': '2b5b71619e754984bd81926fae83692c', 'network_id': 'd37c02fd-d01c-438a-8289-6f65f062ca42', 'ip_version': 4, 'cidr': '110.34.200.128/26', 'allocation_pools': [{'start': '110.34.200.130', 'end': '110.34.200.190'}], 'gateway_ip': '110.34.200.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '110.34.200.130', 'tags': [], 'project_id': '2b5b71619e754984bd81926fae83692c'}} 2024-09-18 06:47:51,164 - INFO - Created VN ctest-ext_vn-40623194 2024-09-18 06:47:51,221 - DEBUG - VN ctest-ext_vn-40623194 UUID is d37c02fd-d01c-438a-8289-6f65f062ca42 2024-09-18 06:47:51,403 - DEBUG - Services list from nova: [, , ] 2024-09-18 06:47:52,444 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1985-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1985-1) 2024-09-18 06:47:53,659 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1985-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1985-1) 2024-09-18 06:47:53,729 - INFO - Setting gateway for router 338cf9ba-9986-4113-b908-d5ea59a1d9b0 to network d37c02fd-d01c-438a-8289-6f65f062ca42 2024-09-18 06:47:53,794 - INFO - Adding interface with subnet_id e74db2bf-2050-4169-a7e3-4da86fc39b9d, port_id None to router 338cf9ba-9986-4113-b908-d5ea59a1d9b0 2024-09-18 06:47:54,283 - INFO - Waiting for VM ctest-TestRoutersBasic-97911353-59593860 to be up.. 2024-09-18 06:47:54,562 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-18 06:47:59,656 - DEBUG - VM is in ACTIVE state now 2024-09-18 06:47:59,656 - INFO - VM name : ctest-TestRoutersBasic-97911353-59593860 2024-09-18 06:47:59,743 - DEBUG - VM ctest-TestRoutersBasic-97911353-59593860 ID is 2d193335-f326-45e3-b8fa-b51001a12994 2024-09-18 06:47:59,762 - DEBUG - VM ctest-TestRoutersBasic-97911353-59593860 launched on Node cn-jenkins-deploy-platform-ansible-os-1985-1 2024-09-18 06:47:59,840 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-machine/2d193335-f326-45e3-b8fa-b51001a12994 2024-09-18 06:48:00,144 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-machine/2d193335-f326-45e3-b8fa-b51001a12994 2024-09-18 06:48:00,183 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-machine-interface/286f12a2-8581-4a33-b54f-e702b0ed449e 2024-09-18 06:48:03,467 - 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 1023ms') 2024-09-18 06:48:03,468 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-97911353-59593860 failed! 2024-09-18 06:48:03,533 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-97911353:ctest-vn-81762629 is 210.111.80.193 and allocation pool is NOT set 2024-09-18 06:48:05,597 - 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.39 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.507 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.507/1.948/3.389/1.441 ms') 2024-09-18 06:48:05,597 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-97911353-59593860 passed 2024-09-18 06:48:05,765 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-18 06:48:05,765 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-97911353-59593860, IP 210.111.80.195, Port 22 2024-09-18 06:48:05,928 - DEBUG - VM ctest-TestRoutersBasic-97911353-59593860 is ready for SSH connections 2024-09-18 06:48:05,929 - INFO - Waiting for VM ctest-TestRoutersBasic-97911353-84761054 to be up.. 2024-09-18 06:48:06,028 - DEBUG - VM is in ACTIVE state now 2024-09-18 06:48:06,028 - INFO - VM name : ctest-TestRoutersBasic-97911353-84761054 2024-09-18 06:48:06,126 - DEBUG - VM ctest-TestRoutersBasic-97911353-84761054 ID is 36edcb2d-0847-417b-991c-d300b1a698c1 2024-09-18 06:48:06,127 - DEBUG - VM ctest-TestRoutersBasic-97911353-84761054 launched on Node cn-jenkins-deploy-platform-ansible-os-1985-1 2024-09-18 06:48:06,219 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-machine/36edcb2d-0847-417b-991c-d300b1a698c1 2024-09-18 06:48:06,237 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-machine-interface/c2deba93-366d-45f3-b748-1b35e2bda2fa 2024-09-18 06:48:07,499 - 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.81 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.371 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.371/1.590/2.809/1.219 ms') 2024-09-18 06:48:07,499 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-97911353-84761054 passed 2024-09-18 06:48:07,661 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-18 06:48:07,661 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-97911353-84761054, IP 110.34.200.131, Port 22 2024-09-18 06:48:07,816 - DEBUG - VM ctest-TestRoutersBasic-97911353-84761054 is ready for SSH connections 2024-09-18 06:48:07,816 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-18 06:48:07,816 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 110.34.200.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.54, gateway password: c0ntrail123 2024-09-18 06:48:07,817 - DEBUG - ping -s 56 -c 3 -W 1 110.34.200.131 2024-09-18 06:48:11,827 - DEBUG - PING 110.34.200.131 (110.34.200.131): 56 data bytes 64 bytes from 110.34.200.131: seq=0 ttl=62 time=7.766 ms 64 bytes from 110.34.200.131: seq=1 ttl=62 time=1.055 ms 64 bytes from 110.34.200.131: seq=2 ttl=62 time=0.861 ms --- 110.34.200.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.861/3.227/7.766 ms 2024-09-18 06:48:11,827 - INFO - Ping to IP 110.34.200.131 from VM ctest-TestRoutersBasic-97911353-59593860 passed 2024-09-18 06:48:11,828 - INFO - Deleting interface with subnet_id e74db2bf-2050-4169-a7e3-4da86fc39b9d, port_id None from router 338cf9ba-9986-4113-b908-d5ea59a1d9b0 2024-09-18 06:48:12,045 - INFO - Deleting VM ctest-TestRoutersBasic-97911353-84761054 2024-09-18 06:48:12,110 - INFO - Deleting VM ctest-TestRoutersBasic-97911353-59593860 2024-09-18 06:48:12,194 - INFO - Deleting VN ctest-ext_vn-40623194 2024-09-18 06:48:12,272 - DEBUG - VN d37c02fd-d01c-438a-8289-6f65f062ca42 still in use: Unable to complete operation on network d37c02fd-d01c-438a-8289-6f65f062ca42. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-149fe59c-b786-4b41-9222-836b7c40d757'] 2024-09-18 06:48:12,272 - WARNING - Deleting VN ctest-ext_vn-40623194 failed..Will retry 2024-09-18 06:48:14,404 - DEBUG - Response for deleting network () 2024-09-18 06:48:14,405 - INFO - Deleting VN ctest-vn-81762629 2024-09-18 06:48:14,518 - DEBUG - Response for deleting network () 2024-09-18 06:48:14,785 - DEBUG - No XMPP flaps were noticed during the test 2024-09-18 06:48:14,785 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-09-18 06:48:14,785 - INFO - -------------------------------------------------------------------------------- 2024-09-18 06:48:15,489 - INFO - Deleted project: ctest-TestRoutersBasic-97911353, ID : 2b5b7161-9e75-4984-bd81-926fae83692c