2024-09-12 02:25:16,061 - INFO - Domain Default found not creating 2024-09-12 02:25:16,234 - INFO - Project ctest-TestRoutersBasic-42603849 not found, creating it 2024-09-12 02:25:16,745 - INFO - Created Project:ctest-TestRoutersBasic-42603849, ID : b96ea6ea-4b8c-4a1e-8436-eb5b4a62e4bd 2024-09-12 02:25:18,489 - INFO - ================================================================================ 2024-09-12 02:25:18,489 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-12 02:25:18,489 - 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-12 02:25:18,752 - DEBUG - Nothing to compare xmpp stats {'10.0.0.32': {'10.20.0.8': '0'}} with 2024-09-12 02:25:18,752 - INFO - Initial checks done. Running the testcase now 2024-09-12 02:25:18,752 - INFO - 2024-09-12 02:25:19,592 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-42603849 2024-09-12 02:25:19,694 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-42603849 2024-09-12 02:25:20,045 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-42603849', 'default']} 2024-09-12 02:25:20,366 - DEBUG - Response for create_network : {'network': {'id': '1888eddb-fe8b-44f0-a276-ccdf4b7f5cf2', 'name': 'ctest-vn-49118185', 'tenant_id': 'b96ea6ea4b8c4a1e8436eb5b4a62e4bd', 'project_id': 'b96ea6ea4b8c4a1e8436eb5b4a62e4bd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-42603849', 'ctest-vn-49118185'], 'port_security_enabled': True, 'description': ''}} 2024-09-12 02:25:20,603 - DEBUG - Response for create_subnet : {'subnet': {'id': '74b4e749-1552-4280-bb21-9c4019ee55ce', 'name': '', 'tenant_id': 'b96ea6ea4b8c4a1e8436eb5b4a62e4bd', 'network_id': '1888eddb-fe8b-44f0-a276-ccdf4b7f5cf2', 'ip_version': 4, 'cidr': '211.143.51.192/26', 'allocation_pools': [{'start': '211.143.51.194', 'end': '211.143.51.254'}], 'gateway_ip': '211.143.51.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.143.51.194', 'tags': [], 'project_id': 'b96ea6ea4b8c4a1e8436eb5b4a62e4bd'}} 2024-09-12 02:25:20,626 - INFO - Created VN ctest-vn-49118185 2024-09-12 02:25:20,689 - DEBUG - VN ctest-vn-49118185 UUID is 1888eddb-fe8b-44f0-a276-ccdf4b7f5cf2 2024-09-12 02:25:21,056 - DEBUG - Response for create_network : {'network': {'id': '07983810-c4a4-4082-8466-81a4bf8ada1e', 'name': 'ctest-ext_vn-53098497', 'tenant_id': 'b96ea6ea4b8c4a1e8436eb5b4a62e4bd', 'project_id': 'b96ea6ea4b8c4a1e8436eb5b4a62e4bd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-42603849', 'ctest-ext_vn-53098497'], 'port_security_enabled': True, 'description': ''}} 2024-09-12 02:25:21,248 - DEBUG - Response for create_subnet : {'subnet': {'id': 'da21d7a9-fdd4-4db8-a9d2-a86b196cf8be', 'name': '', 'tenant_id': 'b96ea6ea4b8c4a1e8436eb5b4a62e4bd', 'network_id': '07983810-c4a4-4082-8466-81a4bf8ada1e', 'ip_version': 4, 'cidr': '156.211.117.0/26', 'allocation_pools': [{'start': '156.211.117.2', 'end': '156.211.117.62'}], 'gateway_ip': '156.211.117.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.211.117.2', 'tags': [], 'project_id': 'b96ea6ea4b8c4a1e8436eb5b4a62e4bd'}} 2024-09-12 02:25:21,269 - INFO - Created VN ctest-ext_vn-53098497 2024-09-12 02:25:21,329 - DEBUG - VN ctest-ext_vn-53098497 UUID is 07983810-c4a4-4082-8466-81a4bf8ada1e 2024-09-12 02:25:21,527 - DEBUG - Services list from nova: [, , ] 2024-09-12 02:25:22,711 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1904-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1904-1) 2024-09-12 02:25:24,090 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1904-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1904-1) 2024-09-12 02:25:24,209 - INFO - Setting gateway for router 213b5221-b688-4e1b-86c9-5f83e130875f to network 07983810-c4a4-4082-8466-81a4bf8ada1e 2024-09-12 02:25:24,286 - INFO - Adding interface with subnet_id 74b4e749-1552-4280-bb21-9c4019ee55ce, port_id None to router 213b5221-b688-4e1b-86c9-5f83e130875f 2024-09-12 02:25:24,761 - INFO - Waiting for VM ctest-TestRoutersBasic-42603849-43380309 to be up.. 2024-09-12 02:25:25,064 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-12 02:25:30,157 - DEBUG - VM is in ACTIVE state now 2024-09-12 02:25:30,157 - INFO - VM name : ctest-TestRoutersBasic-42603849-43380309 2024-09-12 02:25:30,243 - DEBUG - VM ctest-TestRoutersBasic-42603849-43380309 ID is c3101ac2-3a52-4ce1-a70b-ef91b9b073cc 2024-09-12 02:25:30,263 - DEBUG - VM ctest-TestRoutersBasic-42603849-43380309 launched on Node cn-jenkins-deploy-platform-ansible-os-1904-1 2024-09-12 02:25:30,352 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine/c3101ac2-3a52-4ce1-a70b-ef91b9b073cc 2024-09-12 02:25:30,693 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine/c3101ac2-3a52-4ce1-a70b-ef91b9b073cc 2024-09-12 02:25:30,734 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine-interface/40bffe64-8dd9-470c-a85a-7b8e8b20af80 2024-09-12 02:25:34,028 - 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-09-12 02:25:34,029 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-42603849-43380309 failed! 2024-09-12 02:25:34,089 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-42603849:ctest-vn-49118185 is 211.143.51.193 and allocation pool is NOT set 2024-09-12 02:25:36,146 - 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.01 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.438 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.438/1.724/3.010/1.286 ms') 2024-09-12 02:25:36,146 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-42603849-43380309 passed 2024-09-12 02:25:36,306 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-12 02:25:36,306 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-42603849-43380309, IP 211.143.51.195, Port 22 2024-09-12 02:25:36,472 - DEBUG - VM ctest-TestRoutersBasic-42603849-43380309 is ready for SSH connections 2024-09-12 02:25:36,472 - INFO - Waiting for VM ctest-TestRoutersBasic-42603849-95593343 to be up.. 2024-09-12 02:25:36,567 - DEBUG - VM is in ACTIVE state now 2024-09-12 02:25:36,567 - INFO - VM name : ctest-TestRoutersBasic-42603849-95593343 2024-09-12 02:25:36,658 - DEBUG - VM ctest-TestRoutersBasic-42603849-95593343 ID is fff286d1-82e6-4a40-86bc-93ae7fd4f3a2 2024-09-12 02:25:36,658 - DEBUG - VM ctest-TestRoutersBasic-42603849-95593343 launched on Node cn-jenkins-deploy-platform-ansible-os-1904-1 2024-09-12 02:25:36,751 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine/fff286d1-82e6-4a40-86bc-93ae7fd4f3a2 2024-09-12 02:25:36,763 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine-interface/ec5e9b15-05b3-4e33-82b6-bfb3df4719a2 2024-09-12 02:25:38,026 - 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.53 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.05 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 = 1.047/2.289/3.531/1.242 ms') 2024-09-12 02:25:38,026 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-42603849-95593343 passed 2024-09-12 02:25:38,190 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-12 02:25:38,190 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-42603849-95593343, IP 156.211.117.3, Port 22 2024-09-12 02:25:38,356 - DEBUG - VM ctest-TestRoutersBasic-42603849-95593343 is ready for SSH connections 2024-09-12 02:25:38,356 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-12 02:25:38,356 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 156.211.117.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.32, gateway password: c0ntrail123 2024-09-12 02:25:38,356 - DEBUG - ping -s 56 -c 3 -W 1 156.211.117.3 2024-09-12 02:25:42,091 - DEBUG - PING 156.211.117.3 (156.211.117.3): 56 data bytes 64 bytes from 156.211.117.3: seq=0 ttl=62 time=6.321 ms 64 bytes from 156.211.117.3: seq=1 ttl=62 time=1.052 ms 64 bytes from 156.211.117.3: seq=2 ttl=62 time=0.939 ms --- 156.211.117.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.939/2.770/6.321 ms 2024-09-12 02:25:42,092 - INFO - Ping to IP 156.211.117.3 from VM ctest-TestRoutersBasic-42603849-43380309 passed 2024-09-12 02:25:42,092 - INFO - Deleting interface with subnet_id 74b4e749-1552-4280-bb21-9c4019ee55ce, port_id None from router 213b5221-b688-4e1b-86c9-5f83e130875f 2024-09-12 02:25:42,334 - INFO - Deleting VM ctest-TestRoutersBasic-42603849-95593343 2024-09-12 02:25:42,430 - INFO - Deleting VM ctest-TestRoutersBasic-42603849-43380309 2024-09-12 02:25:42,509 - INFO - Deleting VN ctest-ext_vn-53098497 2024-09-12 02:25:42,582 - DEBUG - VN 07983810-c4a4-4082-8466-81a4bf8ada1e still in use: Unable to complete operation on network 07983810-c4a4-4082-8466-81a4bf8ada1e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-20f7f46b-1e47-4671-888e-c6387e4cad24'] 2024-09-12 02:25:42,582 - WARNING - Deleting VN ctest-ext_vn-53098497 failed..Will retry 2024-09-12 02:25:44,718 - DEBUG - Response for deleting network () 2024-09-12 02:25:44,718 - INFO - Deleting VN ctest-vn-49118185 2024-09-12 02:25:44,842 - DEBUG - Response for deleting network () 2024-09-12 02:25:45,098 - DEBUG - No XMPP flaps were noticed during the test 2024-09-12 02:25:45,099 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27] 2024-09-12 02:25:45,099 - INFO - -------------------------------------------------------------------------------- 2024-09-12 02:25:45,845 - INFO - Deleted project: ctest-TestRoutersBasic-42603849, ID : b96ea6ea-4b8c-4a1e-8436-eb5b4a62e4bd