2025-03-17 02:26:58,144 - INFO - Domain Default found not creating 2025-03-17 02:26:58,288 - INFO - Project ctest-TestRoutersBasic-25963253 not found, creating it 2025-03-17 02:26:58,763 - INFO - Created Project:ctest-TestRoutersBasic-25963253, ID : d62f9b3e-97ff-47da-ac05-40f50d1fdea9 2025-03-17 02:27:00,202 - INFO - ================================================================================ 2025-03-17 02:27:00,202 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-03-17 02:27:00,202 - 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-17 02:27:00,458 - DEBUG - Nothing to compare xmpp stats {'10.0.0.46': {'10.0.0.46': '0'}} with 2025-03-17 02:27:00,458 - INFO - Initial checks done. Running the testcase now 2025-03-17 02:27:00,458 - INFO - 2025-03-17 02:27:01,164 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-25963253 2025-03-17 02:27:01,264 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-25963253 2025-03-17 02:27:01,592 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-25963253', 'default']} 2025-03-17 02:27:01,938 - DEBUG - Response for create_network : {'network': {'id': 'c4a70076-24eb-456c-9ef1-041a2f0e1965', 'name': 'ctest-vn-63208152', 'tenant_id': 'd62f9b3e97ff47daac0540f50d1fdea9', 'project_id': 'd62f9b3e97ff47daac0540f50d1fdea9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-25963253', 'ctest-vn-63208152'], 'port_security_enabled': True, 'description': ''}} 2025-03-17 02:27:02,173 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dddc27e4-91aa-4fe6-869b-039b0d7981f9', 'name': '', 'tenant_id': 'd62f9b3e97ff47daac0540f50d1fdea9', 'network_id': 'c4a70076-24eb-456c-9ef1-041a2f0e1965', 'ip_version': 4, 'cidr': '211.188.221.64/26', 'allocation_pools': [{'start': '211.188.221.66', 'end': '211.188.221.126'}], 'gateway_ip': '211.188.221.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.188.221.66', 'tags': [], 'project_id': 'd62f9b3e97ff47daac0540f50d1fdea9'}} 2025-03-17 02:27:02,192 - INFO - Created VN ctest-vn-63208152 2025-03-17 02:27:02,248 - DEBUG - VN ctest-vn-63208152 UUID is c4a70076-24eb-456c-9ef1-041a2f0e1965 2025-03-17 02:27:02,606 - DEBUG - Response for create_network : {'network': {'id': '1a021e1e-0154-45be-80de-a7091935946f', 'name': 'ctest-ext_vn-57945648', 'tenant_id': 'd62f9b3e97ff47daac0540f50d1fdea9', 'project_id': 'd62f9b3e97ff47daac0540f50d1fdea9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-25963253', 'ctest-ext_vn-57945648'], 'port_security_enabled': True, 'description': ''}} 2025-03-17 02:27:02,793 - DEBUG - Response for create_subnet : {'subnet': {'id': '7f59f29b-1123-459c-b43e-256a4abb87e7', 'name': '', 'tenant_id': 'd62f9b3e97ff47daac0540f50d1fdea9', 'network_id': '1a021e1e-0154-45be-80de-a7091935946f', 'ip_version': 4, 'cidr': '193.100.206.64/26', 'allocation_pools': [{'start': '193.100.206.66', 'end': '193.100.206.126'}], 'gateway_ip': '193.100.206.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '193.100.206.66', 'tags': [], 'project_id': 'd62f9b3e97ff47daac0540f50d1fdea9'}} 2025-03-17 02:27:02,815 - INFO - Created VN ctest-ext_vn-57945648 2025-03-17 02:27:02,868 - DEBUG - VN ctest-ext_vn-57945648 UUID is 1a021e1e-0154-45be-80de-a7091935946f 2025-03-17 02:27:03,039 - DEBUG - Services list from nova: [, , ] 2025-03-17 02:27:04,048 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2891-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2891-1) 2025-03-17 02:27:05,210 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2891-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2891-1) 2025-03-17 02:27:05,330 - INFO - Setting gateway for router f33bdc19-e243-423d-8a5d-b5ac3c9ec982 to network 1a021e1e-0154-45be-80de-a7091935946f 2025-03-17 02:27:05,394 - INFO - Adding interface with subnet_id dddc27e4-91aa-4fe6-869b-039b0d7981f9, port_id None to router f33bdc19-e243-423d-8a5d-b5ac3c9ec982 2025-03-17 02:27:05,770 - INFO - Waiting for VM ctest-TestRoutersBasic-25963253-62775531 to be up.. 2025-03-17 02:27:05,918 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-17 02:27:11,012 - DEBUG - VM is in ACTIVE state now 2025-03-17 02:27:11,012 - INFO - VM name : ctest-TestRoutersBasic-25963253-62775531 2025-03-17 02:27:11,093 - DEBUG - VM ctest-TestRoutersBasic-25963253-62775531 ID is a752725b-309c-40b7-9cdf-5f0af85bd1a4 2025-03-17 02:27:11,112 - DEBUG - VM ctest-TestRoutersBasic-25963253-62775531 launched on Node cn-jenkins-deploy-platform-ansible-os-2891-1. 2025-03-17 02:27:11,188 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-machine/a752725b-309c-40b7-9cdf-5f0af85bd1a4 2025-03-17 02:27:11,486 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-machine/a752725b-309c-40b7-9cdf-5f0af85bd1a4 2025-03-17 02:27:11,519 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-machine-interface/29660c28-26fd-4cd7-87f6-99706309d729 2025-03-17 02:27:14,773 - 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 1006ms') 2025-03-17 02:27:14,773 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-25963253-62775531 failed! 2025-03-17 02:27:14,832 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-25963253:ctest-vn-63208152 is 211.188.221.65 and allocation pool is NOT set 2025-03-17 02:27:16,895 - 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.24 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.621 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.621/1.929/3.238/1.308 ms') 2025-03-17 02:27:16,895 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-25963253-62775531 passed 2025-03-17 02:27:17,048 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-17 02:27:17,048 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-25963253-62775531, IP 211.188.221.67, Port 22 2025-03-17 02:27:17,204 - DEBUG - VM ctest-TestRoutersBasic-25963253-62775531 is ready for SSH connections 2025-03-17 02:27:17,204 - INFO - Waiting for VM ctest-TestRoutersBasic-25963253-91185315 to be up.. 2025-03-17 02:27:17,283 - DEBUG - VM is in ACTIVE state now 2025-03-17 02:27:17,284 - INFO - VM name : ctest-TestRoutersBasic-25963253-91185315 2025-03-17 02:27:17,359 - DEBUG - VM ctest-TestRoutersBasic-25963253-91185315 ID is 34bcd8aa-d806-4dd8-801e-907d5ff10d25 2025-03-17 02:27:17,359 - DEBUG - VM ctest-TestRoutersBasic-25963253-91185315 launched on Node cn-jenkins-deploy-platform-ansible-os-2891-1. 2025-03-17 02:27:17,434 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-machine/34bcd8aa-d806-4dd8-801e-907d5ff10d25 2025-03-17 02:27:17,445 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-machine-interface/9f57886e-5edb-41e1-aee8-ab1f1d7fc1a4 2025-03-17 02:27:18,697 - 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=5.66 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.18 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.184/3.922/5.661/1.738 ms') 2025-03-17 02:27:18,698 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-25963253-91185315 passed 2025-03-17 02:27:18,860 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-17 02:27:18,860 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-25963253-91185315, IP 193.100.206.67, Port 22 2025-03-17 02:27:19,016 - DEBUG - VM ctest-TestRoutersBasic-25963253-91185315 is ready for SSH connections 2025-03-17 02:27:19,016 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-17 02:27:19,016 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 193.100.206.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.46, gateway password: c0ntrail123 2025-03-17 02:27:19,016 - DEBUG - ping -s 56 -c 3 -W 1 193.100.206.67 2025-03-17 02:27:23,046 - DEBUG - PING 193.100.206.67 (193.100.206.67): 56 data bytes 64 bytes from 193.100.206.67: seq=0 ttl=62 time=5.310 ms 64 bytes from 193.100.206.67: seq=1 ttl=62 time=1.174 ms 64 bytes from 193.100.206.67: seq=2 ttl=62 time=1.304 ms --- 193.100.206.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.174/2.596/5.310 ms 2025-03-17 02:27:23,046 - INFO - Ping to IP 193.100.206.67 from VM ctest-TestRoutersBasic-25963253-62775531 passed 2025-03-17 02:27:23,046 - INFO - Deleting interface with subnet_id dddc27e4-91aa-4fe6-869b-039b0d7981f9, port_id None from router f33bdc19-e243-423d-8a5d-b5ac3c9ec982 2025-03-17 02:27:23,297 - INFO - Deleting VM ctest-TestRoutersBasic-25963253-91185315 2025-03-17 02:27:23,370 - INFO - Deleting VM ctest-TestRoutersBasic-25963253-62775531 2025-03-17 02:27:23,484 - INFO - Deleting VN ctest-ext_vn-57945648 2025-03-17 02:27:23,588 - DEBUG - VN 1a021e1e-0154-45be-80de-a7091935946f still in use: Unable to complete operation on network 1a021e1e-0154-45be-80de-a7091935946f. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-09eb4958-5aec-46db-a700-b360e32a0782'] 2025-03-17 02:27:23,588 - WARNING - Deleting VN ctest-ext_vn-57945648 failed..Will retry 2025-03-17 02:27:25,711 - DEBUG - Response for deleting network () 2025-03-17 02:27:25,711 - INFO - Deleting VN ctest-vn-63208152 2025-03-17 02:27:25,830 - DEBUG - Response for deleting network () 2025-03-17 02:27:26,085 - DEBUG - No XMPP flaps were noticed during the test 2025-03-17 02:27:26,086 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2025-03-17 02:27:26,086 - INFO - -------------------------------------------------------------------------------- 2025-03-17 02:27:26,802 - INFO - Deleted project: ctest-TestRoutersBasic-25963253, ID : d62f9b3e-97ff-47da-ac05-40f50d1fdea9