2024-08-26 16:25:30,374 - INFO - Domain Default found not creating 2024-08-26 16:25:30,548 - INFO - Project ctest-TestRoutersBasic-32900166 not found, creating it 2024-08-26 16:25:31,039 - INFO - Created Project:ctest-TestRoutersBasic-32900166, ID : 3da16db1-6c36-4cca-aa7d-53fe8bc578a4 2024-08-26 16:25:32,799 - INFO - ================================================================================ 2024-08-26 16:25:32,799 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-26 16:25:32,799 - 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-08-26 16:25:33,055 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.5': '0'}} with 2024-08-26 16:25:33,056 - INFO - Initial checks done. Running the testcase now 2024-08-26 16:25:33,056 - INFO - 2024-08-26 16:25:33,876 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-32900166 2024-08-26 16:25:33,977 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-32900166 2024-08-26 16:25:34,300 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-32900166', 'default']} 2024-08-26 16:25:34,609 - DEBUG - Response for create_network : {'network': {'id': 'f6333bb5-2e65-4de0-a344-8b127f7f3d32', 'name': 'ctest-vn-87858658', 'tenant_id': '3da16db16c364ccaaa7d53fe8bc578a4', 'project_id': '3da16db16c364ccaaa7d53fe8bc578a4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-32900166', 'ctest-vn-87858658'], 'port_security_enabled': True, 'description': ''}} 2024-08-26 16:25:34,775 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a0ff9aa9-b04e-4623-98f1-257a65bc5717', 'name': '', 'tenant_id': '3da16db16c364ccaaa7d53fe8bc578a4', 'network_id': 'f6333bb5-2e65-4de0-a344-8b127f7f3d32', 'ip_version': 4, 'cidr': '150.192.194.192/26', 'allocation_pools': [{'start': '150.192.194.194', 'end': '150.192.194.254'}], 'gateway_ip': '150.192.194.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '150.192.194.194', 'tags': [], 'project_id': '3da16db16c364ccaaa7d53fe8bc578a4'}} 2024-08-26 16:25:34,795 - INFO - Created VN ctest-vn-87858658 2024-08-26 16:25:34,849 - DEBUG - VN ctest-vn-87858658 UUID is f6333bb5-2e65-4de0-a344-8b127f7f3d32 2024-08-26 16:25:35,178 - DEBUG - Response for create_network : {'network': {'id': '4e90fe50-0302-44ab-91fb-96f574ac5119', 'name': 'ctest-ext_vn-90327741', 'tenant_id': '3da16db16c364ccaaa7d53fe8bc578a4', 'project_id': '3da16db16c364ccaaa7d53fe8bc578a4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-32900166', 'ctest-ext_vn-90327741'], 'port_security_enabled': True, 'description': ''}} 2024-08-26 16:25:35,385 - DEBUG - Response for create_subnet : {'subnet': {'id': '676261f0-d389-402e-9913-b889bfa1aae2', 'name': '', 'tenant_id': '3da16db16c364ccaaa7d53fe8bc578a4', 'network_id': '4e90fe50-0302-44ab-91fb-96f574ac5119', 'ip_version': 4, 'cidr': '13.22.197.64/26', 'allocation_pools': [{'start': '13.22.197.66', 'end': '13.22.197.126'}], 'gateway_ip': '13.22.197.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.22.197.66', 'tags': [], 'project_id': '3da16db16c364ccaaa7d53fe8bc578a4'}} 2024-08-26 16:25:35,407 - INFO - Created VN ctest-ext_vn-90327741 2024-08-26 16:25:35,457 - DEBUG - VN ctest-ext_vn-90327741 UUID is 4e90fe50-0302-44ab-91fb-96f574ac5119 2024-08-26 16:25:35,638 - DEBUG - Services list from nova: [, , ] 2024-08-26 16:25:36,777 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1761-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1761-1) 2024-08-26 16:25:38,038 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1761-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1761-1) 2024-08-26 16:25:38,123 - INFO - Setting gateway for router 7d0d7b20-5d72-4386-8348-954f5f6c9ff2 to network 4e90fe50-0302-44ab-91fb-96f574ac5119 2024-08-26 16:25:38,209 - INFO - Adding interface with subnet_id a0ff9aa9-b04e-4623-98f1-257a65bc5717, port_id None to router 7d0d7b20-5d72-4386-8348-954f5f6c9ff2 2024-08-26 16:25:38,709 - INFO - Waiting for VM ctest-TestRoutersBasic-32900166-32890068 to be up.. 2024-08-26 16:25:38,900 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-26 16:25:44,027 - DEBUG - VM is in ACTIVE state now 2024-08-26 16:25:44,027 - INFO - VM name : ctest-TestRoutersBasic-32900166-32890068 2024-08-26 16:25:44,111 - DEBUG - VM ctest-TestRoutersBasic-32900166-32890068 ID is ce9a2f9d-1da6-429a-abef-b78c9ca1791d 2024-08-26 16:25:44,133 - DEBUG - VM ctest-TestRoutersBasic-32900166-32890068 launched on Node cn-jenkins-deploy-platform-ansible-os-1761-1 2024-08-26 16:25:44,221 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/ce9a2f9d-1da6-429a-abef-b78c9ca1791d 2024-08-26 16:25:44,564 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/ce9a2f9d-1da6-429a-abef-b78c9ca1791d 2024-08-26 16:25:44,603 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/ef2eae23-461a-4a3b-b317-7b8aba6b4041 2024-08-26 16:25:47,868 - 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 1022ms') 2024-08-26 16:25:47,868 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-32900166-32890068 failed! 2024-08-26 16:25:47,921 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-32900166:ctest-vn-87858658 is 150.192.194.193 and allocation pool is NOT set 2024-08-26 16:25:49,984 - 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=4.23 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.726 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.726/2.476/4.227/1.750 ms') 2024-08-26 16:25:49,985 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-32900166-32890068 passed 2024-08-26 16:25:50,137 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 16:25:50,137 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-32900166-32890068, IP 150.192.194.195, Port 22 2024-08-26 16:25:50,292 - DEBUG - VM ctest-TestRoutersBasic-32900166-32890068 is ready for SSH connections 2024-08-26 16:25:50,292 - INFO - Waiting for VM ctest-TestRoutersBasic-32900166-93040978 to be up.. 2024-08-26 16:25:50,382 - DEBUG - VM is in ACTIVE state now 2024-08-26 16:25:50,382 - INFO - VM name : ctest-TestRoutersBasic-32900166-93040978 2024-08-26 16:25:50,463 - DEBUG - VM ctest-TestRoutersBasic-32900166-93040978 ID is 065ddd8c-f0d6-4a32-9b9c-745deb4cd121 2024-08-26 16:25:50,463 - DEBUG - VM ctest-TestRoutersBasic-32900166-93040978 launched on Node cn-jenkins-deploy-platform-ansible-os-1761-1 2024-08-26 16:25:50,554 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/065ddd8c-f0d6-4a32-9b9c-745deb4cd121 2024-08-26 16:25:50,565 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/b0f91872-ff14-4521-a1e6-6abfb43f5540 2024-08-26 16:25:51,818 - 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.44 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=3.37 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 = 3.370/3.406/3.443/0.036 ms') 2024-08-26 16:25:51,818 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-32900166-93040978 passed 2024-08-26 16:25:51,973 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 16:25:51,974 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-32900166-93040978, IP 13.22.197.67, Port 22 2024-08-26 16:25:52,155 - DEBUG - VM ctest-TestRoutersBasic-32900166-93040978 is ready for SSH connections 2024-08-26 16:25:52,155 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 16:25:52,155 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 13.22.197.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-08-26 16:25:52,155 - DEBUG - ping -s 56 -c 3 -W 1 13.22.197.67 2024-08-26 16:25:55,906 - DEBUG - PING 13.22.197.67 (13.22.197.67): 56 data bytes 64 bytes from 13.22.197.67: seq=0 ttl=62 time=4.776 ms 64 bytes from 13.22.197.67: seq=1 ttl=62 time=1.128 ms 64 bytes from 13.22.197.67: seq=2 ttl=62 time=1.028 ms --- 13.22.197.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.028/2.310/4.776 ms 2024-08-26 16:25:55,906 - INFO - Ping to IP 13.22.197.67 from VM ctest-TestRoutersBasic-32900166-32890068 passed 2024-08-26 16:25:55,906 - INFO - Deleting interface with subnet_id a0ff9aa9-b04e-4623-98f1-257a65bc5717, port_id None from router 7d0d7b20-5d72-4386-8348-954f5f6c9ff2 2024-08-26 16:25:56,133 - INFO - Deleting VM ctest-TestRoutersBasic-32900166-93040978 2024-08-26 16:25:56,207 - INFO - Deleting VM ctest-TestRoutersBasic-32900166-32890068 2024-08-26 16:25:56,306 - INFO - Deleting VN ctest-ext_vn-90327741 2024-08-26 16:25:56,409 - DEBUG - VN 4e90fe50-0302-44ab-91fb-96f574ac5119 still in use: Unable to complete operation on network 4e90fe50-0302-44ab-91fb-96f574ac5119. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-dffc579d-fe66-4fd9-913d-61e3de9b97ec'] 2024-08-26 16:25:56,409 - WARNING - Deleting VN ctest-ext_vn-90327741 failed..Will retry 2024-08-26 16:25:58,530 - DEBUG - Response for deleting network () 2024-08-26 16:25:58,531 - INFO - Deleting VN ctest-vn-87858658 2024-08-26 16:25:58,654 - DEBUG - Response for deleting network () 2024-08-26 16:25:58,911 - DEBUG - No XMPP flaps were noticed during the test 2024-08-26 16:25:58,911 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-08-26 16:25:58,911 - INFO - -------------------------------------------------------------------------------- 2024-08-26 16:25:59,626 - INFO - Deleted project: ctest-TestRoutersBasic-32900166, ID : 3da16db1-6c36-4cca-aa7d-53fe8bc578a4