2025-04-21 06:54:17,896 - INFO - Domain Default found not creating 2025-04-21 06:54:18,026 - INFO - Project ctest-TestRoutersBasic-21885415 not found, creating it 2025-04-21 06:54:18,477 - INFO - Created Project:ctest-TestRoutersBasic-21885415, ID : cef66aab-59a6-44fc-8a4b-b34c05eb57b4 2025-04-21 06:54:19,975 - INFO - ================================================================================ 2025-04-21 06:54:19,975 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-04-21 06:54:19,975 - 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-04-21 06:54:20,238 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-04-21 06:54:20,238 - INFO - Initial checks done. Running the testcase now 2025-04-21 06:54:20,238 - INFO - 2025-04-21 06:54:21,019 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-21885415 2025-04-21 06:54:21,121 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-21885415 2025-04-21 06:54:21,445 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-21885415', 'default']} 2025-04-21 06:54:21,752 - DEBUG - Response for create_network : {'network': {'id': '98d663be-1992-485f-bb9a-62dfa6612aaf', 'name': 'ctest-vn-25544813', 'tenant_id': 'cef66aab59a644fc8a4bb34c05eb57b4', 'project_id': 'cef66aab59a644fc8a4bb34c05eb57b4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-21885415', 'ctest-vn-25544813'], 'port_security_enabled': True, 'description': ''}} 2025-04-21 06:54:21,954 - DEBUG - Response for create_subnet : {'subnet': {'id': '3d6853b2-1ad0-4d9d-99c2-482edd0bab16', 'name': '', 'tenant_id': 'cef66aab59a644fc8a4bb34c05eb57b4', 'network_id': '98d663be-1992-485f-bb9a-62dfa6612aaf', 'ip_version': 4, 'cidr': '71.10.120.192/26', 'allocation_pools': [{'start': '71.10.120.194', 'end': '71.10.120.254'}], 'gateway_ip': '71.10.120.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '71.10.120.194', 'tags': [], 'project_id': 'cef66aab59a644fc8a4bb34c05eb57b4'}} 2025-04-21 06:54:21,971 - INFO - Created VN ctest-vn-25544813 2025-04-21 06:54:22,025 - DEBUG - VN ctest-vn-25544813 UUID is 98d663be-1992-485f-bb9a-62dfa6612aaf 2025-04-21 06:54:22,390 - DEBUG - Response for create_network : {'network': {'id': '339dcc59-b608-43e6-b0ce-e02d4619a345', 'name': 'ctest-ext_vn-73485322', 'tenant_id': 'cef66aab59a644fc8a4bb34c05eb57b4', 'project_id': 'cef66aab59a644fc8a4bb34c05eb57b4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-21885415', 'ctest-ext_vn-73485322'], 'port_security_enabled': True, 'description': ''}} 2025-04-21 06:54:22,579 - DEBUG - Response for create_subnet : {'subnet': {'id': '1a6dd2ed-8631-4a98-851c-176fb8396aed', 'name': '', 'tenant_id': 'cef66aab59a644fc8a4bb34c05eb57b4', 'network_id': '339dcc59-b608-43e6-b0ce-e02d4619a345', 'ip_version': 4, 'cidr': '154.154.214.128/26', 'allocation_pools': [{'start': '154.154.214.130', 'end': '154.154.214.190'}], 'gateway_ip': '154.154.214.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '154.154.214.130', 'tags': [], 'project_id': 'cef66aab59a644fc8a4bb34c05eb57b4'}} 2025-04-21 06:54:22,597 - INFO - Created VN ctest-ext_vn-73485322 2025-04-21 06:54:22,649 - DEBUG - VN ctest-ext_vn-73485322 UUID is 339dcc59-b608-43e6-b0ce-e02d4619a345 2025-04-21 06:54:22,810 - DEBUG - Services list from nova: [, , ] 2025-04-21 06:54:23,912 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3148-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3148-1) 2025-04-21 06:54:25,107 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3148-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3148-1) 2025-04-21 06:54:25,195 - INFO - Setting gateway for router 48322c2a-c4fb-4654-aa30-94b95db1fa05 to network 339dcc59-b608-43e6-b0ce-e02d4619a345 2025-04-21 06:54:25,260 - INFO - Adding interface with subnet_id 3d6853b2-1ad0-4d9d-99c2-482edd0bab16, port_id None to router 48322c2a-c4fb-4654-aa30-94b95db1fa05 2025-04-21 06:54:25,682 - INFO - Waiting for VM ctest-TestRoutersBasic-21885415-71923829 to be up.. 2025-04-21 06:54:25,893 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-21 06:54:30,977 - DEBUG - VM is in ACTIVE state now 2025-04-21 06:54:30,977 - INFO - VM name : ctest-TestRoutersBasic-21885415-71923829 2025-04-21 06:54:31,064 - DEBUG - VM ctest-TestRoutersBasic-21885415-71923829 ID is fdce6f85-03be-4a26-86b0-ca821379f2b5 2025-04-21 06:54:31,083 - DEBUG - VM ctest-TestRoutersBasic-21885415-71923829 launched on Node cn-jenkins-deploy-platform-ansible-os-3148-1 2025-04-21 06:54:31,155 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/fdce6f85-03be-4a26-86b0-ca821379f2b5 2025-04-21 06:54:31,491 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/fdce6f85-03be-4a26-86b0-ca821379f2b5 2025-04-21 06:54:31,523 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/fd96d5f4-1fac-41b2-8c85-61281c44f639 2025-04-21 06:54:34,768 - 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 1007ms') 2025-04-21 06:54:34,768 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-21885415-71923829 failed! 2025-04-21 06:54:34,825 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-21885415:ctest-vn-25544813 is 71.10.120.193 and allocation pool is NOT set 2025-04-21 06:54:36,883 - 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.32 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.405 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.405/1.863/3.322/1.458 ms') 2025-04-21 06:54:36,883 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-21885415-71923829 passed 2025-04-21 06:54:37,037 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-21 06:54:37,037 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-21885415-71923829, IP 71.10.120.195, Port 22 2025-04-21 06:54:37,192 - DEBUG - VM ctest-TestRoutersBasic-21885415-71923829 is ready for SSH connections 2025-04-21 06:54:37,192 - INFO - Waiting for VM ctest-TestRoutersBasic-21885415-57054303 to be up.. 2025-04-21 06:54:37,269 - DEBUG - VM is in ACTIVE state now 2025-04-21 06:54:37,269 - INFO - VM name : ctest-TestRoutersBasic-21885415-57054303 2025-04-21 06:54:37,343 - DEBUG - VM ctest-TestRoutersBasic-21885415-57054303 ID is 374902b4-84d4-4909-936b-5fcb6b7dbe68 2025-04-21 06:54:37,343 - DEBUG - VM ctest-TestRoutersBasic-21885415-57054303 launched on Node cn-jenkins-deploy-platform-ansible-os-3148-1 2025-04-21 06:54:37,416 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/374902b4-84d4-4909-936b-5fcb6b7dbe68 2025-04-21 06:54:37,424 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/b0c111b7-49cd-4a34-83a7-5e7ff542df3c 2025-04-21 06:54:38,664 - 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.87 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.384 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.384/1.626/2.869/1.242 ms') 2025-04-21 06:54:38,664 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-21885415-57054303 passed 2025-04-21 06:54:38,845 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-21 06:54:38,845 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-21885415-57054303, IP 154.154.214.131, Port 22 2025-04-21 06:54:39,008 - DEBUG - VM ctest-TestRoutersBasic-21885415-57054303 is ready for SSH connections 2025-04-21 06:54:39,009 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-21 06:54:39,009 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 154.154.214.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-04-21 06:54:39,009 - DEBUG - ping -s 56 -c 3 -W 1 154.154.214.131 2025-04-21 06:54:42,710 - DEBUG - PING 154.154.214.131 (154.154.214.131): 56 data bytes 64 bytes from 154.154.214.131: seq=0 ttl=62 time=5.478 ms 64 bytes from 154.154.214.131: seq=1 ttl=62 time=0.891 ms 64 bytes from 154.154.214.131: seq=2 ttl=62 time=0.851 ms --- 154.154.214.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.851/2.406/5.478 ms 2025-04-21 06:54:42,710 - INFO - Ping to IP 154.154.214.131 from VM ctest-TestRoutersBasic-21885415-71923829 passed 2025-04-21 06:54:42,710 - INFO - Deleting interface with subnet_id 3d6853b2-1ad0-4d9d-99c2-482edd0bab16, port_id None from router 48322c2a-c4fb-4654-aa30-94b95db1fa05 2025-04-21 06:54:42,922 - INFO - Deleting VM ctest-TestRoutersBasic-21885415-57054303 2025-04-21 06:54:42,999 - INFO - Deleting VM ctest-TestRoutersBasic-21885415-71923829 2025-04-21 06:54:43,093 - INFO - Deleting VN ctest-ext_vn-73485322 2025-04-21 06:54:43,192 - DEBUG - VN 339dcc59-b608-43e6-b0ce-e02d4619a345 still in use: Unable to complete operation on network 339dcc59-b608-43e6-b0ce-e02d4619a345. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-8e774219-668b-41f7-b132-22d3ff2bb189'] 2025-04-21 06:54:43,192 - WARNING - Deleting VN ctest-ext_vn-73485322 failed..Will retry 2025-04-21 06:54:45,300 - DEBUG - Response for deleting network () 2025-04-21 06:54:45,301 - INFO - Deleting VN ctest-vn-25544813 2025-04-21 06:54:45,410 - DEBUG - Response for deleting network () 2025-04-21 06:54:45,675 - DEBUG - No XMPP flaps were noticed during the test 2025-04-21 06:54:45,675 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2025-04-21 06:54:45,675 - INFO - -------------------------------------------------------------------------------- 2025-04-21 06:54:46,376 - INFO - Deleted project: ctest-TestRoutersBasic-21885415, ID : cef66aab-59a6-44fc-8a4b-b34c05eb57b4