2025-03-27 19:25:42,084 - INFO - Domain Default found not creating 2025-03-27 19:25:42,223 - INFO - Project ctest-TestRoutersBasic-50876154 not found, creating it 2025-03-27 19:25:42,715 - INFO - Created Project:ctest-TestRoutersBasic-50876154, ID : 18654e54-7b76-4f65-b866-c642e6c609b3 2025-03-27 19:25:44,104 - INFO - ================================================================================ 2025-03-27 19:25:44,105 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-03-27 19:25:44,105 - 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 2025-03-27 19:25:44,359 - DEBUG - Nothing to compare xmpp stats {'10.0.0.52': {'10.20.0.7': '0'}} with 2025-03-27 19:25:44,359 - INFO - Initial checks done. Running the testcase now 2025-03-27 19:25:44,359 - INFO - 2025-03-27 19:25:45,057 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-50876154 2025-03-27 19:25:45,158 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-50876154 2025-03-27 19:25:45,497 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-50876154', 'default']} 2025-03-27 19:25:45,812 - DEBUG - Response for create_network : {'network': {'id': '3d4a5abd-aabb-4d33-9e03-a9bdd888242d', 'name': 'ctest-vn-95454055', 'tenant_id': '18654e547b764f65b866c642e6c609b3', 'project_id': '18654e547b764f65b866c642e6c609b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-50876154', 'ctest-vn-95454055'], 'port_security_enabled': True, 'description': ''}} 2025-03-27 19:25:45,989 - DEBUG - Response for create_subnet : {'subnet': {'id': '1e6487b3-4f97-4b5c-b988-e1f714ae6e41', 'name': '', 'tenant_id': '18654e547b764f65b866c642e6c609b3', 'network_id': '3d4a5abd-aabb-4d33-9e03-a9bdd888242d', 'ip_version': 4, 'cidr': '70.255.36.64/26', 'allocation_pools': [{'start': '70.255.36.66', 'end': '70.255.36.126'}], 'gateway_ip': '70.255.36.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '70.255.36.66', 'tags': [], 'project_id': '18654e547b764f65b866c642e6c609b3'}} 2025-03-27 19:25:46,008 - INFO - Created VN ctest-vn-95454055 2025-03-27 19:25:46,062 - DEBUG - VN ctest-vn-95454055 UUID is 3d4a5abd-aabb-4d33-9e03-a9bdd888242d 2025-03-27 19:25:46,401 - DEBUG - Response for create_network : {'network': {'id': 'acf9c1bf-e48f-44cd-9e9d-9c20c193dd3f', 'name': 'ctest-ext_vn-49325823', 'tenant_id': '18654e547b764f65b866c642e6c609b3', 'project_id': '18654e547b764f65b866c642e6c609b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-50876154', 'ctest-ext_vn-49325823'], 'port_security_enabled': True, 'description': ''}} 2025-03-27 19:25:46,596 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c907408d-63f4-49ff-af63-571ac788c0e5', 'name': '', 'tenant_id': '18654e547b764f65b866c642e6c609b3', 'network_id': 'acf9c1bf-e48f-44cd-9e9d-9c20c193dd3f', 'ip_version': 4, 'cidr': '25.94.95.192/26', 'allocation_pools': [{'start': '25.94.95.194', 'end': '25.94.95.254'}], 'gateway_ip': '25.94.95.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.94.95.194', 'tags': [], 'project_id': '18654e547b764f65b866c642e6c609b3'}} 2025-03-27 19:25:46,613 - INFO - Created VN ctest-ext_vn-49325823 2025-03-27 19:25:46,665 - DEBUG - VN ctest-ext_vn-49325823 UUID is acf9c1bf-e48f-44cd-9e9d-9c20c193dd3f 2025-03-27 19:25:46,834 - DEBUG - Services list from nova: [, , ] 2025-03-27 19:25:47,870 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2983-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2983-1) 2025-03-27 19:25:49,019 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2983-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2983-1) 2025-03-27 19:25:49,101 - INFO - Setting gateway for router 84476c0c-3f73-4428-99fe-2298f2462d46 to network acf9c1bf-e48f-44cd-9e9d-9c20c193dd3f 2025-03-27 19:25:49,191 - INFO - Adding interface with subnet_id 1e6487b3-4f97-4b5c-b988-e1f714ae6e41, port_id None to router 84476c0c-3f73-4428-99fe-2298f2462d46 2025-03-27 19:25:49,680 - INFO - Waiting for VM ctest-TestRoutersBasic-50876154-71748431 to be up.. 2025-03-27 19:25:49,864 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-27 19:25:54,936 - DEBUG - VM is in ACTIVE state now 2025-03-27 19:25:54,937 - INFO - VM name : ctest-TestRoutersBasic-50876154-71748431 2025-03-27 19:25:55,010 - DEBUG - VM ctest-TestRoutersBasic-50876154-71748431 ID is 2f5be710-fc45-426f-8f32-8fe381846761 2025-03-27 19:25:55,027 - DEBUG - VM ctest-TestRoutersBasic-50876154-71748431 launched on Node cn-jenkins-deploy-platform-ansible-os-2983-1 2025-03-27 19:25:55,099 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine/2f5be710-fc45-426f-8f32-8fe381846761 2025-03-27 19:25:55,394 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine/2f5be710-fc45-426f-8f32-8fe381846761 2025-03-27 19:25:55,429 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine-interface/779418d3-bc91-4756-8568-7f46366fe89e 2025-03-27 19:25:58,692 - 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') 2025-03-27 19:25:58,692 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-50876154-71748431 failed! 2025-03-27 19:25:58,749 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-50876154:ctest-vn-95454055 is 70.255.36.65 and allocation pool is NOT set 2025-03-27 19:26:00,809 - 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.13 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.417 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.417/1.772/3.128/1.355 ms') 2025-03-27 19:26:00,809 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-50876154-71748431 passed 2025-03-27 19:26:00,957 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 19:26:00,958 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-50876154-71748431, IP 70.255.36.67, Port 22 2025-03-27 19:26:01,123 - DEBUG - VM ctest-TestRoutersBasic-50876154-71748431 is ready for SSH connections 2025-03-27 19:26:01,123 - INFO - Waiting for VM ctest-TestRoutersBasic-50876154-26984497 to be up.. 2025-03-27 19:26:01,201 - DEBUG - VM is in ACTIVE state now 2025-03-27 19:26:01,202 - INFO - VM name : ctest-TestRoutersBasic-50876154-26984497 2025-03-27 19:26:01,283 - DEBUG - VM ctest-TestRoutersBasic-50876154-26984497 ID is 56f05403-7bc6-4881-8ec8-fb0d8870377a 2025-03-27 19:26:01,283 - DEBUG - VM ctest-TestRoutersBasic-50876154-26984497 launched on Node cn-jenkins-deploy-platform-ansible-os-2983-1 2025-03-27 19:26:01,365 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine/56f05403-7bc6-4881-8ec8-fb0d8870377a 2025-03-27 19:26:01,376 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine-interface/424e06d2-f6d0-4c11-8a5b-ac1f357f75c5 2025-03-27 19:26:02,619 - 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.90 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.414 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.414/1.657/2.900/1.243 ms') 2025-03-27 19:26:02,619 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-50876154-26984497 passed 2025-03-27 19:26:02,777 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 19:26:02,778 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-50876154-26984497, IP 25.94.95.195, Port 22 2025-03-27 19:26:02,937 - DEBUG - VM ctest-TestRoutersBasic-50876154-26984497 is ready for SSH connections 2025-03-27 19:26:02,937 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 19:26:02,937 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 25.94.95.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.52, gateway password: c0ntrail123 2025-03-27 19:26:02,937 - DEBUG - ping -s 56 -c 3 -W 1 25.94.95.195 2025-03-27 19:26:06,629 - DEBUG - PING 25.94.95.195 (25.94.95.195): 56 data bytes 64 bytes from 25.94.95.195: seq=0 ttl=62 time=4.991 ms 64 bytes from 25.94.95.195: seq=1 ttl=62 time=0.839 ms 64 bytes from 25.94.95.195: seq=2 ttl=62 time=0.888 ms --- 25.94.95.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.839/2.239/4.991 ms 2025-03-27 19:26:06,629 - INFO - Ping to IP 25.94.95.195 from VM ctest-TestRoutersBasic-50876154-71748431 passed 2025-03-27 19:26:06,629 - INFO - Deleting interface with subnet_id 1e6487b3-4f97-4b5c-b988-e1f714ae6e41, port_id None from router 84476c0c-3f73-4428-99fe-2298f2462d46 2025-03-27 19:26:06,820 - INFO - Deleting VM ctest-TestRoutersBasic-50876154-26984497 2025-03-27 19:26:06,884 - INFO - Deleting VM ctest-TestRoutersBasic-50876154-71748431 2025-03-27 19:26:06,962 - INFO - Deleting VN ctest-ext_vn-49325823 2025-03-27 19:26:07,041 - DEBUG - VN acf9c1bf-e48f-44cd-9e9d-9c20c193dd3f still in use: Unable to complete operation on network acf9c1bf-e48f-44cd-9e9d-9c20c193dd3f. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-48e69a8d-bd7b-4fe6-8803-e6af1733ae87'] 2025-03-27 19:26:07,041 - WARNING - Deleting VN ctest-ext_vn-49325823 failed..Will retry 2025-03-27 19:26:09,176 - DEBUG - Response for deleting network () 2025-03-27 19:26:09,176 - INFO - Deleting VN ctest-vn-95454055 2025-03-27 19:26:09,284 - DEBUG - Response for deleting network () 2025-03-27 19:26:09,547 - DEBUG - No XMPP flaps were noticed during the test 2025-03-27 19:26:09,547 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25] 2025-03-27 19:26:09,548 - INFO - -------------------------------------------------------------------------------- 2025-03-27 19:26:10,214 - INFO - Deleted project: ctest-TestRoutersBasic-50876154, ID : 18654e54-7b76-4f65-b866-c642e6c609b3