2024-08-21 16:29:38,486 - INFO - Domain Default found not creating 2024-08-21 16:29:38,642 - INFO - Project ctest-TestRoutersBasic-58199135 not found, creating it 2024-08-21 16:29:39,112 - INFO - Created Project:ctest-TestRoutersBasic-58199135, ID : 595ae689-a3bc-4cda-95cc-d1f10c4eb4ab 2024-08-21 16:29:40,632 - INFO - ================================================================================ 2024-08-21 16:29:40,632 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-21 16:29:40,632 - 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-21 16:29:40,892 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.5': '0'}} with 2024-08-21 16:29:40,892 - INFO - Initial checks done. Running the testcase now 2024-08-21 16:29:40,892 - INFO - 2024-08-21 16:29:41,585 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-58199135 2024-08-21 16:29:41,682 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-58199135 2024-08-21 16:29:42,002 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-58199135', 'default']} 2024-08-21 16:29:42,295 - DEBUG - Response for create_network : {'network': {'id': 'e8e6edea-b3c6-404e-9c93-53c1d2bb3c85', 'name': 'ctest-vn-78180777', 'tenant_id': '595ae689a3bc4cda95ccd1f10c4eb4ab', 'project_id': '595ae689a3bc4cda95ccd1f10c4eb4ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-58199135', 'ctest-vn-78180777'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 16:29:42,483 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b5ba2645-805f-4d85-a885-bc7571b8e7ca', 'name': '', 'tenant_id': '595ae689a3bc4cda95ccd1f10c4eb4ab', 'network_id': 'e8e6edea-b3c6-404e-9c93-53c1d2bb3c85', 'ip_version': 4, 'cidr': '119.125.217.192/26', 'allocation_pools': [{'start': '119.125.217.194', 'end': '119.125.217.254'}], 'gateway_ip': '119.125.217.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '119.125.217.194', 'tags': [], 'project_id': '595ae689a3bc4cda95ccd1f10c4eb4ab'}} 2024-08-21 16:29:42,502 - INFO - Created VN ctest-vn-78180777 2024-08-21 16:29:42,550 - DEBUG - VN ctest-vn-78180777 UUID is e8e6edea-b3c6-404e-9c93-53c1d2bb3c85 2024-08-21 16:29:42,884 - DEBUG - Response for create_network : {'network': {'id': '56010c0e-face-45e8-ab51-5cb0e46790f7', 'name': 'ctest-ext_vn-06470222', 'tenant_id': '595ae689a3bc4cda95ccd1f10c4eb4ab', 'project_id': '595ae689a3bc4cda95ccd1f10c4eb4ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-58199135', 'ctest-ext_vn-06470222'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 16:29:43,050 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd2bf37c9-c81f-4ee5-9971-2f529c89aded', 'name': '', 'tenant_id': '595ae689a3bc4cda95ccd1f10c4eb4ab', 'network_id': '56010c0e-face-45e8-ab51-5cb0e46790f7', 'ip_version': 4, 'cidr': '42.250.24.0/26', 'allocation_pools': [{'start': '42.250.24.2', 'end': '42.250.24.62'}], 'gateway_ip': '42.250.24.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '42.250.24.2', 'tags': [], 'project_id': '595ae689a3bc4cda95ccd1f10c4eb4ab'}} 2024-08-21 16:29:43,071 - INFO - Created VN ctest-ext_vn-06470222 2024-08-21 16:29:43,122 - DEBUG - VN ctest-ext_vn-06470222 UUID is 56010c0e-face-45e8-ab51-5cb0e46790f7 2024-08-21 16:29:43,291 - DEBUG - Services list from nova: [, , ] 2024-08-21 16:29:44,313 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1693-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1693-1) 2024-08-21 16:29:45,501 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1693-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1693-1) 2024-08-21 16:29:45,585 - INFO - Setting gateway for router dc10822b-caa9-48de-a310-f1f7e87ac757 to network 56010c0e-face-45e8-ab51-5cb0e46790f7 2024-08-21 16:29:45,643 - INFO - Adding interface with subnet_id b5ba2645-805f-4d85-a885-bc7571b8e7ca, port_id None to router dc10822b-caa9-48de-a310-f1f7e87ac757 2024-08-21 16:29:46,088 - INFO - Waiting for VM ctest-TestRoutersBasic-58199135-82598936 to be up.. 2024-08-21 16:29:46,235 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-21 16:29:51,321 - DEBUG - VM is in ACTIVE state now 2024-08-21 16:29:51,321 - INFO - VM name : ctest-TestRoutersBasic-58199135-82598936 2024-08-21 16:29:51,405 - DEBUG - VM ctest-TestRoutersBasic-58199135-82598936 ID is 6b032e0e-1d42-4cfd-bc79-11eeb3849e99 2024-08-21 16:29:51,426 - DEBUG - VM ctest-TestRoutersBasic-58199135-82598936 launched on Node cn-jenkins-deploy-platform-ansible-os-1693-1 2024-08-21 16:29:51,524 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/6b032e0e-1d42-4cfd-bc79-11eeb3849e99 2024-08-21 16:29:51,816 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/6b032e0e-1d42-4cfd-bc79-11eeb3849e99 2024-08-21 16:29:51,848 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/b604348c-88ff-4935-9775-0c67c02b2d88 2024-08-21 16:29:55,089 - 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 1002ms') 2024-08-21 16:29:55,089 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-58199135-82598936 failed! 2024-08-21 16:29:55,142 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-58199135:ctest-vn-78180777 is 119.125.217.193 and allocation pool is NOT set 2024-08-21 16:29:57,203 - 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=258 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.349 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 999ms\r\nrtt min/avg/max/mdev = 0.349/129.335/258.322/128.986 ms') 2024-08-21 16:29:57,203 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-58199135-82598936 passed 2024-08-21 16:29:57,350 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 16:29:57,350 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-58199135-82598936, IP 119.125.217.195, Port 22 2024-08-21 16:29:57,502 - DEBUG - VM ctest-TestRoutersBasic-58199135-82598936 is ready for SSH connections 2024-08-21 16:29:57,502 - INFO - Waiting for VM ctest-TestRoutersBasic-58199135-35530697 to be up.. 2024-08-21 16:29:57,589 - DEBUG - VM is in ACTIVE state now 2024-08-21 16:29:57,589 - INFO - VM name : ctest-TestRoutersBasic-58199135-35530697 2024-08-21 16:29:57,677 - DEBUG - VM ctest-TestRoutersBasic-58199135-35530697 ID is f738a65d-7d6a-494a-8e34-9d40ab25ce82 2024-08-21 16:29:57,677 - DEBUG - VM ctest-TestRoutersBasic-58199135-35530697 launched on Node cn-jenkins-deploy-platform-ansible-os-1693-1 2024-08-21 16:29:57,754 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/f738a65d-7d6a-494a-8e34-9d40ab25ce82 2024-08-21 16:29:57,763 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/5574a562-fad0-4c4b-a2ae-2804e0bd4d77 2024-08-21 16:29:59,012 - 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=4.62 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.14 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 = 2.137/3.377/4.618/1.240 ms') 2024-08-21 16:29:59,012 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-58199135-35530697 passed 2024-08-21 16:29:59,170 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 16:29:59,170 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-58199135-35530697, IP 42.250.24.3, Port 22 2024-08-21 16:29:59,322 - DEBUG - VM ctest-TestRoutersBasic-58199135-35530697 is ready for SSH connections 2024-08-21 16:29:59,322 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 16:29:59,323 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 42.250.24.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2024-08-21 16:29:59,323 - DEBUG - ping -s 56 -c 3 -W 1 42.250.24.3 2024-08-21 16:30:03,012 - DEBUG - PING 42.250.24.3 (42.250.24.3): 56 data bytes 64 bytes from 42.250.24.3: seq=0 ttl=62 time=7.862 ms 64 bytes from 42.250.24.3: seq=1 ttl=62 time=0.961 ms 64 bytes from 42.250.24.3: seq=2 ttl=62 time=1.091 ms --- 42.250.24.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.961/3.304/7.862 ms 2024-08-21 16:30:03,012 - INFO - Ping to IP 42.250.24.3 from VM ctest-TestRoutersBasic-58199135-82598936 passed 2024-08-21 16:30:03,012 - INFO - Deleting interface with subnet_id b5ba2645-805f-4d85-a885-bc7571b8e7ca, port_id None from router dc10822b-caa9-48de-a310-f1f7e87ac757 2024-08-21 16:30:03,230 - INFO - Deleting VM ctest-TestRoutersBasic-58199135-35530697 2024-08-21 16:30:03,297 - INFO - Deleting VM ctest-TestRoutersBasic-58199135-82598936 2024-08-21 16:30:03,383 - INFO - Deleting VN ctest-ext_vn-06470222 2024-08-21 16:30:03,463 - DEBUG - VN 56010c0e-face-45e8-ab51-5cb0e46790f7 still in use: Unable to complete operation on network 56010c0e-face-45e8-ab51-5cb0e46790f7. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-fe41dd25-ef6d-43b8-8487-5eb0146425ca'] 2024-08-21 16:30:03,463 - WARNING - Deleting VN ctest-ext_vn-06470222 failed..Will retry 2024-08-21 16:30:05,577 - DEBUG - Response for deleting network () 2024-08-21 16:30:05,577 - INFO - Deleting VN ctest-vn-78180777 2024-08-21 16:30:05,700 - DEBUG - Response for deleting network () 2024-08-21 16:30:05,960 - DEBUG - No XMPP flaps were noticed during the test 2024-08-21 16:30:05,960 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25] 2024-08-21 16:30:05,960 - INFO - -------------------------------------------------------------------------------- 2024-08-21 16:30:06,640 - INFO - Deleted project: ctest-TestRoutersBasic-58199135, ID : 595ae689-a3bc-4cda-95cc-d1f10c4eb4ab